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.001529/0.001529, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.59/1.59, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000879/0.0008792, allocations: 78.67 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.715e-05/2.717e-05, allocations: 0 / 322.4 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.0998, allocations: 47.58 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3573/0.4571, allocations: 96.21 MB / 466.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.4574, allocations: 85.58 kB / 466.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6376/1.095, allocations: 161.4 MB / 0.613 GB, free: 69.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.095, allocations: 0 / 0.613 GB, free: 69.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000569/1.096, allocations: 160 kB / 0.6131 GB, free: 69.82 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.02394/1.12, allocations: 7.885 MB / 0.6208 GB, free: 61.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/1.12, allocations: 8.031 kB / 0.6209 GB, free: 61.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05769/1.177, allocations: 16.49 MB / 0.637 GB, free: 45.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03082/1.208, allocations: 13.5 MB / 0.6501 GB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004656/1.209, allocations: 0.5216 MB / 0.6507 GB, free: 31.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003453/1.212, allocations: 0.7221 MB / 0.6514 GB, free: 30.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03564/1.248, allocations: 16.27 MB / 0.6672 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004697/1.248, allocations: 115 kB / 0.6674 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001449/1.25, allocations: 331.9 kB / 0.6677 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001762/1.252, allocations: 1.484 MB / 0.6691 GB, free: 10.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02642/1.278, allocations: 12.73 MB / 0.6816 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5986/1.877, allocations: 73.41 MB / 0.7532 GB, free: 31.37 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0192/1.896, allocations: 7.456 MB / 0.7605 GB, free: 30.65 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004501/1.9, allocations: 3.971 MB / 0.7644 GB, free: 30.61 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01677/1.917, allocations: 11.58 MB / 0.7757 GB, free: 26.5 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/1.917, allocations: 73.98 kB / 0.7758 GB, free: 26.44 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 5.16e-06/1.917, allocations: 0 / 0.7758 GB, free: 26.44 MB / 426.8 MB Notification: Performance of matching and sorting (n=339): time 0.1178/2.035, allocations: 37.94 MB / 0.8128 GB, free: 16.02 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/2.035, allocations: 403.1 kB / 0.8132 GB, free: 15.54 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/2.046, allocations: 6.193 MB / 0.8193 GB, free: 10.18 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009196/2.047, allocations: 81.7 kB / 0.8193 GB, free: 10.1 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002922/2.05, allocations: 5.227 MB / 0.8244 GB, free: 5.402 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/2.052, allocations: 1.242 MB / 0.8257 GB, free: 4.301 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004134/2.052, allocations: 168 kB / 0.8258 GB, free: 4.137 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003199/2.052, allocations: 0.654 MB / 0.8265 GB, free: 3.578 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004655/2.057, allocations: 3.734 MB / 0.8301 GB, free: 200 kB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.025/2.082, allocations: 9.661 MB / 0.8395 GB, free: 9.219 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008738/2.091, allocations: 5.496 MB / 0.8449 GB, free: 4.594 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.812e-05/2.091, allocations: 51.94 kB / 0.845 GB, free: 4.543 MB / 442.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03553/2.127, allocations: 16.58 MB / 0.8611 GB, free: 4.691 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001/2.127, allocations: 83.94 kB / 0.8612 GB, free: 4.609 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/2.127, allocations: 164 kB / 0.8614 GB, free: 4.449 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3118/2.439, allocations: 5.49 MB / 0.8667 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.449, allocations: 1.795 MB / 0.8685 GB, free: 100.5 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04354/2.493, allocations: 28 MB / 0.8958 GB, free: 96.43 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009247/2.502, allocations: 0.5213 MB / 0.8964 GB, free: 96.43 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/2.504, allocations: 482.4 kB / 0.8968 GB, free: 96.43 MB / 458.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 (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 (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.001591/2.506, allocations: 0.7351 MB / 0.8975 GB, free: 96.31 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.507, allocations: 0.6596 MB / 0.8982 GB, free: 96.31 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02235/2.53, allocations: 10.9 MB / 0.9088 GB, free: 93.2 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.718e-05/2.53, allocations: 36.34 kB / 0.9089 GB, free: 93.2 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.508e-05/2.53, allocations: 18.12 kB / 0.9089 GB, free: 93.2 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.129e-05/2.53, allocations: 21.64 kB / 0.9089 GB, free: 93.2 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04739/2.577, allocations: 23.94 MB / 0.9323 GB, free: 83.53 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-05/2.577, allocations: 7.562 kB / 0.9323 GB, free: 83.53 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002234/2.58, allocations: 423.9 kB / 0.9327 GB, free: 83.52 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01502/2.595, allocations: 5.086 MB / 0.9376 GB, free: 82.63 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007988/2.596, allocations: 56.84 kB / 0.9377 GB, free: 82.59 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0317/2.627, allocations: 26.75 MB / 0.9638 GB, free: 65.4 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/2.627, allocations: 14.95 kB / 0.9638 GB, free: 65.39 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02637/2.654, allocations: 16.79 MB / 0.9802 GB, free: 51.29 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003962/2.658, allocations: 1.271 MB / 0.9815 GB, free: 50.11 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/2.659, allocations: 63.95 kB / 0.9815 GB, free: 50.04 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003753/2.663, allocations: 254.1 kB / 0.9818 GB, free: 49.89 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007738/2.664, allocations: 239 kB / 0.982 GB, free: 49.74 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/2.664, allocations: 89.02 kB / 0.9821 GB, free: 49.66 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008272/2.672, allocations: 4.47 MB / 0.9865 GB, free: 45.75 MB / 458.8 MB Notification: Performance of sort global known variables: time 6.31e-07/2.672, allocations: 0 / 0.9865 GB, free: 45.75 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01125/2.684, allocations: 1.964 MB / 0.9884 GB, free: 43.79 MB / 458.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.0009695/2.685, allocations: 226.3 kB / 0.9886 GB, free: 43.61 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01526/2.7, allocations: 10 MB / 0.9984 GB, free: 34.52 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/2.7, allocations: 7.906 kB / 0.9984 GB, free: 34.52 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007078/2.707, allocations: 4.429 MB / 1.003 GB, free: 30.04 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006222/2.713, allocations: 0.9982 MB / 1.004 GB, free: 29.09 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03172/2.745, allocations: 15.77 MB / 1.019 GB, free: 13.27 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009225/2.754, allocations: 5.716 MB / 1.025 GB, free: 7.578 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.007543/2.762, allocations: 2.635 MB / 1.027 GB, free: 5.094 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/2.763, allocations: 395.4 kB / 1.028 GB, free: 4.707 MB / 458.8 MB Notification: Performance of SimCode: time 1.142e-06/2.763, allocations: 0 / 1.028 GB, free: 4.707 MB / 458.8 MB Notification: Performance of Templates: time 0.3803/3.144, allocations: 84.05 MB / 1.11 GB, free: 73.57 MB / 458.8 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