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.001247/0.001247, allocations: 93.23 kB / 16.65 MB, free: 6.535 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.001401/0.001401, allocations: 170 kB / 17.56 MB, free: 6.184 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.376/1.376, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003141/0.000314, allocations: 11.94 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2815/0.3945, allocations: 108.9 MB / 460.7 MB, free: 7.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04927/0.4439, allocations: 21.22 MB / 481.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02202/0.4659, allocations: 0.4987 MB / 482.4 MB, free: 1.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.4686, allocations: 0.7266 MB / 483.2 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008217/0.4769, allocations: 3.264 MB / 486.4 MB, free: 13.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003646/0.4805, allocations: 1.531 MB / 488 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02251/0.5031, allocations: 17.78 MB / 0.4939 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01686/0.52, allocations: 10.66 MB / 0.5043 GB, free: 15.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006178/0.5262, allocations: 2.848 MB / 0.5071 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007098/0.5334, allocations: 4.626 MB / 0.5116 GB, free: 7.863 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.5349, allocations: 292 kB / 0.5119 GB, free: 7.578 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.5383, allocations: 1.326 MB / 0.5132 GB, free: 6.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004557/0.5429, allocations: 3.837 MB / 0.5169 GB, free: 2.402 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005884/0.5488, allocations: 4.031 MB / 0.5208 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01616/0.565, allocations: 13.2 MB / 0.5337 GB, free: 1.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.565, allocations: 4 kB / 0.5337 GB, free: 1.086 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.565, allocations: 0 / 0.5337 GB, free: 1.086 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005752/0.5656, allocations: 0 / 0.5337 GB, free: 1.086 MB / 446.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.1975/0.7631, allocations: 8.297 MB / 0.5418 GB, free: 155.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.7632, allocations: 9.906 kB / 0.5419 GB, free: 155.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05009/0.8133, allocations: 5.396 MB / 0.5471 GB, free: 153.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01885/0.8322, allocations: 8.061 MB / 0.555 GB, free: 149 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004088/0.8326, allocations: 447.9 kB / 0.5554 GB, free: 148.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001929/0.8346, allocations: 0.6089 MB / 0.556 GB, free: 148.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03121/0.8658, allocations: 17.21 MB / 0.5728 GB, free: 131.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/0.8662, allocations: 99.11 kB / 0.5729 GB, free: 131.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001507/0.8677, allocations: 277.5 kB / 0.5732 GB, free: 131.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003885/0.8716, allocations: 2.864 MB / 0.576 GB, free: 128.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02683/0.8985, allocations: 14.1 MB / 0.5898 GB, free: 114.2 MB / 446.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.08082/0.9793, allocations: 70.07 MB / 0.6582 GB, free: 42.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/0.9984, allocations: 8.276 MB / 0.6663 GB, free: 33.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005019/1.003, allocations: 4.626 MB / 0.6708 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/1.02, allocations: 12.79 MB / 0.6833 GB, free: 16.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/1.02, allocations: 64.56 kB / 0.6833 GB, free: 16.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=294): time 5.3e-06/1.02, allocations: 0 / 0.6833 GB, free: 16.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.5528/1.573, allocations: 53.41 MB / 0.7355 GB, free: 129.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/1.573, allocations: 406.2 kB / 0.7359 GB, free: 128.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009025/1.582, allocations: 7.267 MB / 0.743 GB, free: 121.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008575/1.583, allocations: 81.7 kB / 0.743 GB, free: 121.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002488/1.585, allocations: 5.213 MB / 0.7481 GB, free: 116.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001376/1.586, allocations: 1.323 MB / 0.7494 GB, free: 115.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009684/1.587, allocations: 0.833 MB / 0.7502 GB, free: 114.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.666e-05/1.588, allocations: 309.1 kB / 0.7505 GB, free: 113.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005295/1.593, allocations: 4.707 MB / 0.7551 GB, free: 109.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007276/1.6, allocations: 9.541 MB / 0.7645 GB, free: 97.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/1.614, allocations: 15.01 MB / 0.7791 GB, free: 80.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001267/1.615, allocations: 48 kB / 0.7792 GB, free: 79.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.05805/1.673, allocations: 20.47 MB / 0.7992 GB, free: 59.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/1.673, allocations: 72 kB / 0.7992 GB, free: 59.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/1.673, allocations: 164 kB / 0.7994 GB, free: 59.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03216/1.705, allocations: 7.329 MB / 0.8065 GB, free: 51.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00951/1.715, allocations: 2.004 MB / 0.8085 GB, free: 49.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06435/1.779, allocations: 34.39 MB / 0.8421 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01/1.789, allocations: 0.6007 MB / 0.8427 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001639/1.791, allocations: 0.5052 MB / 0.8432 GB, free: 13.96 MB / 446.1 MB 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.007442/1.798, allocations: 3.593 MB / 0.8467 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001673/1.8, allocations: 0.6556 MB / 0.8473 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02977/1.83, allocations: 13.95 MB / 0.8609 GB, free: 11.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.491e-05/1.83, allocations: 40 kB / 0.861 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.015e-05/1.83, allocations: 20 kB / 0.861 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-05/1.83, allocations: 15.94 kB / 0.861 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2944/2.124, allocations: 27.86 MB / 0.8882 GB, free: 133.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.379e-05/2.124, allocations: 11.66 kB / 0.8882 GB, free: 133.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/2.127, allocations: 470.6 kB / 0.8887 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02127/2.148, allocations: 7.006 MB / 0.8955 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001/2.149, allocations: 60.97 kB / 0.8956 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04099/2.19, allocations: 33.26 MB / 0.928 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/2.19, allocations: 11.88 kB / 0.9281 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03457/2.225, allocations: 19.7 MB / 0.9473 GB, free: 83.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003895/2.229, allocations: 1.44 MB / 0.9487 GB, free: 82.74 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.23, allocations: 60 kB / 0.9488 GB, free: 82.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004055/2.234, allocations: 330.6 kB / 0.9491 GB, free: 82.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008844/2.235, allocations: 255.2 kB / 0.9493 GB, free: 82.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002775/2.236, allocations: 101.3 kB / 0.9494 GB, free: 82.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006183/2.242, allocations: 4.646 MB / 0.954 GB, free: 77.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/2.242, allocations: 0 / 0.954 GB, free: 77.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009105/2.251, allocations: 2.224 MB / 0.9561 GB, free: 75.19 MB / 462.1 MB 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.0008003/2.252, allocations: 220 kB / 0.9563 GB, free: 74.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0184/2.27, allocations: 12 MB / 0.9681 GB, free: 63.05 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.065e-05/2.27, allocations: 0 / 0.9681 GB, free: 63.05 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0103/2.28, allocations: 5.271 MB / 0.9732 GB, free: 57.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0147/2.295, allocations: 0.9641 MB / 0.9741 GB, free: 56.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04192/2.337, allocations: 24.3 MB / 0.9979 GB, free: 32.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0118/2.349, allocations: 5.738 MB / 1.003 GB, free: 26.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008613/2.358, allocations: 2.696 MB / 1.006 GB, free: 24.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/2.359, allocations: 403.4 kB / 1.006 GB, free: 23.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.704e-06/2.359, allocations: 3.938 kB / 1.006 GB, free: 23.72 MB / 462.1 MB Notification: Performance of Templates: time 0.3556/2.715, allocations: 97.25 MB / 1.101 GB, free: 86.39 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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