Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 83.88 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.561e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09376/0.0938, allocations: 50.41 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3461/0.4399, allocations: 99.67 MB / 493.9 MB, free: 3.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.4402, allocations: 87.78 kB / 494 MB, free: 3.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6421/1.082, allocations: 168.1 MB / 0.6466 GB, free: 57.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.082, allocations: 0 / 0.6466 GB, free: 57.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007263/1.083, allocations: 164 kB / 0.6468 GB, free: 57.26 MB / 426.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.02735/1.111, allocations: 8.168 MB / 0.6547 GB, free: 49.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/1.111, allocations: 8.031 kB / 0.6548 GB, free: 49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06043/1.171, allocations: 16.55 MB / 0.6709 GB, free: 32.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03314/1.204, allocations: 12.82 MB / 0.6834 GB, free: 19.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005961/1.205, allocations: 0.5536 MB / 0.684 GB, free: 18.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003823/1.209, allocations: 0.7573 MB / 0.6847 GB, free: 18.19 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04513/1.254, allocations: 16.83 MB / 0.7012 GB, free: 40 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001021/1.255, allocations: 107.2 kB / 0.7013 GB, free: 15.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004144/1.259, allocations: 351.8 kB / 0.7016 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002996/1.262, allocations: 1.535 MB / 0.7031 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03419/1.296, allocations: 13.14 MB / 0.7159 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4498/1.746, allocations: 75.16 MB / 0.7893 GB, free: 29.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02049/1.767, allocations: 7.805 MB / 0.7969 GB, free: 27.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006338/1.773, allocations: 4.087 MB / 0.8009 GB, free: 25.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02373/1.797, allocations: 11.88 MB / 0.8125 GB, free: 19.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/1.797, allocations: 67.69 kB / 0.8126 GB, free: 19.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 7.433e-06/1.797, allocations: 0 / 0.8126 GB, free: 19.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.1324/1.93, allocations: 40.44 MB / 0.8521 GB, free: 3.922 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/1.93, allocations: 404.5 kB / 0.8525 GB, free: 3.445 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/1.942, allocations: 6.37 MB / 0.8587 GB, free: 14.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000909/1.943, allocations: 81.7 kB / 0.8588 GB, free: 14.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004533/1.948, allocations: 5.401 MB / 0.864 GB, free: 9.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002058/1.95, allocations: 1.321 MB / 0.8653 GB, free: 8.164 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00062/1.951, allocations: 168 kB / 0.8655 GB, free: 8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004884/1.951, allocations: 0.6694 MB / 0.8661 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005896/1.957, allocations: 3.9 MB / 0.8699 GB, free: 3.887 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009335/1.966, allocations: 8.67 MB / 0.8784 GB, free: 9.434 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009538/1.976, allocations: 5.702 MB / 0.884 GB, free: 4.637 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.976, allocations: 48 kB / 0.884 GB, free: 4.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.3559/2.332, allocations: 17.27 MB / 0.9009 GB, free: 96.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/2.332, allocations: 77.92 kB / 0.901 GB, free: 96.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004542/2.333, allocations: 165.6 kB / 0.9011 GB, free: 96.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02083/2.354, allocations: 5.741 MB / 0.9067 GB, free: 96.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008034/2.362, allocations: 1.85 MB / 0.9085 GB, free: 96.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03967/2.401, allocations: 29.16 MB / 0.937 GB, free: 91.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008794/2.41, allocations: 0.5363 MB / 0.9375 GB, free: 91.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002125/2.412, allocations: 495.4 kB / 0.938 GB, free: 91.19 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002029/2.414, allocations: 0.7634 MB / 0.9388 GB, free: 90.85 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001676/2.416, allocations: 0.67 MB / 0.9394 GB, free: 90.85 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02476/2.441, allocations: 11.51 MB / 0.9506 GB, free: 87.19 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.581e-05/2.441, allocations: 42 kB / 0.9507 GB, free: 87.19 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.239e-05/2.441, allocations: 17.22 kB / 0.9507 GB, free: 87.19 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-05/2.441, allocations: 15.7 kB / 0.9507 GB, free: 87.19 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05229/2.493, allocations: 25.07 MB / 0.9752 GB, free: 77.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.915e-05/2.494, allocations: 7.125 kB / 0.9752 GB, free: 77.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/2.496, allocations: 457.4 kB / 0.9756 GB, free: 77.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01681/2.513, allocations: 5.389 MB / 0.9809 GB, free: 75.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/2.514, allocations: 71.45 kB / 0.981 GB, free: 75.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03421/2.548, allocations: 28.03 MB / 1.008 GB, free: 50.99 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/2.548, allocations: 11.56 kB / 1.008 GB, free: 50.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02969/2.578, allocations: 17.64 MB / 1.026 GB, free: 33.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004676/2.583, allocations: 1.308 MB / 1.027 GB, free: 32.42 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001863/2.585, allocations: 64 kB / 1.027 GB, free: 32.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00416/2.589, allocations: 271.3 kB / 1.027 GB, free: 32.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000855/2.59, allocations: 260.6 kB / 1.027 GB, free: 31.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002804/2.59, allocations: 88 kB / 1.028 GB, free: 31.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008275/2.598, allocations: 4.494 MB / 1.032 GB, free: 27.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.31e-07/2.598, allocations: 0 / 1.032 GB, free: 27.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01044/2.609, allocations: 2.054 MB / 1.034 GB, free: 25.26 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008326/2.61, allocations: 221.4 kB / 1.034 GB, free: 25.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01585/2.625, allocations: 10.42 MB / 1.044 GB, free: 14.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/2.626, allocations: 0 / 1.044 GB, free: 14.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007397/2.633, allocations: 4.691 MB / 1.049 GB, free: 9.918 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005564/2.639, allocations: 1.005 MB / 1.05 GB, free: 8.965 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3237/2.962, allocations: 16.34 MB / 1.066 GB, free: 104.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01243/2.975, allocations: 5.9 MB / 1.072 GB, free: 103.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0113/2.986, allocations: 2.735 MB / 1.074 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/2.988, allocations: 407.1 kB / 1.075 GB, free: 103.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.372e-06/2.988, allocations: 0 / 1.075 GB, free: 103.3 MB / 490.7 MB Notification: Performance of Templates: time 0.1478/3.136, allocations: 88.11 MB / 1.161 GB, free: 73.95 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches