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.0009407/0.0009407, allocations: 92.8 kB / 16.93 MB, free: 5.977 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.001005/0.001005, allocations: 178.9 kB / 17.82 MB, free: 5.652 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.37/1.37, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006417/0.0006419, allocations: 8.781 kB / 280.7 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.09938, allocations: 47.59 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2473/0.3467, allocations: 88.52 MB / 416.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04372/0.3905, allocations: 20.08 MB / 436.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02422/0.4148, allocations: 465.6 kB / 437.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01772/0.4326, allocations: 4.456 MB / 441.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04662/0.4792, allocations: 12.79 MB / 454.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008775/0.488, allocations: 1.385 MB / 456 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1096/0.5977, allocations: 77.72 MB / 0.5212 GB, free: 8.152 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01476/0.6125, allocations: 8.866 MB / 0.5299 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006038/0.6186, allocations: 2.414 MB / 0.5323 GB, free: 12.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006302/0.6249, allocations: 3.14 MB / 0.5353 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002262/0.6272, allocations: 276 kB / 0.5356 GB, free: 9.379 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.6313, allocations: 1.096 MB / 0.5367 GB, free: 8.281 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006091/0.6374, allocations: 3.429 MB / 0.54 GB, free: 4.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003588/0.641, allocations: 1.594 MB / 0.5416 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4642/1.105, allocations: 11.27 MB / 0.5526 GB, free: 87.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/1.105, allocations: 0.7188 kB / 0.5526 GB, free: 87.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/1.105, allocations: 2.422 kB / 0.5526 GB, free: 87.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006875/1.106, allocations: 0 / 0.5526 GB, free: 87.45 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.03311/1.139, allocations: 8.896 MB / 0.5613 GB, free: 84.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/1.139, allocations: 11.5 kB / 0.5613 GB, free: 84.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2894/1.429, allocations: 29.79 MB / 0.5904 GB, free: 71.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02086/1.45, allocations: 9.165 MB / 0.5993 GB, free: 64.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003985/1.45, allocations: 427.6 kB / 0.5997 GB, free: 64.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003137/1.453, allocations: 0.5864 MB / 0.6003 GB, free: 63.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0368/1.49, allocations: 16.39 MB / 0.6163 GB, free: 51.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005213/1.49, allocations: 101 kB / 0.6164 GB, free: 51.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001855/1.492, allocations: 268.4 kB / 0.6166 GB, free: 51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004215/1.497, allocations: 2.763 MB / 0.6193 GB, free: 48.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02774/1.524, allocations: 13.11 MB / 0.6322 GB, free: 39.62 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.09435/1.619, allocations: 66.83 MB / 0.6974 GB, free: 11.51 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02039/1.639, allocations: 7.699 MB / 0.7049 GB, free: 3.684 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/1.662, allocations: 11.89 MB / 0.7165 GB, free: 7.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.317e-05/1.662, allocations: 62.06 kB / 0.7166 GB, free: 7.613 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 6.282e-06/1.662, allocations: 0 / 0.7166 GB, free: 7.613 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.4105/2.072, allocations: 47.49 MB / 0.763 GB, free: 190.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/2.073, allocations: 400 kB / 0.7634 GB, free: 189.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01247/2.085, allocations: 7.95 MB / 0.7711 GB, free: 182 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001206/2.086, allocations: 78.25 kB / 0.7712 GB, free: 181.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003565/2.09, allocations: 5.184 MB / 0.7763 GB, free: 176.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001991/2.092, allocations: 1.248 MB / 0.7775 GB, free: 175.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006839/2.093, allocations: 164 kB / 0.7776 GB, free: 175.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003667/2.093, allocations: 0.6453 MB / 0.7783 GB, free: 174.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005173/2.098, allocations: 3.932 MB / 0.7821 GB, free: 170.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006767/2.105, allocations: 8.512 MB / 0.7904 GB, free: 160 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007131/2.112, allocations: 5.623 MB / 0.7959 GB, free: 154.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.725e-05/2.112, allocations: 44 kB / 0.796 GB, free: 154.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03313/2.145, allocations: 17.1 MB / 0.8127 GB, free: 137.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/2.146, allocations: 72 kB / 0.8127 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/2.146, allocations: 160 kB / 0.8129 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01684/2.163, allocations: 5.808 MB / 0.8186 GB, free: 131.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/2.169, allocations: 1.751 MB / 0.8203 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03549/2.204, allocations: 30.69 MB / 0.8502 GB, free: 98.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009291/2.213, allocations: 0.5227 MB / 0.8507 GB, free: 97.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00204/2.216, allocations: 472 kB / 0.8512 GB, free: 97.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * 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 (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007073/2.223, allocations: 3.473 MB / 0.8546 GB, free: 93.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.224, allocations: 0.6556 MB / 0.8552 GB, free: 93.14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02115/2.245, allocations: 11.46 MB / 0.8664 GB, free: 81.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.142e-05/2.246, allocations: 42.28 kB / 0.8665 GB, free: 81.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/2.246, allocations: 20 kB / 0.8665 GB, free: 81.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.605e-05/2.246, allocations: 19.89 kB / 0.8665 GB, free: 81.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04406/2.29, allocations: 24.93 MB / 0.8908 GB, free: 56.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.232e-05/2.29, allocations: 8.25 kB / 0.8909 GB, free: 56.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/2.292, allocations: 423.4 kB / 0.8913 GB, free: 55.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01519/2.307, allocations: 5.426 MB / 0.8966 GB, free: 50.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006232/2.308, allocations: 60 kB / 0.8966 GB, free: 50.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3037/2.611, allocations: 29.38 MB / 0.9253 GB, free: 183.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.348e-05/2.612, allocations: 6.75 kB / 0.9253 GB, free: 183.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03365/2.645, allocations: 17.59 MB / 0.9425 GB, free: 179.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004876/2.65, allocations: 1.359 MB / 0.9438 GB, free: 179.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001853/2.652, allocations: 62.62 kB / 0.9439 GB, free: 179 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003699/2.656, allocations: 273.4 kB / 0.9441 GB, free: 179 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007851/2.656, allocations: 239.3 kB / 0.9444 GB, free: 179 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/2.657, allocations: 92.94 kB / 0.9445 GB, free: 178.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008724/2.665, allocations: 5.231 MB / 0.9496 GB, free: 177.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.3e-07/2.666, allocations: 2.625 kB / 0.9496 GB, free: 177.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01126/2.677, allocations: 2.003 MB / 0.9515 GB, free: 177 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009287/2.678, allocations: 236.4 kB / 0.9517 GB, free: 176.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01733/2.695, allocations: 10.41 MB / 0.9619 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/2.695, allocations: 7.469 kB / 0.9619 GB, free: 172.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007504/2.703, allocations: 4.664 MB / 0.9665 GB, free: 170.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00609/2.709, allocations: 0.9842 MB / 0.9674 GB, free: 169.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03701/2.746, allocations: 21.74 MB / 0.9887 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007642/2.754, allocations: 5.729 MB / 0.9943 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006942/2.76, allocations: 2.641 MB / 0.9968 GB, free: 144.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/2.762, allocations: 407.4 kB / 0.9972 GB, free: 144 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/2.762, allocations: 0 / 0.9972 GB, free: 144 MB / 494.1 MB Notification: Performance of Templates: time 0.1449/2.907, allocations: 88.54 MB / 1.084 GB, free: 55.38 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches