Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001272/0.001272, allocations: 113.3 kB / 18.4 MB, free: 4.688 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.001346/0.001346, allocations: 189.2 kB / 19.33 MB, free: 3.77 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.482/1.482, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001378/0.001378, allocations: 51.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08886, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2001/0.289, allocations: 19.5 MB / 395.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.3041, allocations: 5.992 MB / 401.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006088/0.3103, allocations: 157.1 kB / 401.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01793/0.3283, allocations: 5.866 MB / 407.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01494/0.3433, allocations: 3.362 MB / 410.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007587/0.3509, allocations: 1.567 MB / 412.3 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02806/0.379, allocations: 11.37 MB / 423.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01625/0.3953, allocations: 7.666 MB / 431.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00979/0.4051, allocations: 3.599 MB / 434.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007671/0.4128, allocations: 4.779 MB / 439.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002615/0.4155, allocations: 0.7148 MB / 440.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005139/0.4206, allocations: 1.678 MB / 442.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006006/0.4267, allocations: 4.302 MB / 446.4 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008277/0.435, allocations: 4.483 MB / 450.8 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01738/0.4524, allocations: 13.69 MB / 464.5 MB, free: 6.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.4524, allocations: 4 kB / 464.5 MB, free: 6.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4525, allocations: 0 / 464.5 MB, free: 6.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004485/0.4529, allocations: 0 / 464.5 MB, free: 6.742 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02549/0.4784, allocations: 9.688 MB / 474.2 MB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.4785, allocations: 12.03 kB / 474.2 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04745/0.526, allocations: 5.236 MB / 479.5 MB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01937/0.5454, allocations: 8.374 MB / 487.8 MB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004182/0.5458, allocations: 427.6 kB / 488.3 MB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002157/0.548, allocations: 0.5853 MB / 488.8 MB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03349/0.5815, allocations: 16.55 MB / 0.4936 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003919/0.5819, allocations: 99.11 kB / 0.4937 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001829/0.5838, allocations: 263.8 kB / 0.4939 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004767/0.5885, allocations: 2.768 MB / 0.4966 GB, free: 9.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02842/0.617, allocations: 13.63 MB / 0.5099 GB, free: 11.87 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.4133/1.03, allocations: 67.64 MB / 0.576 GB, free: 105.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/1.051, allocations: 7.906 MB / 0.5837 GB, free: 104.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006126/1.057, allocations: 4.501 MB / 0.5881 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02044/1.077, allocations: 12.43 MB / 0.6002 GB, free: 96.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/1.077, allocations: 64.36 kB / 0.6003 GB, free: 96.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 6.452e-06/1.077, allocations: 0 / 0.6003 GB, free: 96.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=340): time 0.1651/1.243, allocations: 49.27 MB / 0.6484 GB, free: 58.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.243, allocations: 401.3 kB / 0.6488 GB, free: 58.22 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008997/1.252, allocations: 7.183 MB / 0.6558 GB, free: 51.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008282/1.253, allocations: 80.91 kB / 0.6559 GB, free: 50.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002747/1.255, allocations: 5.041 MB / 0.6608 GB, free: 45.94 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.257, allocations: 1.259 MB / 0.662 GB, free: 44.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002525/1.259, allocations: 1.864 MB / 0.6639 GB, free: 42.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.55e-05/1.259, allocations: 302.2 kB / 0.6641 GB, free: 42.52 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.265, allocations: 4.547 MB / 0.6686 GB, free: 37.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007619/1.272, allocations: 9.276 MB / 0.6776 GB, free: 26.46 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01449/1.287, allocations: 14.55 MB / 0.6919 GB, free: 9.676 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000131/1.287, allocations: 44 kB / 0.6919 GB, free: 9.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04155/1.328, allocations: 19.76 MB / 0.7112 GB, free: 5.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.329, allocations: 72 kB / 0.7113 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000192/1.329, allocations: 160 kB / 0.7114 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02184/1.351, allocations: 7.048 MB / 0.7183 GB, free: 14.52 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00653/1.357, allocations: 1.93 MB / 0.7202 GB, free: 12.59 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2638/1.621, allocations: 35.3 MB / 0.7547 GB, free: 166.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00956/1.631, allocations: 0.5861 MB / 0.7552 GB, free: 166.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002557/1.633, allocations: 499.2 kB / 0.7557 GB, free: 166.7 MB / 0.5138 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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (1049): * Single equations (assignments): 1043 * 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.008133/1.641, allocations: 3.492 MB / 0.7591 GB, free: 166 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/1.643, allocations: 0.637 MB / 0.7597 GB, free: 166 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03084/1.674, allocations: 13.32 MB / 0.7727 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.157e-05/1.674, allocations: 38.69 kB / 0.7728 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-05/1.674, allocations: 19.34 kB / 0.7728 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-05/1.674, allocations: 16.36 kB / 0.7728 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04741/1.722, allocations: 26.6 MB / 0.7988 GB, free: 151.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.68e-05/1.722, allocations: 3.812 kB / 0.7988 GB, free: 151.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.724, allocations: 424.2 kB / 0.7992 GB, free: 151.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01875/1.742, allocations: 6.646 MB / 0.8057 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000888/1.743, allocations: 62.41 kB / 0.8057 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03829/1.782, allocations: 34 MB / 0.839 GB, free: 113.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.782, allocations: 11.94 kB / 0.839 GB, free: 113.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03106/1.813, allocations: 18.77 MB / 0.8573 GB, free: 95.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003942/1.817, allocations: 1.388 MB / 0.8586 GB, free: 93.88 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001955/1.819, allocations: 63.98 kB / 0.8587 GB, free: 93.81 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004486/1.823, allocations: 307.5 kB / 0.859 GB, free: 93.51 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001098/1.824, allocations: 249 kB / 0.8592 GB, free: 93.27 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000307/1.825, allocations: 84 kB / 0.8593 GB, free: 93.19 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007372/1.832, allocations: 4.614 MB / 0.8638 GB, free: 88.61 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.51e-07/1.832, allocations: 0 / 0.8638 GB, free: 88.61 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01053/1.843, allocations: 2.142 MB / 0.8659 GB, free: 86.47 MB / 0.5138 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 (215): * Single equations (assignments): 209 * 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.001101/1.844, allocations: 219.7 kB / 0.8661 GB, free: 86.27 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01833/1.862, allocations: 11.61 MB / 0.8775 GB, free: 74.68 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.907e-05/1.862, allocations: 4 kB / 0.8775 GB, free: 74.67 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008909/1.871, allocations: 5.015 MB / 0.8824 GB, free: 69.62 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007403/1.879, allocations: 0.9995 MB / 0.8833 GB, free: 68.67 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03585/1.914, allocations: 20.2 MB / 0.9031 GB, free: 48.42 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008124/1.923, allocations: 5.466 MB / 0.9084 GB, free: 42.91 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/1.925, allocations: 451.4 kB / 0.9088 GB, free: 42.47 MB / 0.5138 GB Notification: Performance of SimCode: time 1.513e-06/1.925, allocations: 0 / 0.9088 GB, free: 42.47 MB / 0.5138 GB Notification: Performance of Templates: time 0.4807/2.405, allocations: 208.1 MB / 1.112 GB, free: 9.008 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches