Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 110.5 kB / 17.29 MB, free: 6.199 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.001455/0.001455, allocations: 189.3 kB / 18.21 MB, free: 5.273 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.365/1.365, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 42.27 kB / 300.8 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09254, allocations: 49.45 MB / 350.2 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2809/0.3735, allocations: 103.3 MB / 453.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04917/0.4227, allocations: 19.85 MB / 473.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02099/0.4437, allocations: 478.7 kB / 473.9 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.4548, allocations: 5.644 MB / 479.5 MB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008825/0.4637, allocations: 3.115 MB / 482.6 MB, free: 140 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00364/0.4673, allocations: 1.504 MB / 484.1 MB, free: 14.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01713/0.4845, allocations: 13.45 MB / 497.6 MB, free: 1.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01197/0.4965, allocations: 8.019 MB / 0.4938 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006647/0.5032, allocations: 3.684 MB / 0.4974 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008128/0.5113, allocations: 5.286 MB / 0.5025 GB, free: 76 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002618/0.514, allocations: 0.7149 MB / 0.5032 GB, free: 15.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.5187, allocations: 1.693 MB / 0.5049 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006116/0.5249, allocations: 4.255 MB / 0.509 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008603/0.5335, allocations: 4.503 MB / 0.5134 GB, free: 4.871 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.5461, allocations: 10.94 MB / 0.5241 GB, free: 9.906 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.5462, allocations: 0 / 0.5241 GB, free: 9.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5462, allocations: 4 kB / 0.5241 GB, free: 9.902 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004734/0.5466, allocations: 0 / 0.5241 GB, free: 9.902 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02449/0.5711, allocations: 9.656 MB / 0.5335 GB, free: 160 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5712, allocations: 8.031 kB / 0.5336 GB, free: 152 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4749/1.046, allocations: 5.236 MB / 0.5387 GB, free: 49.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01992/1.066, allocations: 7.872 MB / 0.5464 GB, free: 48.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004662/1.067, allocations: 430.4 kB / 0.5468 GB, free: 48.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002674/1.069, allocations: 0.5854 MB / 0.5473 GB, free: 48.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0335/1.103, allocations: 16.56 MB / 0.5635 GB, free: 45.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003799/1.103, allocations: 95.89 kB / 0.5636 GB, free: 45.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001456/1.105, allocations: 268.7 kB / 0.5639 GB, free: 45.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004101/1.109, allocations: 2.763 MB / 0.5666 GB, free: 44.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/1.136, allocations: 13.63 MB / 0.5799 GB, free: 35.55 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.08689/1.223, allocations: 68.06 MB / 0.6463 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0213/1.244, allocations: 7.907 MB / 0.654 GB, free: 6.328 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00676/1.251, allocations: 4.515 MB / 0.6585 GB, free: 1.805 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/1.275, allocations: 12.41 MB / 0.6706 GB, free: 5.301 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.14e-05/1.275, allocations: 72.47 kB / 0.6706 GB, free: 5.223 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 6.562e-06/1.275, allocations: 0 / 0.6706 GB, free: 5.223 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1918/1.467, allocations: 50.11 MB / 0.7196 GB, free: 3.363 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002472/1.467, allocations: 406 kB / 0.72 GB, free: 2.879 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01561/1.483, allocations: 7.118 MB / 0.7269 GB, free: 11.79 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001068/1.484, allocations: 77.7 kB / 0.727 GB, free: 11.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004857/1.489, allocations: 5.023 MB / 0.7319 GB, free: 6.711 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002231/1.491, allocations: 1.261 MB / 0.7331 GB, free: 5.461 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0065/1.498, allocations: 1.856 MB / 0.7349 GB, free: 3.59 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.000116/1.498, allocations: 312.2 kB / 0.7352 GB, free: 3.285 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2039/1.702, allocations: 4.54 MB / 0.7397 GB, free: 260.9 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/1.713, allocations: 9.263 MB / 0.7487 GB, free: 254.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0194/1.733, allocations: 14.54 MB / 0.7629 GB, free: 243.8 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002687/1.733, allocations: 46.25 kB / 0.763 GB, free: 243.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04329/1.776, allocations: 19.76 MB / 0.7823 GB, free: 237.5 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.777, allocations: 73.12 kB / 0.7823 GB, free: 237.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002015/1.777, allocations: 157.9 kB / 0.7825 GB, free: 237.5 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02028/1.797, allocations: 7.07 MB / 0.7894 GB, free: 235.1 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00603/1.803, allocations: 1.93 MB / 0.7913 GB, free: 233.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04265/1.846, allocations: 35.32 MB / 0.8258 GB, free: 197.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008963/1.855, allocations: 0.5836 MB / 0.8263 GB, free: 197 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/1.857, allocations: 494.1 kB / 0.8268 GB, free: 196.6 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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 {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006754/1.863, allocations: 3.477 MB / 0.8302 GB, free: 193.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/1.865, allocations: 0.6325 MB / 0.8308 GB, free: 192.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02592/1.891, allocations: 13.32 MB / 0.8438 GB, free: 179.5 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.648e-05/1.891, allocations: 38.73 kB / 0.8439 GB, free: 179.4 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.468e-05/1.891, allocations: 16 kB / 0.8439 GB, free: 179.4 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.88e-05/1.891, allocations: 23.31 kB / 0.8439 GB, free: 179.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04696/1.938, allocations: 26.7 MB / 0.87 GB, free: 152.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.421e-05/1.938, allocations: 9.219 kB / 0.87 GB, free: 152.3 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/1.94, allocations: 423.3 kB / 0.8704 GB, free: 151.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01956/1.96, allocations: 6.66 MB / 0.8769 GB, free: 145.2 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001349/1.961, allocations: 67.89 kB / 0.8769 GB, free: 145.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03995/2.001, allocations: 34 MB / 0.9102 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/2.001, allocations: 11.94 kB / 0.9102 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03223/2.033, allocations: 18.77 MB / 0.9285 GB, free: 91.95 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/2.036, allocations: 0.6923 MB / 0.9292 GB, free: 91.23 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001991/2.038, allocations: 63.98 kB / 0.9292 GB, free: 91.17 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004127/2.042, allocations: 307.5 kB / 0.9295 GB, free: 90.87 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/2.043, allocations: 242.7 kB / 0.9298 GB, free: 90.63 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003326/2.044, allocations: 95.81 kB / 0.9298 GB, free: 90.54 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00692/2.05, allocations: 4.555 MB / 0.9343 GB, free: 86.02 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.4e-07/2.05, allocations: 4 kB / 0.9343 GB, free: 86.01 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009672/2.06, allocations: 2.143 MB / 0.9364 GB, free: 83.88 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.0009229/2.061, allocations: 208.2 kB / 0.9366 GB, free: 83.66 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.02265/2.084, allocations: 14.42 MB / 0.9507 GB, free: 69.24 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/2.084, allocations: 4 kB / 0.9507 GB, free: 69.24 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008003/2.092, allocations: 5.001 MB / 0.9556 GB, free: 64.19 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00705/2.099, allocations: 0.9796 MB / 0.9565 GB, free: 63.22 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03618/2.135, allocations: 23.8 MB / 0.9798 GB, free: 39.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007216/2.142, allocations: 5.457 MB / 0.9851 GB, free: 33.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001721/2.144, allocations: 443.4 kB / 0.9855 GB, free: 33.37 MB / 0.5607 GB Notification: Performance of SimCode: time 8.01e-07/2.144, allocations: 0 / 0.9855 GB, free: 33.37 MB / 0.5607 GB Notification: Performance of Templates: time 0.4405/2.585, allocations: 206.4 MB / 1.187 GB, free: 78 MB / 0.5607 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches