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_analytic.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_analytic,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_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,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_analytic") [: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.002545/0.002544, allocations: 179.9 kB / 8.153 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.831/1.831, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001301/0.001301, allocations: 94.06 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.634e-06/7.725e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2386, allocations: 47.55 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.4135, allocations: 108.8 MB / 470.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000342/0.4139, allocations: 91.94 kB / 470.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.8306/1.245, allocations: 177.2 MB / 0.6327 GB, free: 8.125 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008236/1.245, allocations: 187.9 kB / 0.6329 GB, free: 7.941 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03824/1.284, allocations: 8.992 MB / 0.6417 GB, free: 14.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/1.284, allocations: 8.031 kB / 0.6417 GB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2716/1.555, allocations: 16.21 MB / 0.6575 GB, free: 84.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05196/1.607, allocations: 14.76 MB / 0.672 GB, free: 84.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005778/1.608, allocations: 274.2 kB / 0.6722 GB, free: 84.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004585/1.613, allocations: 0.5173 MB / 0.6727 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03327/1.646, allocations: 12.22 MB / 0.6847 GB, free: 84.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04909/1.695, allocations: 17.03 MB / 0.7013 GB, free: 80.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008858/1.696, allocations: 107.4 kB / 0.7014 GB, free: 80.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004079/1.7, allocations: 41.75 kB / 0.7014 GB, free: 80.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004161/1.704, allocations: 1.744 MB / 0.7031 GB, free: 80.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1511/1.856, allocations: 81.12 MB / 0.7824 GB, free: 28.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/1.868, allocations: 5.58 MB / 0.7878 GB, free: 25.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0101/1.878, allocations: 4.642 MB / 0.7923 GB, free: 21.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0408/1.919, allocations: 16.24 MB / 0.8082 GB, free: 6.734 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.855e-05/1.919, allocations: 68.5 kB / 0.8083 GB, free: 6.656 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 6.813e-06/1.919, allocations: 3.688 kB / 0.8083 GB, free: 6.656 MB / 410.7 MB Notification: Performance of matching and sorting (n=409): time 0.4202/2.339, allocations: 35.32 MB / 0.8428 GB, free: 79.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/2.339, allocations: 404.8 kB / 0.8432 GB, free: 78.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01736/2.356, allocations: 6.027 MB / 0.849 GB, free: 78.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/2.358, allocations: 29.55 kB / 0.8491 GB, free: 78.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003736/2.361, allocations: 4.6 MB / 0.8536 GB, free: 75.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002529/2.364, allocations: 1.44 MB / 0.855 GB, free: 74.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001504/2.365, allocations: 0 / 0.855 GB, free: 74.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009286/2.366, allocations: 0.7141 MB / 0.8557 GB, free: 74.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0105/2.377, allocations: 4.081 MB / 0.8597 GB, free: 74.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/2.392, allocations: 9.205 MB / 0.8686 GB, free: 67.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01439/2.406, allocations: 6.104 MB / 0.8746 GB, free: 67.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002077/2.406, allocations: 53.94 kB / 0.8747 GB, free: 67.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.06029/2.467, allocations: 15.66 MB / 0.89 GB, free: 67.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/2.467, allocations: 9.125 kB / 0.89 GB, free: 67.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004946/2.467, allocations: 178.9 kB / 0.8901 GB, free: 67.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02788/2.495, allocations: 4.099 MB / 0.8941 GB, free: 66.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0137/2.509, allocations: 1.995 MB / 0.8961 GB, free: 66.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06502/2.574, allocations: 22.95 MB / 0.9185 GB, free: 55.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01002/2.584, allocations: 302.2 kB / 0.9188 GB, free: 54.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002635/2.587, allocations: 0.5234 MB / 0.9193 GB, free: 54.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 817 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1088): * Single equations (assignments): 1083 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 126} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004348/2.591, allocations: 0.4917 MB / 0.9198 GB, free: 53.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002478/2.594, allocations: 0.6876 MB / 0.9204 GB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04598/2.64, allocations: 10.49 MB / 0.9307 GB, free: 44.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001477/2.64, allocations: 39.91 kB / 0.9307 GB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.313e-05/2.64, allocations: 24 kB / 0.9307 GB, free: 44.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-05/2.64, allocations: 15.66 kB / 0.9308 GB, free: 44.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2564/2.896, allocations: 21.91 MB / 0.9522 GB, free: 69.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.326e-05/2.897, allocations: 10.88 kB / 0.9522 GB, free: 69.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005343/2.902, allocations: 0.4975 MB / 0.9527 GB, free: 69.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02796/2.93, allocations: 3.982 MB / 0.9565 GB, free: 69.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/2.931, allocations: 22.44 kB / 0.9566 GB, free: 69.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05588/2.987, allocations: 19.4 MB / 0.9755 GB, free: 68.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/2.987, allocations: 12.06 kB / 0.9755 GB, free: 68.7 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05516/3.042, allocations: 17.39 MB / 0.9925 GB, free: 66.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005539/3.048, allocations: 1.336 MB / 0.9938 GB, free: 66.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003093/3.051, allocations: 17.44 kB / 0.9938 GB, free: 66.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007607/3.059, allocations: 130.3 kB / 0.994 GB, free: 66.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00136/3.06, allocations: 210.3 kB / 0.9942 GB, free: 66.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007356/3.061, allocations: 111.7 kB / 0.9943 GB, free: 66.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01237/3.073, allocations: 4.234 MB / 0.9984 GB, free: 65.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01471/3.088, allocations: 1.87 MB / 1 GB, free: 65.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (285): * Single equations (assignments): 281 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001616/3.09, allocations: 207.9 kB / 1 GB, free: 65.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02548/3.115, allocations: 9.999 MB / 1.01 GB, free: 65.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/3.115, allocations: 0 / 1.01 GB, free: 65.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01116/3.126, allocations: 4.116 MB / 1.014 GB, free: 63.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009174/3.136, allocations: 0.88 MB / 1.015 GB, free: 63.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08134/3.217, allocations: 19.16 MB / 1.034 GB, free: 56.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02179/3.239, allocations: 7.043 MB / 1.041 GB, free: 54.32 MB / 410.7 MB Notification: Performance of SimCode: time 2.384e-06/3.239, allocations: 0 / 1.041 GB, free: 54.32 MB / 410.7 MB Notification: Performance of Templates: time 0.4928/3.732, allocations: 159.8 MB / 1.197 GB, free: 23.79 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_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_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches