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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 96.19 kB / 18.39 MB, free: 4.664 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.001879/0.001879, allocations: 188.3 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 47.94 kB / 329.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08636, allocations: 46.61 MB / 375.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2039/0.2903, allocations: 20.61 MB / 396.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01548/0.3059, allocations: 6.216 MB / 402.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005318/0.3112, allocations: 164.4 kB / 402.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01288/0.3242, allocations: 6.357 MB / 409.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009851/0.3341, allocations: 3.452 MB / 412.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004329/0.3384, allocations: 1.663 MB / 414.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01675/0.3552, allocations: 11.66 MB / 426 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01155/0.3668, allocations: 8.085 MB / 434 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007378/0.3742, allocations: 3.778 MB / 437.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008002/0.3822, allocations: 4.993 MB / 442.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002841/0.3851, allocations: 0.75 MB / 443.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005309/0.3904, allocations: 1.713 MB / 445.3 MB, free: 9.914 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006408/0.3969, allocations: 4.485 MB / 449.8 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008952/0.4059, allocations: 4.67 MB / 454.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01868/0.4246, allocations: 14.2 MB / 468.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4246, allocations: 0 / 468.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.4247, allocations: 4 kB / 468.6 MB, free: 2.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004969/0.4252, allocations: 0 / 468.6 MB, free: 2.469 MB / 382.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.02569/0.4509, allocations: 10.06 MB / 478.7 MB, free: 8.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.4509, allocations: 12.03 kB / 478.7 MB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04681/0.4977, allocations: 5.283 MB / 484 MB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02041/0.5182, allocations: 8.552 MB / 492.5 MB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004513/0.5187, allocations: 452.2 kB / 493 MB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00237/0.5211, allocations: 0.6126 MB / 493.6 MB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03381/0.5549, allocations: 17.13 MB / 0.4988 GB, free: 7.117 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003454/0.5553, allocations: 99.11 kB / 0.4989 GB, free: 7.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001363/0.5566, allocations: 283.8 kB / 0.4991 GB, free: 6.742 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004716/0.5614, allocations: 2.854 MB / 0.5019 GB, free: 3.887 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03106/0.5924, allocations: 14.04 MB / 0.5156 GB, free: 5.828 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.4276/1.02, allocations: 69.09 MB / 0.5831 GB, free: 104.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/1.039, allocations: 7.468 MB / 0.5904 GB, free: 102.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00523/1.044, allocations: 4.458 MB / 0.5947 GB, free: 100.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01895/1.063, allocations: 12.76 MB / 0.6072 GB, free: 94.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/1.063, allocations: 72.34 kB / 0.6073 GB, free: 94.41 MB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 7.584e-06/1.063, allocations: 0 / 0.6073 GB, free: 94.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=365): time 0.1383/1.201, allocations: 43.54 MB / 0.6498 GB, free: 60.74 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.202, allocations: 406.2 kB / 0.6502 GB, free: 60.26 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009472/1.211, allocations: 7.389 MB / 0.6574 GB, free: 52.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008895/1.212, allocations: 77.7 kB / 0.6575 GB, free: 52.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002948/1.215, allocations: 5.237 MB / 0.6626 GB, free: 47.58 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001772/1.217, allocations: 1.349 MB / 0.6639 GB, free: 46.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002983/1.22, allocations: 1.939 MB / 0.6658 GB, free: 44.29 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/1.22, allocations: 305.1 kB / 0.6661 GB, free: 43.99 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.225, allocations: 4.286 MB / 0.6703 GB, free: 39.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008125/1.233, allocations: 9.187 MB / 0.6792 GB, free: 28.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.247, allocations: 14.24 MB / 0.6931 GB, free: 11.54 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/1.247, allocations: 51.94 kB / 0.6932 GB, free: 11.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03565/1.283, allocations: 18.01 MB / 0.7108 GB, free: 9.426 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002489/1.283, allocations: 80.03 kB / 0.7109 GB, free: 9.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003192/1.283, allocations: 168 kB / 0.711 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0163/1.3, allocations: 5.328 MB / 0.7162 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006904/1.307, allocations: 2.012 MB / 0.7182 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04672/1.353, allocations: 31.1 MB / 0.7486 GB, free: 2.297 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00857/1.362, allocations: 0.5652 MB / 0.7491 GB, free: 1.734 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/1.364, allocations: 0.5078 MB / 0.7496 GB, free: 1.227 MB / 0.5138 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.2137/1.578, allocations: 3.621 MB / 0.7531 GB, free: 171.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001925/1.58, allocations: 0.6682 MB / 0.7538 GB, free: 171.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02575/1.606, allocations: 11.27 MB / 0.7648 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.553e-05/1.606, allocations: 36.06 kB / 0.7648 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-05/1.606, allocations: 20.91 kB / 0.7648 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.392e-05/1.606, allocations: 16.36 kB / 0.7649 GB, free: 170.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04429/1.65, allocations: 22.03 MB / 0.7864 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.946e-05/1.65, allocations: 9.719 kB / 0.7864 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00225/1.653, allocations: 449 kB / 0.7868 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/1.666, allocations: 5.012 MB / 0.7917 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007812/1.667, allocations: 66.56 kB / 0.7918 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03438/1.702, allocations: 30.51 MB / 0.8216 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.702, allocations: 11.94 kB / 0.8216 GB, free: 134.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/1.728, allocations: 16.49 MB / 0.8377 GB, free: 118.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004124/1.733, allocations: 1.342 MB / 0.839 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002016/1.735, allocations: 75.78 kB / 0.8391 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004461/1.739, allocations: 263.6 kB / 0.8393 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/1.74, allocations: 266.7 kB / 0.8396 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003192/1.74, allocations: 99.98 kB / 0.8397 GB, free: 116.6 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007476/1.748, allocations: 4.737 MB / 0.8443 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/1.748, allocations: 0 / 0.8443 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01055/1.758, allocations: 2.184 MB / 0.8464 GB, free: 109.7 MB / 0.5138 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.001052/1.76, allocations: 222.5 kB / 0.8466 GB, free: 109.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01582/1.775, allocations: 10.88 MB / 0.8573 GB, free: 98.63 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.775, allocations: 4 kB / 0.8573 GB, free: 98.62 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006558/1.782, allocations: 4.475 MB / 0.8616 GB, free: 94.11 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009254/1.791, allocations: 1.036 MB / 0.8626 GB, free: 93.13 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/1.826, allocations: 19.94 MB / 0.8821 GB, free: 73.16 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009025/1.836, allocations: 5.685 MB / 0.8877 GB, free: 67.45 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/1.838, allocations: 471.4 kB / 0.8881 GB, free: 67 MB / 0.5138 GB Notification: Performance of SimCode: time 9.12e-07/1.838, allocations: 0 / 0.8881 GB, free: 67 MB / 0.5138 GB Notification: Performance of Templates: time 0.4838/2.321, allocations: 214.2 MB / 1.097 GB, free: 29.54 MB / 0.5138 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches