Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00182/0.00182, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009207/0.0009207, allocations: 86.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.397e-05/2.399e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4107/0.5173, allocations: 95.79 MB / 458.9 MB, free: 120 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000338/0.5177, allocations: 82.64 kB / 459 MB, free: 80 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6616/1.179, allocations: 158.3 MB / 0.6028 GB, free: 79.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.179, allocations: 0 / 0.6028 GB, free: 79.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008118/1.18, allocations: 158.4 kB / 0.6029 GB, free: 79.89 MB / 410.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.03013/1.21, allocations: 7.885 MB / 0.6106 GB, free: 73.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.21, allocations: 8.031 kB / 0.6106 GB, free: 73.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06255/1.273, allocations: 16.5 MB / 0.6267 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/1.307, allocations: 13.48 MB / 0.6399 GB, free: 43.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004975/1.307, allocations: 228 kB / 0.6401 GB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004239/1.312, allocations: 451.6 kB / 0.6405 GB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01897/1.331, allocations: 9.473 MB / 0.6498 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03755/1.368, allocations: 14.27 MB / 0.6637 GB, free: 17.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006483/1.369, allocations: 115 kB / 0.6638 GB, free: 17.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003149/1.372, allocations: 43.98 kB / 0.6639 GB, free: 17.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00221/1.374, allocations: 1.484 MB / 0.6653 GB, free: 15.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4277/1.802, allocations: 71.33 MB / 0.735 GB, free: 49.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007686/1.81, allocations: 5.316 MB / 0.7402 GB, free: 48.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004949/1.815, allocations: 3.864 MB / 0.7439 GB, free: 48.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009669/1.816, allocations: 0.8342 MB / 0.7448 GB, free: 47.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/1.816, allocations: 63.5 kB / 0.7448 GB, free: 47.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.522e-06/1.816, allocations: 0 / 0.7448 GB, free: 47.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=347): time 0.104/1.92, allocations: 40.36 MB / 0.7842 GB, free: 38.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/1.92, allocations: 403.5 kB / 0.7846 GB, free: 38.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01005/1.93, allocations: 5.475 MB / 0.79 GB, free: 36.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/1.931, allocations: 29.52 kB / 0.79 GB, free: 36.47 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004159/1.935, allocations: 5.263 MB / 0.7951 GB, free: 32.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001933/1.937, allocations: 1.231 MB / 0.7963 GB, free: 31.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007443/1.938, allocations: 0 / 0.7963 GB, free: 31.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004169/1.938, allocations: 0.6651 MB / 0.797 GB, free: 31.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004422/1.943, allocations: 3.631 MB / 0.8005 GB, free: 28.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006968/1.95, allocations: 8.399 MB / 0.8087 GB, free: 18.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006978/1.957, allocations: 5.398 MB / 0.814 GB, free: 13.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/1.957, allocations: 48 kB / 0.8141 GB, free: 13.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03312/1.99, allocations: 15.63 MB / 0.8293 GB, free: 1.199 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/1.99, allocations: 76.84 kB / 0.8294 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002648/1.991, allocations: 175.2 kB / 0.8296 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01995/2.01, allocations: 5.593 MB / 0.835 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007144/2.018, allocations: 1.857 MB / 0.8368 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0426/2.06, allocations: 26.08 MB / 0.8623 GB, free: 5.961 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00922/2.07, allocations: 366.5 kB / 0.8627 GB, free: 5.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001618/2.071, allocations: 0.4937 MB / 0.8631 GB, free: 5.207 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (979): * Single equations (assignments): 973 * 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.001601/2.073, allocations: 0.5419 MB / 0.8637 GB, free: 4.668 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/2.074, allocations: 0.6209 MB / 0.8643 GB, free: 4.039 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2722/2.347, allocations: 10.59 MB / 0.8746 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-05/2.347, allocations: 40.39 kB / 0.8747 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.142e-05/2.347, allocations: 18.75 kB / 0.8747 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-05/2.347, allocations: 16.7 kB / 0.8747 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04611/2.393, allocations: 22.82 MB / 0.897 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.899e-05/2.393, allocations: 5.156 kB / 0.897 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/2.395, allocations: 443.1 kB / 0.8974 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01496/2.41, allocations: 5.014 MB / 0.9023 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007666/2.411, allocations: 19.36 kB / 0.9023 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02929/2.44, allocations: 24.69 MB / 0.9264 GB, free: 95.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/2.44, allocations: 12.75 kB / 0.9264 GB, free: 95.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02885/2.469, allocations: 16.52 MB / 0.9426 GB, free: 88.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/2.473, allocations: 1.23 MB / 0.9438 GB, free: 88.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002104/2.475, allocations: 9.75 kB / 0.9438 GB, free: 88.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004532/2.48, allocations: 215.1 kB / 0.944 GB, free: 88.24 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00122/2.481, allocations: 241.7 kB / 0.9442 GB, free: 88.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005402/2.482, allocations: 86.25 kB / 0.9443 GB, free: 88.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009705/2.491, allocations: 3.826 MB / 0.948 GB, free: 86.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.71e-07/2.491, allocations: 0.8438 kB / 0.948 GB, free: 86.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01294/2.504, allocations: 1.745 MB / 0.9497 GB, free: 86.82 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 216 * 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.001433/2.506, allocations: 161.8 kB / 0.9499 GB, free: 86.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01696/2.523, allocations: 9.625 MB / 0.9593 GB, free: 78.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.608e-05/2.523, allocations: 4 kB / 0.9593 GB, free: 78.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008969/2.532, allocations: 4.343 MB / 0.9635 GB, free: 74.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007061/2.539, allocations: 0.8406 MB / 0.9644 GB, free: 73.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03905/2.578, allocations: 15.62 MB / 0.9796 GB, free: 60.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01352/2.592, allocations: 5.72 MB / 0.9852 GB, free: 55.95 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008951/2.601, allocations: 2.701 MB / 0.9878 GB, free: 53.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/2.602, allocations: 379.4 kB / 0.9882 GB, free: 53.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.293e-06/2.602, allocations: 4 kB / 0.9882 GB, free: 53.45 MB / 458.7 MB Notification: Performance of Templates: time 0.3982/3.001, allocations: 76.44 MB / 1.063 GB, free: 89.38 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches