Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009493/0.0009493, allocations: 114.9 kB / 17.74 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009181/0.0009182, allocations: 188.5 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008922/0.0008922, allocations: 43.91 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3534, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02064/0.3741, allocations: 20.54 MB / 422 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.3888, allocations: 6.176 MB / 428.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005086/0.3939, allocations: 171.4 kB / 428.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01202/0.406, allocations: 6.347 MB / 434.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.4165, allocations: 3.435 MB / 438.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004689/0.4212, allocations: 1.658 MB / 439.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02016/0.4414, allocations: 12.65 MB / 452.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01563/0.4571, allocations: 8.058 MB / 460.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009521/0.4666, allocations: 3.751 MB / 464.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009461/0.4761, allocations: 4.974 MB / 469.2 MB, free: 4.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00302/0.4792, allocations: 0.7461 MB / 469.9 MB, free: 4.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005439/0.4846, allocations: 1.717 MB / 471.7 MB, free: 2.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006323/0.491, allocations: 4.474 MB / 476.1 MB, free: 13.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00881/0.4998, allocations: 4.658 MB / 480.8 MB, free: 9.199 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02011/0.52, allocations: 14.17 MB / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.52, allocations: 4 kB / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.52, allocations: 0 / 495 MB, free: 10.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007674/0.5208, allocations: 0 / 495 MB, free: 10.98 MB / 414.1 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.02853/0.5493, allocations: 10.02 MB / 0.4932 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.5494, allocations: 8.031 kB / 0.4932 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03927/0.5887, allocations: 5.283 MB / 0.4983 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02107/0.6098, allocations: 8.247 MB / 0.5064 GB, free: 3.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005026/0.6103, allocations: 447.9 kB / 0.5068 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002788/0.6131, allocations: 0.6165 MB / 0.5074 GB, free: 2.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/0.6478, allocations: 17.12 MB / 0.5241 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003437/0.6482, allocations: 107.1 kB / 0.5242 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009058/0.6491, allocations: 275.8 kB / 0.5245 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004354/0.6535, allocations: 2.862 MB / 0.5273 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5248/1.178, allocations: 14.03 MB / 0.541 GB, free: 118.2 MB / 462.1 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.07387/1.252, allocations: 69.69 MB / 0.609 GB, free: 61.65 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01715/1.269, allocations: 8.232 MB / 0.6171 GB, free: 53.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004591/1.274, allocations: 4.631 MB / 0.6216 GB, free: 48.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01576/1.29, allocations: 12.77 MB / 0.6341 GB, free: 35.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/1.29, allocations: 72.5 kB / 0.6341 GB, free: 35.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=294): time 5.52e-06/1.29, allocations: 0 / 0.6341 GB, free: 35.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=360): time 0.1691/1.459, allocations: 52.51 MB / 0.6854 GB, free: 15.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/1.459, allocations: 402.2 kB / 0.6858 GB, free: 14.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/1.47, allocations: 7.272 MB / 0.6929 GB, free: 7.508 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001216/1.472, allocations: 85.61 kB / 0.693 GB, free: 7.422 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003833/1.476, allocations: 5.2 MB / 0.6981 GB, free: 2.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001856/1.477, allocations: 1.334 MB / 0.6994 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00278/1.48, allocations: 1.915 MB / 0.7012 GB, free: 14.88 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.48, allocations: 305.1 kB / 0.7015 GB, free: 14.58 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006615/1.487, allocations: 4.715 MB / 0.7061 GB, free: 9.855 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/1.498, allocations: 9.535 MB / 0.7155 GB, free: 13.98 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02124/1.519, allocations: 15.01 MB / 0.7301 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002202/1.52, allocations: 48 kB / 0.7302 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.3543/1.874, allocations: 20.46 MB / 0.7501 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002796/1.874, allocations: 74.84 kB / 0.7502 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003742/1.875, allocations: 169 kB / 0.7504 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02086/1.895, allocations: 7.306 MB / 0.7575 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006562/1.902, allocations: 2.002 MB / 0.7595 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04469/1.947, allocations: 36.54 MB / 0.7951 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008859/1.956, allocations: 0.6124 MB / 0.7957 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001861/1.958, allocations: 0.4961 MB / 0.7962 GB, free: 150 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1082): * Single equations (assignments): 1076 * 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 {(7,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005901/1.963, allocations: 3.592 MB / 0.7997 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/1.965, allocations: 0.6569 MB / 0.8004 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02581/1.991, allocations: 13.95 MB / 0.814 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.626e-05/1.991, allocations: 36 kB / 0.814 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-05/1.991, allocations: 20 kB / 0.814 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-05/1.991, allocations: 19.94 kB / 0.8141 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0442/2.035, allocations: 27.69 MB / 0.8411 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.001e-05/2.036, allocations: 8 kB / 0.8411 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/2.038, allocations: 467.5 kB / 0.8416 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01857/2.056, allocations: 6.974 MB / 0.8484 GB, free: 96.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009031/2.057, allocations: 60 kB / 0.8484 GB, free: 96.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04109/2.098, allocations: 35.34 MB / 0.8829 GB, free: 61.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/2.098, allocations: 11.88 kB / 0.883 GB, free: 61.19 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03104/2.129, allocations: 19.71 MB / 0.9022 GB, free: 41.67 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003858/2.133, allocations: 1.427 MB / 0.9036 GB, free: 40.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002238/2.136, allocations: 67.94 kB / 0.9037 GB, free: 40.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004756/2.14, allocations: 315.5 kB / 0.904 GB, free: 39.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/2.142, allocations: 258.8 kB / 0.9042 GB, free: 39.63 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006684/2.143, allocations: 95.98 kB / 0.9043 GB, free: 39.54 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007115/2.15, allocations: 4.65 MB / 0.9088 GB, free: 34.92 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/2.15, allocations: 5.422 kB / 0.9088 GB, free: 34.92 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00963/2.159, allocations: 2.22 MB / 0.911 GB, free: 32.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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 {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009429/2.16, allocations: 224.4 kB / 0.9112 GB, free: 32.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01669/2.177, allocations: 12.03 MB / 0.923 GB, free: 20.42 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/2.177, allocations: 4.125 kB / 0.923 GB, free: 20.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008227/2.185, allocations: 5.293 MB / 0.9281 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008111/2.193, allocations: 1.02 MB / 0.9291 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2569/2.45, allocations: 20.91 MB / 0.9496 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00671/2.457, allocations: 5.662 MB / 0.9551 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/2.459, allocations: 456.7 kB / 0.9555 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.783e-06/2.459, allocations: 1.938 kB / 0.9555 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.4745/2.933, allocations: 216.7 MB / 1.167 GB, free: 159.2 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches