Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009048/0.0009049, allocations: 175.5 kB / 16.72 MB, free: 4.961 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.28/1.28, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007553/0.0007553, allocations: 86.41 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.233, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07867/0.3117, allocations: 101.3 MB / 476.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04759/0.3594, allocations: 20.44 MB / 496.8 MB, free: 6.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01869/0.3781, allocations: 0.4948 MB / 497.3 MB, free: 6.184 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01565/0.3938, allocations: 5.284 MB / 0.4908 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2462/0.6401, allocations: 15.67 MB / 0.5061 GB, free: 3.664 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008739/0.6488, allocations: 1.547 MB / 0.5076 GB, free: 3.637 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1198/0.7687, allocations: 98.66 MB / 0.604 GB, free: 5.426 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0166/0.7854, allocations: 10.32 MB / 0.614 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007185/0.7926, allocations: 3.093 MB / 0.617 GB, free: 11.78 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007687/0.8003, allocations: 4.637 MB / 0.6216 GB, free: 8.418 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002272/0.8026, allocations: 292 kB / 0.6219 GB, free: 8.133 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00513/0.8078, allocations: 1.308 MB / 0.6231 GB, free: 7.078 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006098/0.8139, allocations: 3.851 MB / 0.6269 GB, free: 4.035 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007843/0.8218, allocations: 3.82 MB / 0.6306 GB, free: 1.289 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.8357, allocations: 11 MB / 0.6414 GB, free: 7.727 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.8358, allocations: 0 / 0.6414 GB, free: 7.727 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.8358, allocations: 0 / 0.6414 GB, free: 7.727 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005382/0.8363, allocations: 0 / 0.6414 GB, free: 7.727 MB / 474.7 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.02176/0.8581, allocations: 8.326 MB / 0.6495 GB, free: 20 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.8582, allocations: 8.031 kB / 0.6495 GB, free: 12 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04005/0.8982, allocations: 5.4 MB / 0.6548 GB, free: 10.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0205/0.9188, allocations: 8.367 MB / 0.6629 GB, free: 4.457 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00051/0.9193, allocations: 450 kB / 0.6634 GB, free: 4.211 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002498/0.9218, allocations: 0.6138 MB / 0.664 GB, free: 3.805 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3225/1.244, allocations: 17.15 MB / 0.6807 GB, free: 205.4 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003287/1.245, allocations: 104.7 kB / 0.6808 GB, free: 205.4 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/1.246, allocations: 277.2 kB / 0.6811 GB, free: 205.2 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003783/1.25, allocations: 2.851 MB / 0.6839 GB, free: 204.2 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02605/1.276, allocations: 14.05 MB / 0.6976 GB, free: 195.3 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.07295/1.349, allocations: 69.5 MB / 0.7655 GB, free: 124.9 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01609/1.365, allocations: 7.486 MB / 0.7728 GB, free: 117.3 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004584/1.369, allocations: 4.445 MB / 0.7771 GB, free: 112.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01611/1.386, allocations: 12.76 MB / 0.7896 GB, free: 99.87 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/1.386, allocations: 68.55 kB / 0.7896 GB, free: 99.79 MB / 490.8 MB Notification: Performance of pre-optimization done (n=293): time 7.033e-06/1.386, allocations: 0 / 0.7896 GB, free: 99.79 MB / 490.8 MB Notification: Performance of matching and sorting (n=365): time 0.1282/1.514, allocations: 43.88 MB / 0.8325 GB, free: 56.05 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/1.514, allocations: 398.3 kB / 0.8329 GB, free: 55.58 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009244/1.523, allocations: 7.342 MB / 0.84 GB, free: 48.27 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008452/1.524, allocations: 77.7 kB / 0.8401 GB, free: 48.18 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002759/1.527, allocations: 5.232 MB / 0.8452 GB, free: 42.95 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/1.528, allocations: 1.358 MB / 0.8465 GB, free: 41.61 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007079/1.529, allocations: 184 kB / 0.8467 GB, free: 41.43 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003718/1.53, allocations: 0.703 MB / 0.8474 GB, free: 40.71 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006036/1.536, allocations: 4.251 MB / 0.8516 GB, free: 36.46 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008002/1.544, allocations: 9.156 MB / 0.8605 GB, free: 24.92 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01404/1.558, allocations: 14.2 MB / 0.8744 GB, free: 8.352 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/1.558, allocations: 48 kB / 0.8744 GB, free: 8.305 MB / 490.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.2219/1.78, allocations: 17.92 MB / 0.8919 GB, free: 182.8 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/1.78, allocations: 75.81 kB / 0.892 GB, free: 182.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002996/1.78, allocations: 167.8 kB / 0.8921 GB, free: 182.8 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0154/1.796, allocations: 5.296 MB / 0.8973 GB, free: 181.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006499/1.802, allocations: 2.006 MB / 0.8993 GB, free: 181.9 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03724/1.84, allocations: 29.03 MB / 0.9276 GB, free: 166.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008272/1.848, allocations: 0.5642 MB / 0.9282 GB, free: 165.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.849, allocations: 0.5078 MB / 0.9287 GB, free: 165.2 MB / 490.8 MB 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 (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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.005776/1.855, allocations: 3.627 MB / 0.9322 GB, free: 161.7 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/1.857, allocations: 0.6628 MB / 0.9329 GB, free: 161.4 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/1.876, allocations: 11.25 MB / 0.9438 GB, free: 150.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.194e-05/1.876, allocations: 37.25 kB / 0.9439 GB, free: 150.1 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.52e-05/1.876, allocations: 20 kB / 0.9439 GB, free: 150.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.248e-05/1.876, allocations: 15.94 kB / 0.9439 GB, free: 150.1 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03881/1.915, allocations: 22.15 MB / 0.9655 GB, free: 127.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.315e-05/1.915, allocations: 11.78 kB / 0.9656 GB, free: 127.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/1.917, allocations: 451.3 kB / 0.966 GB, free: 127.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01375/1.931, allocations: 5.033 MB / 0.9709 GB, free: 122.4 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008286/1.932, allocations: 71.94 kB / 0.971 GB, free: 122.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03343/1.965, allocations: 28.39 MB / 0.9987 GB, free: 93.83 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/1.965, allocations: 11.94 kB / 0.9987 GB, free: 93.82 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02615/1.992, allocations: 16.45 MB / 1.015 GB, free: 77.55 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003586/1.995, allocations: 1.343 MB / 1.016 GB, free: 76.25 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/1.997, allocations: 68 kB / 1.016 GB, free: 76.18 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004753/2.002, allocations: 271.5 kB / 1.016 GB, free: 75.92 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001599/2.003, allocations: 270.4 kB / 1.017 GB, free: 75.66 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003981/2.004, allocations: 103.1 kB / 1.017 GB, free: 75.56 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008028/2.012, allocations: 4.683 MB / 1.021 GB, free: 70.91 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.91e-07/2.012, allocations: 0 / 1.021 GB, free: 70.91 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01059/2.023, allocations: 2.18 MB / 1.023 GB, free: 68.74 MB / 490.8 MB 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 (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 {(5,72.0%) 96,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00128/2.024, allocations: 226.7 kB / 1.024 GB, free: 68.53 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01578/2.04, allocations: 10.75 MB / 1.034 GB, free: 57.8 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/2.04, allocations: 0 / 1.034 GB, free: 57.8 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005991/2.046, allocations: 4.467 MB / 1.039 GB, free: 53.3 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01429/2.06, allocations: 0.9643 MB / 1.039 GB, free: 52.35 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03318/2.093, allocations: 22.93 MB / 1.062 GB, free: 29.39 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005862/2.099, allocations: 5.686 MB / 1.067 GB, free: 23.66 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/2.101, allocations: 471.4 kB / 1.068 GB, free: 23.2 MB / 490.8 MB Notification: Performance of SimCode: time 6.11e-07/2.101, allocations: 0 / 1.068 GB, free: 23.2 MB / 490.8 MB Notification: Performance of Templates: time 0.5906/2.691, allocations: 212 MB / 1.275 GB, free: 160.7 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches