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.0009108/0.0009108, allocations: 180.5 kB / 17.41 MB, free: 4.41 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.282/1.282, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0007515/0.0007516, allocations: 89.36 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003199, allocations: 19.98 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2247, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1068/0.3316, allocations: 97.99 MB / 473.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.3319, allocations: 91.94 kB / 473.8 MB, free: 14.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5232/0.8551, allocations: 162.8 MB / 0.6217 GB, free: 8.984 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.8551, allocations: 0 / 0.6217 GB, free: 8.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006938/0.8558, allocations: 168 kB / 0.6219 GB, free: 8.82 MB / 394.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.02895/0.8848, allocations: 9.061 MB / 0.6307 GB, free: 15.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.8849, allocations: 8.031 kB / 0.6307 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04865/0.9335, allocations: 11.62 MB / 0.6421 GB, free: 4.004 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.423/1.357, allocations: 12.34 MB / 0.6541 GB, free: 49.1 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004869/1.357, allocations: 0.5571 MB / 0.6547 GB, free: 49.09 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003118/1.36, allocations: 0.7564 MB / 0.6554 GB, free: 49.08 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03337/1.394, allocations: 16.79 MB / 0.6718 GB, free: 45.47 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005021/1.394, allocations: 111.5 kB / 0.6719 GB, free: 45.46 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001952/1.396, allocations: 353.1 kB / 0.6722 GB, free: 45.46 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002552/1.399, allocations: 1.537 MB / 0.6737 GB, free: 45.45 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02727/1.426, allocations: 13.09 MB / 0.6865 GB, free: 45.39 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08078/1.507, allocations: 74.68 MB / 0.7595 GB, free: 10.82 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01708/1.524, allocations: 7.013 MB / 0.7663 GB, free: 8.379 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005448/1.529, allocations: 3.968 MB / 0.7702 GB, free: 5.613 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01954/1.549, allocations: 11.84 MB / 0.7818 GB, free: 11.43 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.349e-05/1.549, allocations: 72.02 kB / 0.7818 GB, free: 11.36 MB / 442.8 MB Notification: Performance of pre-optimization done (n=293): time 5.981e-06/1.549, allocations: 0 / 0.7818 GB, free: 11.36 MB / 442.8 MB Notification: Performance of matching and sorting (n=366): time 0.3913/1.94, allocations: 42.04 MB / 0.8229 GB, free: 93.27 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/1.941, allocations: 404.7 kB / 0.8233 GB, free: 92.83 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/1.954, allocations: 7.282 MB / 0.8304 GB, free: 92.31 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008858/1.955, allocations: 81.33 kB / 0.8305 GB, free: 92.28 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005053/1.96, allocations: 5.446 MB / 0.8358 GB, free: 90.21 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001793/1.962, allocations: 1.343 MB / 0.8371 GB, free: 89.42 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009051/1.963, allocations: 172.9 kB / 0.8372 GB, free: 89.42 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004692/1.963, allocations: 0.67 MB / 0.8379 GB, free: 89.09 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006065/1.969, allocations: 3.535 MB / 0.8414 GB, free: 89.07 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009393/1.979, allocations: 8.434 MB / 0.8496 GB, free: 82.86 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0157/1.994, allocations: 12.99 MB / 0.8623 GB, free: 76.7 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003312/1.995, allocations: 53.72 kB / 0.8623 GB, free: 76.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.03136/2.026, allocations: 14.97 MB / 0.8769 GB, free: 73.65 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/2.026, allocations: 79.62 kB / 0.877 GB, free: 73.64 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002375/2.026, allocations: 167.4 kB / 0.8772 GB, free: 73.64 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01041/2.037, allocations: 3.71 MB / 0.8808 GB, free: 72.94 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006051/2.043, allocations: 1.862 MB / 0.8826 GB, free: 72.71 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02863/2.072, allocations: 23.89 MB / 0.906 GB, free: 60.98 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007808/2.079, allocations: 0.4964 MB / 0.9064 GB, free: 60.82 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001911/2.081, allocations: 0.492 MB / 0.9069 GB, free: 60.75 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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 (1003): * Single equations (assignments): 997 * 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.008337/2.09, allocations: 3.619 MB / 0.9105 GB, free: 59.14 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001547/2.091, allocations: 0.6831 MB / 0.9111 GB, free: 58.77 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01688/2.108, allocations: 8.925 MB / 0.9198 GB, free: 53.97 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/2.108, allocations: 36 kB / 0.9199 GB, free: 53.94 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.379e-05/2.108, allocations: 23.06 kB / 0.9199 GB, free: 53.92 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.107e-05/2.108, allocations: 18.61 kB / 0.9199 GB, free: 53.91 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03779/2.146, allocations: 19.51 MB / 0.939 GB, free: 38.07 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.714e-05/2.146, allocations: 11.84 kB / 0.939 GB, free: 38.06 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/2.148, allocations: 448.1 kB / 0.9394 GB, free: 37.69 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01007/2.159, allocations: 3.481 MB / 0.9428 GB, free: 35.21 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008499/2.159, allocations: 68 kB / 0.9429 GB, free: 35.14 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0273/2.187, allocations: 23.13 MB / 0.9655 GB, free: 14.84 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/2.187, allocations: 23.88 kB / 0.9655 GB, free: 14.82 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02161/2.208, allocations: 13.49 MB / 0.9787 GB, free: 3.25 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2292/2.438, allocations: 1.225 MB / 0.9799 GB, free: 82.48 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00212/2.44, allocations: 67.95 kB / 0.9799 GB, free: 82.48 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004014/2.444, allocations: 213.9 kB / 0.9801 GB, free: 82.48 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009891/2.445, allocations: 270.3 kB / 0.9804 GB, free: 82.47 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003036/2.445, allocations: 105 kB / 0.9805 GB, free: 82.47 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008887/2.454, allocations: 4.661 MB / 0.985 GB, free: 82.26 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.8e-07/2.454, allocations: 0 / 0.985 GB, free: 82.26 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01012/2.464, allocations: 2.001 MB / 0.987 GB, free: 82.26 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008868/2.465, allocations: 233.2 kB / 0.9872 GB, free: 82.17 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0149/2.48, allocations: 9.387 MB / 0.9964 GB, free: 81.66 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/2.48, allocations: 2.875 kB / 0.9964 GB, free: 81.66 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006996/2.487, allocations: 4.129 MB / 1 GB, free: 81.2 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0163/2.504, allocations: 1.057 MB / 1.001 GB, free: 81.16 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04026/2.544, allocations: 22.47 MB / 1.023 GB, free: 73.1 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/2.556, allocations: 5.784 MB / 1.029 GB, free: 72.19 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/2.558, allocations: 471 kB / 1.029 GB, free: 72.19 MB / 458.8 MB Notification: Performance of SimCode: time 8.11e-07/2.558, allocations: 3 kB / 1.029 GB, free: 72.19 MB / 458.8 MB Notification: Performance of Templates: time 0.4751/3.033, allocations: 212 MB / 1.236 GB, free: 70.69 MB / 474.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/jenkins1/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