Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 179.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007126/0.0007126, allocations: 89.33 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003234, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2096, allocations: 47.56 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.06528/0.2749, allocations: 93.9 MB / 468.4 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03989/0.3148, allocations: 19.13 MB / 487.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02157/0.3365, allocations: 466.8 kB / 488 MB, free: 15.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01617/0.3527, allocations: 4.914 MB / 493 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2254/0.5781, allocations: 14.59 MB / 0.4956 GB, free: 5.168 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005231/0.5833, allocations: 1.408 MB / 0.497 GB, free: 5.141 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1025/0.6859, allocations: 98.21 MB / 0.5929 GB, free: 15.02 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01357/0.6995, allocations: 8.938 MB / 0.6017 GB, free: 8.684 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006683/0.7062, allocations: 2.937 MB / 0.6045 GB, free: 6.664 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007319/0.7136, allocations: 4.463 MB / 0.6089 GB, free: 3.418 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001624/0.7152, allocations: 276 kB / 0.6091 GB, free: 3.148 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003401/0.7187, allocations: 1.123 MB / 0.6102 GB, free: 2.223 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004514/0.7232, allocations: 3.711 MB / 0.6139 GB, free: 15.46 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003682/0.7269, allocations: 1.565 MB / 0.6154 GB, free: 14.89 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01132/0.7382, allocations: 10.59 MB / 0.6257 GB, free: 5.688 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.7383, allocations: 4 kB / 0.6257 GB, free: 5.684 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.7383, allocations: 0 / 0.6257 GB, free: 5.684 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004724/0.7388, allocations: 4 kB / 0.6257 GB, free: 5.68 MB / 458.7 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.02309/0.7619, allocations: 8.126 MB / 0.6337 GB, free: 14.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.7619, allocations: 8.031 kB / 0.6337 GB, free: 14.15 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0777/0.8397, allocations: 5.363 MB / 0.6389 GB, free: 8.973 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0276/0.8673, allocations: 8.036 MB / 0.6468 GB, free: 3.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005954/0.8679, allocations: 427.8 kB / 0.6472 GB, free: 2.945 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003133/0.8711, allocations: 0.586 MB / 0.6477 GB, free: 2.555 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03669/0.9078, allocations: 16.58 MB / 0.6639 GB, free: 5.625 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004315/0.9083, allocations: 94.61 kB / 0.664 GB, free: 5.566 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/0.91, allocations: 268.4 kB / 0.6643 GB, free: 5.488 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004536/0.9146, allocations: 2.763 MB / 0.667 GB, free: 3.23 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.33/1.245, allocations: 13.63 MB / 0.6803 GB, free: 204.7 MB / 490.8 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.07189/1.316, allocations: 68.01 MB / 0.7467 GB, free: 144 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/1.334, allocations: 7.926 MB / 0.7545 GB, free: 136 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005096/1.339, allocations: 4.491 MB / 0.7588 GB, free: 131.5 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01821/1.358, allocations: 12.42 MB / 0.771 GB, free: 119 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.454e-05/1.358, allocations: 82.92 kB / 0.771 GB, free: 118.9 MB / 490.8 MB Notification: Performance of pre-optimization done (n=280): time 5.721e-06/1.358, allocations: 1.641 kB / 0.771 GB, free: 118.9 MB / 490.8 MB Notification: Performance of matching and sorting (n=340): time 0.1613/1.519, allocations: 50.11 MB / 0.82 GB, free: 69.07 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/1.519, allocations: 406 kB / 0.8204 GB, free: 68.59 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009544/1.529, allocations: 7.14 MB / 0.8273 GB, free: 61.46 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009108/1.53, allocations: 78.33 kB / 0.8274 GB, free: 61.38 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002721/1.532, allocations: 5.032 MB / 0.8323 GB, free: 56.36 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.534, allocations: 1.266 MB / 0.8336 GB, free: 55.1 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004864/1.534, allocations: 180 kB / 0.8337 GB, free: 54.92 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003506/1.535, allocations: 0.6865 MB / 0.8344 GB, free: 54.23 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005457/1.54, allocations: 4.511 MB / 0.8388 GB, free: 49.71 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007395/1.548, allocations: 9.232 MB / 0.8478 GB, free: 38.18 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007859/1.556, allocations: 6.273 MB / 0.854 GB, free: 31.9 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.845e-05/1.556, allocations: 44 kB / 0.854 GB, free: 31.86 MB / 490.8 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03607/1.592, allocations: 19.7 MB / 0.8732 GB, free: 12.11 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001846/1.592, allocations: 76 kB / 0.8733 GB, free: 12.03 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002218/1.592, allocations: 160 kB / 0.8735 GB, free: 11.88 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01986/1.612, allocations: 7.058 MB / 0.8804 GB, free: 4.797 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005963/1.618, allocations: 1.93 MB / 0.8822 GB, free: 2.863 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2337/1.852, allocations: 33.2 MB / 0.9147 GB, free: 173.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008052/1.86, allocations: 0.5946 MB / 0.9152 GB, free: 173.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/1.861, allocations: 0.4923 MB / 0.9157 GB, free: 173.4 MB / 490.8 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 (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.005201/1.866, allocations: 3.487 MB / 0.9191 GB, free: 172.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.867, allocations: 0.6341 MB / 0.9197 GB, free: 172.1 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0242/1.892, allocations: 13.3 MB / 0.9327 GB, free: 165 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.935e-05/1.892, allocations: 33.17 kB / 0.9328 GB, free: 165 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/1.892, allocations: 20 kB / 0.9328 GB, free: 164.9 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.064e-05/1.892, allocations: 19.94 kB / 0.9328 GB, free: 164.9 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04129/1.933, allocations: 26.72 MB / 0.9589 GB, free: 138 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.207e-05/1.933, allocations: 8 kB / 0.9589 GB, free: 138 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/1.935, allocations: 423.3 kB / 0.9593 GB, free: 137.6 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01808/1.953, allocations: 6.68 MB / 0.9658 GB, free: 130.9 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000717/1.954, allocations: 68.06 kB / 0.9659 GB, free: 130.9 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03615/1.99, allocations: 31.96 MB / 0.9971 GB, free: 98.77 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/1.99, allocations: 7.938 kB / 0.9971 GB, free: 98.76 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03034/2.02, allocations: 18.73 MB / 1.015 GB, free: 80.14 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003729/2.024, allocations: 1.394 MB / 1.017 GB, free: 78.73 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/2.026, allocations: 63.98 kB / 1.017 GB, free: 78.66 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003604/2.029, allocations: 308.8 kB / 1.017 GB, free: 78.36 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007065/2.03, allocations: 246.4 kB / 1.017 GB, free: 78.12 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002586/2.03, allocations: 88 kB / 1.017 GB, free: 78.04 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006/2.036, allocations: 4.564 MB / 1.022 GB, free: 73.5 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.71e-07/2.036, allocations: 0 / 1.022 GB, free: 73.5 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008912/2.045, allocations: 2.147 MB / 1.024 GB, free: 71.36 MB / 490.8 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 (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.0006532/2.046, allocations: 217.8 kB / 1.024 GB, free: 71.16 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01601/2.062, allocations: 11.51 MB / 1.035 GB, free: 59.67 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/2.062, allocations: 2.406 kB / 1.035 GB, free: 59.67 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007331/2.069, allocations: 4.999 MB / 1.04 GB, free: 54.62 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006108/2.075, allocations: 0.9484 MB / 1.041 GB, free: 53.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03664/2.112, allocations: 23.01 MB / 1.064 GB, free: 30.77 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005425/2.118, allocations: 5.47 MB / 1.069 GB, free: 25.26 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/2.119, allocations: 451.3 kB / 1.069 GB, free: 24.82 MB / 490.8 MB Notification: Performance of SimCode: time 1.453e-06/2.119, allocations: 0 / 1.069 GB, free: 24.82 MB / 490.8 MB Notification: Performance of Templates: time 0.5827/2.702, allocations: 206.3 MB / 1.271 GB, free: 165.4 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches