Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 202.6 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009398/0.0009396, allocations: 103.3 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002275/0.0002276, allocations: 11.98 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2052, allocations: 51.47 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3124, allocations: 98.79 MB / 0.4963 GB, free: 7.773 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.3126, allocations: 92.98 kB / 0.4964 GB, free: 7.684 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5518/0.8644, allocations: 171.4 MB / 0.6638 GB, free: 8.098 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.8645, allocations: 0 / 0.6638 GB, free: 8.098 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005823/0.8651, allocations: 156 kB / 0.6639 GB, free: 7.945 MB / 442.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.3983/1.263, allocations: 8.942 MB / 0.6726 GB, free: 58.22 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/1.263, allocations: 12.88 kB / 0.6727 GB, free: 58.22 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05584/1.319, allocations: 16.46 MB / 0.6887 GB, free: 57.69 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02573/1.345, allocations: 11.47 MB / 0.6999 GB, free: 57.07 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004733/1.346, allocations: 0.5178 MB / 0.7004 GB, free: 57.05 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002968/1.349, allocations: 0.7251 MB / 0.7011 GB, free: 57.04 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02803/1.377, allocations: 16.4 MB / 0.7172 GB, free: 53.45 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003509/1.377, allocations: 116 kB / 0.7173 GB, free: 53.43 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/1.378, allocations: 329.5 kB / 0.7176 GB, free: 53.43 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001566/1.38, allocations: 1.487 MB / 0.719 GB, free: 53.41 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02351/1.403, allocations: 12.92 MB / 0.7317 GB, free: 53.35 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06809/1.471, allocations: 73.34 MB / 0.8033 GB, free: 13.3 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01753/1.489, allocations: 7.503 MB / 0.8106 GB, free: 7.145 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02021/1.509, allocations: 11.52 MB / 0.8219 GB, free: 13.37 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.861e-05/1.509, allocations: 64.56 kB / 0.8219 GB, free: 13.3 MB / 474.8 MB Notification: Performance of pre-optimization done (n=280): time 5.019e-06/1.509, allocations: 0 / 0.8219 GB, free: 13.3 MB / 474.8 MB Notification: Performance of matching and sorting (n=339): time 0.3479/1.857, allocations: 45.15 MB / 0.866 GB, free: 97.47 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/1.857, allocations: 400.6 kB / 0.8664 GB, free: 97.03 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01175/1.869, allocations: 6.179 MB / 0.8724 GB, free: 96.55 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006055/1.87, allocations: 80.08 kB / 0.8725 GB, free: 96.52 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003258/1.873, allocations: 5.23 MB / 0.8776 GB, free: 94.61 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001239/1.874, allocations: 1.245 MB / 0.8788 GB, free: 93.88 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000473/1.875, allocations: 166.7 kB / 0.879 GB, free: 93.88 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003636/1.875, allocations: 0.6548 MB / 0.8796 GB, free: 93.56 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004508/1.88, allocations: 3.797 MB / 0.8833 GB, free: 93.54 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006067/1.886, allocations: 8.469 MB / 0.8916 GB, free: 87.56 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006171/1.892, allocations: 5.509 MB / 0.897 GB, free: 87.5 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.351e-05/1.892, allocations: 49.8 kB / 0.897 GB, free: 87.49 MB / 490.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04453/1.937, allocations: 16.72 MB / 0.9134 GB, free: 86.67 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003227/1.937, allocations: 74.66 kB / 0.9134 GB, free: 86.67 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003511/1.937, allocations: 163.5 kB / 0.9136 GB, free: 86.67 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02247/1.96, allocations: 5.491 MB / 0.9189 GB, free: 85.75 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008133/1.968, allocations: 1.801 MB / 0.9207 GB, free: 85.53 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03594/2.004, allocations: 29 MB / 0.949 GB, free: 71.96 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006945/2.011, allocations: 0.5213 MB / 0.9495 GB, free: 71.82 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/2.012, allocations: 473.9 kB / 0.95 GB, free: 71.75 MB / 490.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 () * 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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005277/2.017, allocations: 3.476 MB / 0.9534 GB, free: 70.21 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/2.019, allocations: 0.6512 MB / 0.954 GB, free: 69.85 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01948/2.038, allocations: 10.95 MB / 0.9647 GB, free: 63.91 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.919e-05/2.038, allocations: 36 kB / 0.9647 GB, free: 63.87 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.377e-05/2.038, allocations: 20 kB / 0.9648 GB, free: 63.85 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.623e-05/2.038, allocations: 17.88 kB / 0.9648 GB, free: 63.85 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03909/2.077, allocations: 23.97 MB / 0.9882 GB, free: 44.14 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/2.077, allocations: 7.562 kB / 0.9882 GB, free: 44.14 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/2.079, allocations: 446.1 kB / 0.9886 GB, free: 43.79 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01334/2.093, allocations: 5.093 MB / 0.9936 GB, free: 40.42 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000379/2.093, allocations: 64.34 kB / 0.9937 GB, free: 40.36 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02939/2.122, allocations: 27.72 MB / 1.021 GB, free: 16.08 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/2.122, allocations: 8 kB / 1.021 GB, free: 16.07 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2387/2.361, allocations: 16.86 MB / 1.037 GB, free: 87.66 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00242/2.364, allocations: 0.6708 MB / 1.038 GB, free: 87.57 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/2.366, allocations: 61.69 kB / 1.038 GB, free: 87.57 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004315/2.37, allocations: 249.2 kB / 1.038 GB, free: 87.57 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009861/2.371, allocations: 250.7 kB / 1.038 GB, free: 87.56 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000455/2.372, allocations: 90.59 kB / 1.038 GB, free: 87.56 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01034/2.382, allocations: 4.466 MB / 1.043 GB, free: 87.34 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.61e-07/2.382, allocations: 0 / 1.043 GB, free: 87.34 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01091/2.393, allocations: 1.971 MB / 1.045 GB, free: 87.34 MB / 490.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 () * 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.001091/2.394, allocations: 224.1 kB / 1.045 GB, free: 87.26 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01596/2.41, allocations: 10.12 MB / 1.055 GB, free: 86.73 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/2.41, allocations: 6.688 kB / 1.055 GB, free: 86.73 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007232/2.417, allocations: 4.499 MB / 1.059 GB, free: 86.28 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006358/2.424, allocations: 0.9844 MB / 1.06 GB, free: 86.24 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03925/2.463, allocations: 21.48 MB / 1.081 GB, free: 78.65 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01181/2.475, allocations: 5.692 MB / 1.087 GB, free: 77.75 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.008224/2.483, allocations: 2.632 MB / 1.089 GB, free: 77.69 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001718/2.485, allocations: 392.7 kB / 1.09 GB, free: 77.68 MB / 490.8 MB Notification: Performance of SimCode: time 1.283e-06/2.485, allocations: 0 / 1.09 GB, free: 77.68 MB / 490.8 MB Notification: Performance of Templates: time 0.1267/2.611, allocations: 83.83 MB / 1.172 GB, free: 27.95 MB / 490.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches