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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002771/0.002771, allocations: 180.6 kB / 8.151 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001328/0.001328, allocations: 95.31 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.408e-06/9.518e-06, allocations: 0 / 314.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2452, allocations: 47.55 MB / 361.8 MB, free: 45.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.3997, allocations: 97 MB / 458.8 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.4001, allocations: 88.45 kB / 458.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.8374/1.237, allocations: 160.8 MB / 0.6052 GB, free: 35.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007727/1.238, allocations: 167.9 kB / 0.6054 GB, free: 35.48 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.0353/1.274, allocations: 8.04 MB / 0.6132 GB, free: 27.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.274, allocations: 8.031 kB / 0.6132 GB, free: 27.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1094/1.383, allocations: 16.12 MB / 0.629 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04882/1.432, allocations: 13.94 MB / 0.6426 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004972/1.433, allocations: 240 kB / 0.6428 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00386/1.436, allocations: 471.6 kB / 0.6433 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03042/1.467, allocations: 10.35 MB / 0.6534 GB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1902/1.657, allocations: 15.26 MB / 0.6683 GB, free: 95.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008847/1.658, allocations: 112.2 kB / 0.6684 GB, free: 95.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003743/1.662, allocations: 41.03 kB / 0.6684 GB, free: 95.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003822/1.666, allocations: 1.681 MB / 0.67 GB, free: 95.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1298/1.796, allocations: 75.6 MB / 0.7439 GB, free: 52.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/1.807, allocations: 5.626 MB / 0.7494 GB, free: 50.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008855/1.816, allocations: 4.563 MB / 0.7538 GB, free: 48.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03584/1.852, allocations: 14.11 MB / 0.7676 GB, free: 40.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.741e-05/1.852, allocations: 72.69 kB / 0.7677 GB, free: 40.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 7.915e-06/1.852, allocations: 0 / 0.7677 GB, free: 40.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=366): time 0.1691/2.021, allocations: 33.91 MB / 0.8008 GB, free: 21.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/2.021, allocations: 398.3 kB / 0.8012 GB, free: 20.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01528/2.036, allocations: 5.75 MB / 0.8068 GB, free: 15.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009767/2.037, allocations: 29.7 kB / 0.8068 GB, free: 15.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003313/2.041, allocations: 4.24 MB / 0.811 GB, free: 11.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002165/2.043, allocations: 1.294 MB / 0.8122 GB, free: 10.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/2.044, allocations: 0 / 0.8122 GB, free: 10.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000636/2.045, allocations: 0.6895 MB / 0.8129 GB, free: 9.926 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008848/2.054, allocations: 3.439 MB / 0.8163 GB, free: 6.824 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1838/2.237, allocations: 8.397 MB / 0.8245 GB, free: 89.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/2.251, allocations: 5.342 MB / 0.8297 GB, free: 89.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002046/2.251, allocations: 48.59 kB / 0.8297 GB, free: 89.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.0521/2.303, allocations: 13.49 MB / 0.8429 GB, free: 88.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/2.303, allocations: 7.031 kB / 0.8429 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003252/2.303, allocations: 174.4 kB / 0.8431 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0197/2.323, allocations: 3.292 MB / 0.8463 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01281/2.336, allocations: 1.883 MB / 0.8481 GB, free: 88.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05622/2.392, allocations: 21.84 MB / 0.8694 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009643/2.402, allocations: 280.7 kB / 0.8697 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002623/2.405, allocations: 0.5007 MB / 0.8702 GB, free: 84.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1027): * Single equations (assignments): 1021 * 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 {(3,88.9%) 103,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003876/2.409, allocations: 498.7 kB / 0.8707 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002139/2.411, allocations: 0.6457 MB / 0.8713 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03602/2.447, allocations: 8.53 MB / 0.8796 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001244/2.447, allocations: 33.66 kB / 0.8797 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.195e-05/2.447, allocations: 19.25 kB / 0.8797 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.304e-05/2.447, allocations: 19.45 kB / 0.8797 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07066/2.518, allocations: 17.91 MB / 0.8972 GB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.398e-05/2.518, allocations: 7.719 kB / 0.8972 GB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004348/2.522, allocations: 432.3 kB / 0.8976 GB, free: 76.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02075/2.543, allocations: 3.336 MB / 0.9009 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009438/2.544, allocations: 14.62 kB / 0.9009 GB, free: 76.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05382/2.598, allocations: 20.41 MB / 0.9208 GB, free: 61.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.601e-05/2.598, allocations: 19.12 kB / 0.9208 GB, free: 61.67 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04237/2.64, allocations: 14.72 MB / 0.9352 GB, free: 48.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005066/2.646, allocations: 1.182 MB / 0.9364 GB, free: 47.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002791/2.648, allocations: 15.89 kB / 0.9364 GB, free: 47.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007316/2.656, allocations: 116.8 kB / 0.9365 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001364/2.657, allocations: 191.3 kB / 0.9367 GB, free: 47.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001026/2.658, allocations: 100 kB / 0.9368 GB, free: 47.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01153/2.67, allocations: 4.024 MB / 0.9407 GB, free: 43.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01346/2.683, allocations: 1.697 MB / 0.9424 GB, free: 41.96 MB / 410.7 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 () * 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.001359/2.685, allocations: 168.7 kB / 0.9425 GB, free: 41.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02241/2.707, allocations: 8.816 MB / 0.9511 GB, free: 33.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/2.707, allocations: 4 kB / 0.9511 GB, free: 33.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01157/2.719, allocations: 3.786 MB / 0.9548 GB, free: 30.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008888/2.728, allocations: 0.8386 MB / 0.9556 GB, free: 29.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2308/2.959, allocations: 16.42 MB / 0.9717 GB, free: 83.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01908/2.978, allocations: 6.38 MB / 0.9779 GB, free: 82.32 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/2.978, allocations: 0 / 0.9779 GB, free: 82.32 MB / 410.7 MB Notification: Performance of Templates: time 0.5848/3.563, allocations: 205.4 MB / 1.179 GB, free: 62.6 MB / 410.7 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