Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009995/0.0009996, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008708/0.0008708, allocations: 92.55 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007514/0.0007516, allocations: 39.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.182, allocations: 46.61 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07361/0.2556, allocations: 111.5 MB / 485.3 MB, free: 1.617 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.2152/0.4708, allocations: 21.29 MB / 0.4947 GB, free: 380 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01986/0.4908, allocations: 0.5043 MB / 0.4952 GB, free: 376 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009092/0.4999, allocations: 6.371 MB / 0.5015 GB, free: 224 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006623/0.5066, allocations: 3.281 MB / 0.5047 GB, free: 36 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002983/0.5096, allocations: 1.536 MB / 0.5062 GB, free: 0 / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01702/0.5266, allocations: 16.41 MB / 0.5222 GB, free: 13.94 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008984/0.5356, allocations: 7.894 MB / 0.5299 GB, free: 11.48 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005637/0.5413, allocations: 3.418 MB / 0.5332 GB, free: 10.97 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007051/0.5484, allocations: 5.325 MB / 0.5384 GB, free: 7.527 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001702/0.5501, allocations: 0.5 MB / 0.5389 GB, free: 7.027 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003635/0.5538, allocations: 1.531 MB / 0.5404 GB, free: 5.582 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003801/0.5576, allocations: 4.199 MB / 0.5445 GB, free: 1.422 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004613/0.5622, allocations: 4.421 MB / 0.5488 GB, free: 13.02 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.5748, allocations: 13.65 MB / 0.5622 GB, free: 15.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5749, allocations: 0 / 0.5622 GB, free: 15.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5749, allocations: 0 / 0.5622 GB, free: 15.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003456/0.5752, allocations: 0 / 0.5622 GB, free: 15.69 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02048/0.5957, allocations: 10.07 MB / 0.572 GB, free: 5.691 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.5958, allocations: 12.03 kB / 0.572 GB, free: 5.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04164/0.6374, allocations: 5.282 MB / 0.5772 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0177/0.6551, allocations: 8.371 MB / 0.5853 GB, free: 8.262 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002697/0.6554, allocations: 448.1 kB / 0.5858 GB, free: 7.875 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/0.6568, allocations: 0.6117 MB / 0.5864 GB, free: 7.312 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0273/0.6841, allocations: 17.14 MB / 0.6031 GB, free: 5.402 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003018/0.6845, allocations: 102.3 kB / 0.6032 GB, free: 5.332 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008138/0.6853, allocations: 274.9 kB / 0.6035 GB, free: 5.113 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004089/0.6894, allocations: 2.868 MB / 0.6063 GB, free: 2.281 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/0.7137, allocations: 14.03 MB / 0.62 GB, free: 4.512 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3618/1.076, allocations: 69.43 MB / 0.6878 GB, free: 195.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01636/1.092, allocations: 7.463 MB / 0.695 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004528/1.097, allocations: 4.454 MB / 0.6994 GB, free: 193.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01657/1.113, allocations: 12.77 MB / 0.7119 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/1.113, allocations: 70.78 kB / 0.7119 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=293): time 4.458e-06/1.113, allocations: 0 / 0.7119 GB, free: 186.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=365): time 0.1191/1.232, allocations: 43.53 MB / 0.7544 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.845e-05/1.232, allocations: 406.3 kB / 0.7548 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00741/1.24, allocations: 7.381 MB / 0.762 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000447/1.24, allocations: 88.98 kB / 0.7621 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002169/1.242, allocations: 5.23 MB / 0.7672 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008567/1.243, allocations: 1.351 MB / 0.7685 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/1.245, allocations: 1.935 MB / 0.7704 GB, free: 133.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 3.628e-05/1.245, allocations: 305.1 kB / 0.7707 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004324/1.25, allocations: 4.282 MB / 0.7749 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005866/1.256, allocations: 9.198 MB / 0.7839 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/1.268, allocations: 14.24 MB / 0.7978 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.527e-05/1.268, allocations: 48 kB / 0.7978 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02775/1.295, allocations: 17.99 MB / 0.8154 GB, free: 82.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.118e-05/1.296, allocations: 80.92 kB / 0.8155 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/1.296, allocations: 168 kB / 0.8157 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01351/1.309, allocations: 5.332 MB / 0.8209 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005854/1.315, allocations: 2.016 MB / 0.8228 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03303/1.348, allocations: 29 MB / 0.8511 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007165/1.355, allocations: 0.5499 MB / 0.8517 GB, free: 45.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/1.357, allocations: 0.521 MB / 0.8522 GB, free: 44.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1096 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.005393/1.362, allocations: 3.625 MB / 0.8557 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00142/1.364, allocations: 0.6595 MB / 0.8564 GB, free: 40.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01961/1.383, allocations: 11.26 MB / 0.8674 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.081e-05/1.383, allocations: 38.42 kB / 0.8674 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.759e-05/1.383, allocations: 20 kB / 0.8674 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.68e-05/1.383, allocations: 23.92 kB / 0.8675 GB, free: 29.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03956/1.423, allocations: 22.15 MB / 0.8891 GB, free: 6.645 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/1.423, allocations: 12 kB / 0.8891 GB, free: 6.633 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/1.425, allocations: 452.1 kB / 0.8895 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01273/1.438, allocations: 5.042 MB / 0.8945 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004787/1.438, allocations: 68.7 kB / 0.8945 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1922/1.63, allocations: 28.4 MB / 0.9223 GB, free: 205 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/1.63, allocations: 13.97 kB / 0.9223 GB, free: 205 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2044/1.835, allocations: 139.2 MB / 1.058 GB, free: 77.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00375/1.839, allocations: 1.339 MB / 1.06 GB, free: 76.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/1.84, allocations: 70.61 kB / 1.06 GB, free: 76.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003429/1.843, allocations: 267.6 kB / 1.06 GB, free: 75.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000855/1.844, allocations: 262.7 kB / 1.06 GB, free: 75.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002501/1.845, allocations: 107.5 kB / 1.06 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005136/1.85, allocations: 4.722 MB / 1.065 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/1.85, allocations: 3.844 kB / 1.065 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008689/1.858, allocations: 3.048 MB / 1.068 GB, free: 67.87 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 2 (Inertia.phi,Inertia.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 (241): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006005/1.859, allocations: 233.2 kB / 1.068 GB, free: 67.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01348/1.873, allocations: 10.82 MB / 1.079 GB, free: 56.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.873, allocations: 0 / 1.079 GB, free: 56.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005156/1.878, allocations: 4.486 MB / 1.083 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005632/1.883, allocations: 0.9585 MB / 1.084 GB, free: 51.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03589/1.919, allocations: 26.67 MB / 1.11 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1734/2.093, allocations: 5.919 MB / 1.116 GB, free: 195.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007163/2.1, allocations: 2.789 MB / 1.118 GB, free: 195.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/2.101, allocations: 419.8 kB / 1.119 GB, free: 195.5 MB / 0.5105 GB Notification: Performance of SimCode: time 9.82e-07/2.101, allocations: 0 / 1.119 GB, free: 195.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.1543/2.255, allocations: 130.7 MB / 1.247 GB, free: 92.83 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches