Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002122/0.002122, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.943/1.943, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001106/0.001106, allocations: 96.36 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005178/0.0005177, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3394, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1597/0.4992, allocations: 96.31 MB / 470.8 MB, free: 440 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003358/0.4996, allocations: 91.95 kB / 470.9 MB, free: 348 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8696/1.369, allocations: 161.3 MB / 0.6174 GB, free: 12.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.369, allocations: 4 kB / 0.6174 GB, free: 12.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007483/1.37, allocations: 160 kB / 0.6175 GB, free: 11.98 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03855/1.409, allocations: 8.973 MB / 0.6263 GB, free: 2.914 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/1.409, allocations: 12.03 kB / 0.6263 GB, free: 2.902 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1224/1.531, allocations: 16.47 MB / 0.6424 GB, free: 2.398 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3507/1.882, allocations: 13.56 MB / 0.6556 GB, free: 53.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006743/1.883, allocations: 0.5232 MB / 0.6561 GB, free: 53.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004037/1.887, allocations: 0.7228 MB / 0.6569 GB, free: 53.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0532/1.94, allocations: 16.4 MB / 0.6729 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008236/1.941, allocations: 110.7 kB / 0.673 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003341/1.944, allocations: 337.3 kB / 0.6733 GB, free: 50.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003938/1.948, allocations: 1.486 MB / 0.6747 GB, free: 50.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04223/1.99, allocations: 12.92 MB / 0.6874 GB, free: 50.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1169/2.107, allocations: 73.47 MB / 0.7591 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03411/2.141, allocations: 7.497 MB / 0.7664 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03147/2.173, allocations: 11.59 MB / 0.7777 GB, free: 2.676 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.035e-05/2.173, allocations: 63.81 kB / 0.7778 GB, free: 2.609 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.033e-06/2.173, allocations: 1.75 kB / 0.7778 GB, free: 2.609 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.6226/2.796, allocations: 46.39 MB / 0.8231 GB, free: 97.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/2.796, allocations: 399.8 kB / 0.8235 GB, free: 97.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01489/2.811, allocations: 6.259 MB / 0.8296 GB, free: 96.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009069/2.812, allocations: 81.98 kB / 0.8297 GB, free: 96.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004546/2.816, allocations: 4.87 MB / 0.8344 GB, free: 95.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001988/2.818, allocations: 1.248 MB / 0.8357 GB, free: 95.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/2.82, allocations: 167.2 kB / 0.8358 GB, free: 95.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000526/2.82, allocations: 0.6597 MB / 0.8365 GB, free: 94.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009214/2.829, allocations: 3.798 MB / 0.8402 GB, free: 94.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01288/2.842, allocations: 8.471 MB / 0.8484 GB, free: 88.78 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01338/2.856, allocations: 5.517 MB / 0.8538 GB, free: 88.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002055/2.856, allocations: 46.47 kB / 0.8539 GB, free: 88.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.0575/2.914, allocations: 16.38 MB / 0.8699 GB, free: 87.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/2.914, allocations: 78.89 kB / 0.8699 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000268/2.914, allocations: 161 kB / 0.8701 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02965/2.944, allocations: 5.508 MB / 0.8755 GB, free: 87.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01114/2.955, allocations: 1.799 MB / 0.8772 GB, free: 86.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0658/3.021, allocations: 28.97 MB / 0.9055 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/3.032, allocations: 0.5151 MB / 0.906 GB, free: 73.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/3.034, allocations: 480.5 kB / 0.9065 GB, free: 73.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (947): * Single equations (assignments): 941 * 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,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.009751/3.044, allocations: 3.484 MB / 0.9099 GB, free: 71.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/3.046, allocations: 0.662 MB / 0.9105 GB, free: 71.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04246/3.088, allocations: 10.96 MB / 0.9212 GB, free: 64.92 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-05/3.088, allocations: 36 kB / 0.9213 GB, free: 64.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.842e-05/3.088, allocations: 19.19 kB / 0.9213 GB, free: 64.87 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-05/3.088, allocations: 16.89 kB / 0.9213 GB, free: 64.87 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07322/3.162, allocations: 24.01 MB / 0.9448 GB, free: 45.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.107e-05/3.162, allocations: 4 kB / 0.9448 GB, free: 45.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003832/3.166, allocations: 431.4 kB / 0.9452 GB, free: 44.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02853/3.194, allocations: 5.097 MB / 0.9502 GB, free: 41.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008011/3.195, allocations: 56 kB / 0.9502 GB, free: 41.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05905/3.254, allocations: 27.72 MB / 0.9773 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/3.254, allocations: 11.94 kB / 0.9773 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3789/3.633, allocations: 16.89 MB / 0.9938 GB, free: 86.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004872/3.638, allocations: 1.268 MB / 0.995 GB, free: 86.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002316/3.64, allocations: 61.03 kB / 0.9951 GB, free: 86.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006796/3.647, allocations: 265.3 kB / 0.9953 GB, free: 86.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001584/3.649, allocations: 235.4 kB / 0.9956 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000549/3.649, allocations: 91.08 kB / 0.9956 GB, free: 86.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01233/3.662, allocations: 4.534 MB / 1 GB, free: 86.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/3.662, allocations: 2.688 kB / 1 GB, free: 86.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0128/3.675, allocations: 1.97 MB / 1.002 GB, free: 86.36 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001305/3.676, allocations: 218.8 kB / 1.002 GB, free: 86.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0277/3.704, allocations: 10.14 MB / 1.012 GB, free: 85.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/3.704, allocations: 0 / 1.012 GB, free: 85.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01321/3.717, allocations: 4.506 MB / 1.017 GB, free: 85.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008471/3.725, allocations: 0.9725 MB / 1.017 GB, free: 85.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05606/3.782, allocations: 22.5 MB / 1.039 GB, free: 77.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01413/3.796, allocations: 5.72 MB / 1.045 GB, free: 76.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/3.798, allocations: 448.7 kB / 1.045 GB, free: 76.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.252e-06/3.798, allocations: 0 / 1.045 GB, free: 76.7 MB / 458.7 MB Notification: Performance of Templates: time 0.6833/4.482, allocations: 196.1 MB / 1.237 GB, free: 73.68 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches