Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009575/0.0009575, allocations: 98.86 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009413/0.0009414, allocations: 209.5 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002276, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09354, allocations: 51.5 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2205/0.3141, allocations: 45.71 MB / 403.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02752/0.3417, allocations: 11.12 MB / 414.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01052/0.3522, allocations: 230.2 kB / 415.1 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007191/0.3594, allocations: 2.278 MB / 417.4 MB, free: 240 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02066/0.3801, allocations: 6.671 MB / 424.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003479/0.3836, allocations: 0.8432 MB / 424.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.06485/0.4485, allocations: 49.19 MB / 474.1 MB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006649/0.4552, allocations: 4.979 MB / 479.1 MB, free: 2.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002349/0.4575, allocations: 1.565 MB / 480.6 MB, free: 0.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.4602, allocations: 2.255 MB / 482.9 MB, free: 14.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005797/0.4608, allocations: 236 kB / 483.1 MB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.4627, allocations: 1.088 MB / 484.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001907/0.4646, allocations: 2.396 MB / 486.6 MB, free: 10.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009865/0.4656, allocations: 1.201 MB / 487.8 MB, free: 9.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0066/0.4722, allocations: 8.068 MB / 495.9 MB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4723, allocations: 0 / 495.9 MB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4723, allocations: 0 / 495.9 MB, free: 1.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001764/0.4724, allocations: 0 / 495.9 MB, free: 1.594 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01237/0.4848, allocations: 6.445 MB / 0.4906 GB, free: 11.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4849, allocations: 8.031 kB / 0.4906 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04668/0.5316, allocations: 9.754 MB / 0.5001 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.5425, allocations: 4.318 MB / 0.5043 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.5428, allocations: 320 kB / 0.5046 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/0.5444, allocations: 427.6 kB / 0.505 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02819/0.5726, allocations: 15.74 MB / 0.5204 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002538/0.5729, allocations: 55.53 kB / 0.5205 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001373/0.5743, allocations: 203.8 kB / 0.5206 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007864/0.5822, allocations: 3.22 MB / 0.5238 GB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2876/0.8698, allocations: 14.04 MB / 0.5375 GB, free: 140 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07461/0.9444, allocations: 57.53 MB / 0.5937 GB, free: 98.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01251/0.957, allocations: 6.567 MB / 0.6001 GB, free: 91.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0206/0.9776, allocations: 14.42 MB / 0.6142 GB, free: 76.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.9777, allocations: 64.56 kB / 0.6142 GB, free: 76.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 6.052e-06/0.9778, allocations: 0 / 0.6142 GB, free: 76.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1347/1.112, allocations: 42.71 MB / 0.6559 GB, free: 33.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/1.113, allocations: 213.9 kB / 0.6561 GB, free: 33.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006295/1.119, allocations: 5.705 MB / 0.6617 GB, free: 27.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008012/1.12, allocations: 79.58 kB / 0.6618 GB, free: 27.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.122, allocations: 4.416 MB / 0.6661 GB, free: 23.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.123, allocations: 1.245 MB / 0.6673 GB, free: 21.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004356/1.123, allocations: 168 kB / 0.6675 GB, free: 21.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003344/1.124, allocations: 0.6858 MB / 0.6681 GB, free: 21.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005477/1.129, allocations: 4.587 MB / 0.6726 GB, free: 16.42 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007692/1.137, allocations: 9.525 MB / 0.6819 GB, free: 4.441 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008384/1.145, allocations: 6.469 MB / 0.6882 GB, free: 13.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.333e-05/1.146, allocations: 48 kB / 0.6883 GB, free: 13.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.252/1.398, allocations: 18.89 MB / 0.7067 GB, free: 137.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/1.398, allocations: 82.84 kB / 0.7068 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/1.398, allocations: 174.6 kB / 0.707 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02281/1.421, allocations: 5.833 MB / 0.7127 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007857/1.429, allocations: 2.047 MB / 0.7147 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02966/1.458, allocations: 24.94 MB / 0.739 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007584/1.466, allocations: 0.5419 MB / 0.7396 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/1.468, allocations: 0.5064 MB / 0.7401 GB, free: 126.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005349/1.473, allocations: 3.102 MB / 0.7431 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.474, allocations: 0.493 MB / 0.7436 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02789/1.502, allocations: 12.6 MB / 0.7559 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.994e-05/1.502, allocations: 57.28 kB / 0.7559 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/1.502, allocations: 8.844 kB / 0.7559 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-05/1.502, allocations: 15.94 kB / 0.756 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04666/1.549, allocations: 24.32 MB / 0.7797 GB, free: 90.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.542e-05/1.549, allocations: 4 kB / 0.7797 GB, free: 90.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003087/1.552, allocations: 0.5733 MB / 0.7803 GB, free: 89.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01835/1.57, allocations: 4.84 MB / 0.785 GB, free: 84.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007981/1.571, allocations: 65.27 kB / 0.7851 GB, free: 84.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02169/1.593, allocations: 20.2 MB / 0.8048 GB, free: 64.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.593, allocations: 7.938 kB / 0.8048 GB, free: 64.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03415/1.627, allocations: 17.71 MB / 0.8221 GB, free: 46.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.629, allocations: 0.5502 MB / 0.8226 GB, free: 46.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/1.63, allocations: 52 kB / 0.8227 GB, free: 46.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003872/1.634, allocations: 261 kB / 0.8229 GB, free: 45.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/1.635, allocations: 193.7 kB / 0.8231 GB, free: 45.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006582/1.636, allocations: 89.7 kB / 0.8232 GB, free: 45.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00605/1.642, allocations: 3.584 MB / 0.8267 GB, free: 41.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.642, allocations: 0 / 0.8267 GB, free: 41.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01167/1.654, allocations: 1.731 MB / 0.8284 GB, free: 40.21 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001554/1.655, allocations: 209.9 kB / 0.8286 GB, free: 40 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01555/1.671, allocations: 10.54 MB / 0.8389 GB, free: 29.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.671, allocations: 4.188 kB / 0.8389 GB, free: 29.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00546/1.676, allocations: 4.004 MB / 0.8428 GB, free: 25.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/1.68, allocations: 0.5864 MB / 0.8434 GB, free: 24.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/1.707, allocations: 18.32 MB / 0.8613 GB, free: 6.441 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006323/1.713, allocations: 4.751 MB / 0.8659 GB, free: 1.652 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008298/1.721, allocations: 2.982 MB / 0.8688 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002015/1.723, allocations: 359.3 kB / 0.8692 GB, free: 14.32 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/1.724, allocations: 0 / 0.8692 GB, free: 14.32 MB / 478.1 MB Notification: Performance of Templates: time 0.2702/1.994, allocations: 75.16 MB / 0.9426 GB, free: 104.4 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches