Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001047, allocations: 175.5 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.36/1.36, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.000867/0.0008671, allocations: 87.3 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.368e-05/2.371e-05, allocations: 0 / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.4347, allocations: 98.06 MB / 492.3 MB, free: 5.461 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.435, allocations: 87.78 kB / 492.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6757/1.111, allocations: 163.3 MB / 0.6403 GB, free: 63.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.723e-06/1.111, allocations: 0 / 0.6403 GB, free: 63.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004705/1.111, allocations: 160 kB / 0.6404 GB, free: 63.64 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02229/1.134, allocations: 7.85 MB / 0.6481 GB, free: 55.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/1.134, allocations: 12.03 kB / 0.6481 GB, free: 55.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05865/1.192, allocations: 16.49 MB / 0.6642 GB, free: 39.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03429/1.227, allocations: 12.54 MB / 0.6765 GB, free: 26.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008738/1.228, allocations: 0.5216 MB / 0.677 GB, free: 26.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005414/1.233, allocations: 0.726 MB / 0.6777 GB, free: 25.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0515/1.284, allocations: 16.27 MB / 0.6936 GB, free: 7.691 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006833/1.285, allocations: 111 kB / 0.6937 GB, free: 7.582 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003311/1.289, allocations: 335.9 kB / 0.694 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002256/1.291, allocations: 1.492 MB / 0.6955 GB, free: 5.758 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02898/1.32, allocations: 12.73 MB / 0.7079 GB, free: 9.016 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6461/1.966, allocations: 73.26 MB / 0.7794 GB, free: 31.51 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/1.984, allocations: 7.45 MB / 0.7867 GB, free: 30.8 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004575/1.989, allocations: 3.956 MB / 0.7906 GB, free: 30.77 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01698/2.006, allocations: 11.5 MB / 0.8018 GB, free: 25.84 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/2.006, allocations: 68.95 kB / 0.8019 GB, free: 25.78 MB / 442.8 MB Notification: Performance of pre-optimization done (n=280): time 6.301e-06/2.006, allocations: 3.422 kB / 0.8019 GB, free: 25.78 MB / 442.8 MB Notification: Performance of matching and sorting (n=339): time 0.1218/2.128, allocations: 37.54 MB / 0.8385 GB, free: 14.65 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/2.128, allocations: 394.1 kB / 0.8389 GB, free: 14.18 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/2.138, allocations: 6.121 MB / 0.8449 GB, free: 8.879 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008171/2.139, allocations: 77.7 kB / 0.845 GB, free: 8.797 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003134/2.142, allocations: 5.228 MB / 0.8501 GB, free: 4.141 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/2.144, allocations: 1.254 MB / 0.8513 GB, free: 3.031 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004734/2.144, allocations: 164 kB / 0.8514 GB, free: 2.871 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0003217/2.144, allocations: 0.655 MB / 0.8521 GB, free: 2.309 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01027/2.155, allocations: 4.16 MB / 0.8561 GB, free: 0 / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009961/2.165, allocations: 8.404 MB / 0.8644 GB, free: 5.855 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008669/2.173, allocations: 5.479 MB / 0.8697 GB, free: 1.242 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/2.174, allocations: 44 kB / 0.8697 GB, free: 1.199 MB / 458.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04025/2.214, allocations: 16.92 MB / 0.8863 GB, free: 3.59 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/2.214, allocations: 77.56 kB / 0.8863 GB, free: 3.516 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/2.214, allocations: 160 kB / 0.8865 GB, free: 3.359 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2958/2.51, allocations: 5.482 MB / 0.8919 GB, free: 100.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006442/2.516, allocations: 1.799 MB / 0.8936 GB, free: 100.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03984/2.556, allocations: 28.03 MB / 0.921 GB, free: 96.27 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007649/2.564, allocations: 0.5184 MB / 0.9215 GB, free: 96.27 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/2.565, allocations: 477.7 kB / 0.9219 GB, free: 96.27 MB / 474.8 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 (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 (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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001305/2.567, allocations: 0.7499 MB / 0.9227 GB, free: 96.16 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/2.568, allocations: 0.6535 MB / 0.9233 GB, free: 96.16 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0211/2.589, allocations: 10.88 MB / 0.9339 GB, free: 93.7 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.033e-05/2.589, allocations: 35.53 kB / 0.934 GB, free: 93.7 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.928e-05/2.589, allocations: 19.53 kB / 0.934 GB, free: 93.7 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.125e-05/2.589, allocations: 20.69 kB / 0.934 GB, free: 93.7 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04102/2.63, allocations: 23.88 MB / 0.9573 GB, free: 84.07 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-05/2.63, allocations: 11.19 kB / 0.9574 GB, free: 84.07 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/2.632, allocations: 445.4 kB / 0.9578 GB, free: 84.05 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01444/2.647, allocations: 5.077 MB / 0.9627 GB, free: 83.16 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005984/2.647, allocations: 62.75 kB / 0.9628 GB, free: 83.12 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03081/2.678, allocations: 26.74 MB / 0.9889 GB, free: 66.93 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/2.678, allocations: 11.28 kB / 0.9889 GB, free: 66.92 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02578/2.704, allocations: 16.76 MB / 1.005 GB, free: 52.9 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/2.707, allocations: 0.6666 MB / 1.006 GB, free: 52.24 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/2.708, allocations: 67.69 kB / 1.006 GB, free: 52.18 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002934/2.711, allocations: 250.8 kB / 1.006 GB, free: 52.03 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007496/2.711, allocations: 238.6 kB / 1.006 GB, free: 51.88 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/2.712, allocations: 92.58 kB / 1.007 GB, free: 51.8 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006991/2.719, allocations: 4.406 MB / 1.011 GB, free: 47.95 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.282e-06/2.719, allocations: 4 kB / 1.011 GB, free: 47.94 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01088/2.73, allocations: 1.958 MB / 1.013 GB, free: 45.99 MB / 474.8 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 () * 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.000806/2.73, allocations: 217.3 kB / 1.013 GB, free: 45.82 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01437/2.745, allocations: 9.992 MB / 1.023 GB, free: 36.98 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/2.745, allocations: 0 / 1.023 GB, free: 36.98 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006504/2.751, allocations: 4.44 MB / 1.027 GB, free: 32.51 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005385/2.757, allocations: 0.9821 MB / 1.028 GB, free: 31.57 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/2.786, allocations: 15.65 MB / 1.043 GB, free: 15.87 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008055/2.794, allocations: 5.691 MB / 1.049 GB, free: 10.2 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.007294/2.801, allocations: 2.639 MB / 1.051 GB, free: 7.742 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/2.803, allocations: 395.4 kB / 1.052 GB, free: 7.355 MB / 474.8 MB Notification: Performance of SimCode: time 1.533e-06/2.803, allocations: 0 / 1.052 GB, free: 7.355 MB / 474.8 MB Notification: Performance of Templates: time 0.4197/3.223, allocations: 83.81 MB / 1.134 GB, free: 96.52 MB / 490.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches