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.001057/0.001057, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.00103/0.00103, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.379/1.379, allocations: 205.1 MB / 225.1 MB, free: 12.24 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.001201/0.001201, allocations: 47.94 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08252/0.08374, allocations: 46.62 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01828/0.1021, allocations: 19.5 MB / 348.2 MB, free: 164 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1145, allocations: 5.997 MB / 354.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003793/0.1184, allocations: 155.4 kB / 354.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009929/0.1284, allocations: 5.852 MB / 360.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007503/0.1359, allocations: 3.365 MB / 363.6 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003066/0.139, allocations: 1.564 MB / 365.1 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01422/0.1532, allocations: 11.37 MB / 376.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1765/0.3298, allocations: 7.674 MB / 384.2 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00805/0.3379, allocations: 3.58 MB / 387.8 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008602/0.3465, allocations: 4.765 MB / 392.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003038/0.3496, allocations: 0.7143 MB / 393.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005518/0.3551, allocations: 1.677 MB / 394.9 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005888/0.3611, allocations: 4.223 MB / 399.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008435/0.3695, allocations: 4.482 MB / 403.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/0.3858, allocations: 13.68 MB / 417.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.3859, allocations: 3.984 kB / 417.3 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3859, allocations: 0 / 417.3 MB, free: 5.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005046/0.3864, allocations: 0 / 417.3 MB, free: 5.895 MB / 318.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.02608/0.4125, allocations: 9.688 MB / 427 MB, free: 14.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.4125, allocations: 12.03 kB / 427 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04236/0.4549, allocations: 5.236 MB / 432.3 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02326/0.4782, allocations: 8.365 MB / 440.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004531/0.4787, allocations: 423.7 kB / 441 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002821/0.4815, allocations: 0.5894 MB / 441.6 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03264/0.5142, allocations: 16.56 MB / 458.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003846/0.5146, allocations: 100.6 kB / 458.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001218/0.5159, allocations: 265.2 kB / 458.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004472/0.5203, allocations: 2.762 MB / 461.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03008/0.5505, allocations: 13.63 MB / 474.9 MB, free: 14.34 MB / 382.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.08751/0.638, allocations: 67.65 MB / 0.5299 GB, free: 9.453 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01943/0.6575, allocations: 7.897 MB / 0.5376 GB, free: 1.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1824/0.8399, allocations: 4.502 MB / 0.542 GB, free: 155 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01864/0.8586, allocations: 12.42 MB / 0.5541 GB, free: 149.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/0.8587, allocations: 73.22 kB / 0.5542 GB, free: 149.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.169e-06/0.8587, allocations: 1.562 kB / 0.5542 GB, free: 149.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=340): time 0.1521/1.011, allocations: 49.26 MB / 0.6023 GB, free: 118.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/1.011, allocations: 402.1 kB / 0.6027 GB, free: 117.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009461/1.02, allocations: 7.187 MB / 0.6097 GB, free: 110.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009405/1.021, allocations: 77.7 kB / 0.6098 GB, free: 110.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002626/1.024, allocations: 5.024 MB / 0.6147 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001609/1.026, allocations: 1.261 MB / 0.6159 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002525/1.028, allocations: 1.874 MB / 0.6177 GB, free: 102.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.428e-05/1.028, allocations: 305.1 kB / 0.618 GB, free: 102 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005097/1.033, allocations: 4.551 MB / 0.6225 GB, free: 97.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006915/1.04, allocations: 9.27 MB / 0.6315 GB, free: 85.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/1.055, allocations: 14.54 MB / 0.6457 GB, free: 69.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/1.055, allocations: 48 kB / 0.6458 GB, free: 69.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03683/1.092, allocations: 19.77 MB / 0.6651 GB, free: 49.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/1.092, allocations: 76 kB / 0.6651 GB, free: 49.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/1.092, allocations: 160 kB / 0.6653 GB, free: 49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01866/1.111, allocations: 7.032 MB / 0.6722 GB, free: 41.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005904/1.117, allocations: 1.938 MB / 0.6741 GB, free: 40.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2189/1.336, allocations: 35.29 MB / 0.7085 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007854/1.344, allocations: 0.5901 MB / 0.7091 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00183/1.345, allocations: 499.4 kB / 0.7096 GB, free: 127.6 MB / 446.1 MB 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.005675/1.351, allocations: 3.493 MB / 0.713 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/1.353, allocations: 0.6359 MB / 0.7136 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02454/1.377, allocations: 13.33 MB / 0.7266 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.226e-05/1.377, allocations: 38.72 kB / 0.7267 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.953e-05/1.377, allocations: 19.34 kB / 0.7267 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-05/1.377, allocations: 18.84 kB / 0.7267 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04173/1.419, allocations: 26.6 MB / 0.7527 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-05/1.419, allocations: 7.719 kB / 0.7527 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/1.421, allocations: 427.1 kB / 0.7531 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01772/1.439, allocations: 6.644 MB / 0.7596 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008512/1.439, allocations: 63.78 kB / 0.7596 GB, free: 103.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03627/1.476, allocations: 34 MB / 0.7928 GB, free: 69.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.476, allocations: 8 kB / 0.7928 GB, free: 69.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02839/1.504, allocations: 18.76 MB / 0.8112 GB, free: 51.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003943/1.508, allocations: 1.39 MB / 0.8125 GB, free: 49.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/1.509, allocations: 66.72 kB / 0.8126 GB, free: 49.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003081/1.512, allocations: 303.5 kB / 0.8129 GB, free: 49.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008107/1.513, allocations: 241.4 kB / 0.8131 GB, free: 49.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.513, allocations: 90.38 kB / 0.8132 GB, free: 49.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005924/1.519, allocations: 4.607 MB / 0.8177 GB, free: 44.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.519, allocations: 0 / 0.8177 GB, free: 44.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009384/1.529, allocations: 2.148 MB / 0.8198 GB, free: 42.48 MB / 446.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 (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.0006511/1.53, allocations: 209.3 kB / 0.82 GB, free: 42.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0152/1.545, allocations: 11.64 MB / 0.8313 GB, free: 30.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.545, allocations: 0 / 0.8313 GB, free: 30.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007531/1.552, allocations: 5.012 MB / 0.8362 GB, free: 25.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006665/1.559, allocations: 0.9935 MB / 0.8372 GB, free: 24.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1925/1.752, allocations: 19.64 MB / 0.8564 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/1.762, allocations: 5.559 MB / 0.8618 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007428/1.77, allocations: 2.606 MB / 0.8644 GB, free: 130.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/1.771, allocations: 393.3 kB / 0.8647 GB, free: 130.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/1.771, allocations: 0 / 0.8647 GB, free: 130.3 MB / 446.1 MB Notification: Performance of Templates: time 0.1386/1.91, allocations: 91.38 MB / 0.954 GB, free: 64.29 MB / 446.1 MB 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 -s cvode -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