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.001591/0.001591, allocations: 185.3 kB / 16.4 MB, free: 5.746 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.906/1.906, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001127/0.001126, allocations: 92.52 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004047/0.0004045, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3272, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.4893, allocations: 97.81 MB / 472.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00035/0.4897, allocations: 91.95 kB / 472.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9065/1.396, allocations: 166.5 MB / 0.624 GB, free: 5.703 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.396, allocations: 4 kB / 0.624 GB, free: 5.699 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008135/1.397, allocations: 160 kB / 0.6242 GB, free: 5.543 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.04145/1.439, allocations: 9.323 MB / 0.6333 GB, free: 12.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/1.439, allocations: 8.031 kB / 0.6333 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7032/2.142, allocations: 16.55 MB / 0.6494 GB, free: 49.56 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04585/2.188, allocations: 13.83 MB / 0.6629 GB, free: 49.27 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007581/2.189, allocations: 0.5513 MB / 0.6635 GB, free: 49.25 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004131/2.193, allocations: 0.7607 MB / 0.6642 GB, free: 49.25 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05532/2.248, allocations: 16.97 MB / 0.6808 GB, free: 45.64 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007603/2.249, allocations: 108.9 kB / 0.6809 GB, free: 45.62 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003345/2.252, allocations: 352.1 kB / 0.6812 GB, free: 45.62 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00347/2.256, allocations: 1.54 MB / 0.6827 GB, free: 45.61 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04385/2.3, allocations: 13.34 MB / 0.6958 GB, free: 45.55 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1227/2.422, allocations: 74.81 MB / 0.7688 GB, free: 7.82 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03327/2.456, allocations: 7.097 MB / 0.7757 GB, free: 1.914 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03176/2.488, allocations: 11.92 MB / 0.7874 GB, free: 7.648 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.404e-05/2.488, allocations: 64.56 kB / 0.7874 GB, free: 7.578 MB / 442.8 MB Notification: Performance of pre-optimization done (n=293): time 6.763e-06/2.488, allocations: 0 / 0.7874 GB, free: 7.578 MB / 442.8 MB Notification: Performance of matching and sorting (n=366): time 0.587/3.075, allocations: 42.75 MB / 0.8292 GB, free: 89.9 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/3.075, allocations: 401.2 kB / 0.8296 GB, free: 89.46 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01692/3.092, allocations: 6.443 MB / 0.8359 GB, free: 88.97 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009346/3.093, allocations: 79.45 kB / 0.8359 GB, free: 88.94 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004875/3.098, allocations: 5.082 MB / 0.8409 GB, free: 86.54 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002006/3.1, allocations: 1.345 MB / 0.8422 GB, free: 85.74 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/3.101, allocations: 173.8 kB / 0.8424 GB, free: 85.74 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005835/3.102, allocations: 0.6805 MB / 0.8431 GB, free: 85.41 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009249/3.111, allocations: 3.537 MB / 0.8465 GB, free: 85.39 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01315/3.124, allocations: 8.399 MB / 0.8547 GB, free: 79.17 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01302/3.137, allocations: 5.322 MB / 0.8599 GB, free: 79.12 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002621/3.138, allocations: 48.25 kB / 0.86 GB, free: 79.12 MB / 458.8 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.04613/3.184, allocations: 14.61 MB / 0.8742 GB, free: 78.22 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/3.184, allocations: 79.62 kB / 0.8743 GB, free: 78.22 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002897/3.184, allocations: 165.8 kB / 0.8745 GB, free: 78.22 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01921/3.203, allocations: 3.736 MB / 0.8781 GB, free: 77.51 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/3.215, allocations: 1.857 MB / 0.8799 GB, free: 77.29 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05493/3.27, allocations: 24.73 MB / 0.9041 GB, free: 65.23 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/3.281, allocations: 0.4922 MB / 0.9046 GB, free: 65.07 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00215/3.283, allocations: 0.4907 MB / 0.905 GB, free: 65 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.01062/3.294, allocations: 3.629 MB / 0.9086 GB, free: 63.39 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001901/3.296, allocations: 0.6856 MB / 0.9092 GB, free: 63.01 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03233/3.328, allocations: 8.909 MB / 0.9179 GB, free: 59.58 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.136e-05/3.328, allocations: 39.77 kB / 0.918 GB, free: 59.54 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.659e-05/3.329, allocations: 23.59 kB / 0.918 GB, free: 59.52 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.7e-05/3.329, allocations: 19.73 kB / 0.918 GB, free: 59.52 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05797/3.387, allocations: 19.5 MB / 0.9371 GB, free: 43.68 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.852e-05/3.387, allocations: 8 kB / 0.9371 GB, free: 43.67 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003923/3.391, allocations: 451.8 kB / 0.9375 GB, free: 43.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01811/3.409, allocations: 3.48 MB / 0.9409 GB, free: 40.83 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000806/3.41, allocations: 74.94 kB / 0.941 GB, free: 40.76 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05063/3.46, allocations: 24 MB / 0.9644 GB, free: 19.77 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/3.46, allocations: 15.94 kB / 0.9644 GB, free: 19.75 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.038/3.498, allocations: 15.04 MB / 0.9791 GB, free: 6.52 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004565/3.503, allocations: 1.226 MB / 0.9803 GB, free: 5.367 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/3.505, allocations: 71.61 kB / 0.9804 GB, free: 5.301 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006091/3.511, allocations: 215.4 kB / 0.9806 GB, free: 5.16 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3259/3.837, allocations: 272.1 kB / 0.9808 GB, free: 80.93 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008382/3.838, allocations: 102.6 kB / 0.9809 GB, free: 80.93 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01273/3.851, allocations: 4.653 MB / 0.9855 GB, free: 80.71 MB / 458.8 MB Notification: Performance of sort global known variables: time 4.31e-07/3.851, allocations: 0 / 0.9855 GB, free: 80.71 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01332/3.864, allocations: 2.013 MB / 0.9875 GB, free: 80.71 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.001351/3.866, allocations: 233.7 kB / 0.9877 GB, free: 80.62 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0235/3.889, allocations: 9.383 MB / 0.9968 GB, free: 80.12 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/3.889, allocations: 3.438 kB / 0.9968 GB, free: 80.12 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01155/3.901, allocations: 4.12 MB / 1.001 GB, free: 79.66 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009192/3.91, allocations: 1.023 MB / 1.002 GB, free: 79.62 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0583/3.969, allocations: 22.4 MB / 1.024 GB, free: 71.55 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/3.986, allocations: 5.95 MB / 1.03 GB, free: 70.64 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002734/3.988, allocations: 472.4 kB / 1.03 GB, free: 70.64 MB / 458.8 MB Notification: Performance of SimCode: time 1.382e-06/3.988, allocations: 3.75 kB / 1.03 GB, free: 70.64 MB / 458.8 MB Notification: Performance of Templates: time 0.6931/4.682, allocations: 202.3 MB / 1.228 GB, free: 81.03 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