Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001372/0.001372, allocations: 172.5 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.694/1.694, 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.001096/0.001096, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.768e-05, allocations: 0 / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.09981, allocations: 47.58 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3791/0.4789, allocations: 97.72 MB / 467.7 MB, free: 11.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.4793, allocations: 84.95 kB / 467.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6524/1.132, allocations: 166.7 MB / 0.6196 GB, free: 63.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.814e-06/1.132, allocations: 0 / 0.6196 GB, free: 63.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006605/1.132, allocations: 167.9 kB / 0.6198 GB, free: 63.21 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02796/1.16, allocations: 8.189 MB / 0.6278 GB, free: 54.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/1.16, allocations: 12.03 kB / 0.6278 GB, free: 54.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06079/1.221, allocations: 16.57 MB / 0.644 GB, free: 38.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.032/1.253, allocations: 13.76 MB / 0.6574 GB, free: 24.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005497/1.254, allocations: 0.5536 MB / 0.6579 GB, free: 23.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004275/1.258, allocations: 0.7573 MB / 0.6587 GB, free: 23.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04347/1.302, allocations: 16.83 MB / 0.6751 GB, free: 4.996 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006396/1.302, allocations: 107 kB / 0.6752 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003174/1.306, allocations: 355.8 kB / 0.6756 GB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002277/1.308, allocations: 1.535 MB / 0.6771 GB, free: 3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03401/1.342, allocations: 13.13 MB / 0.6899 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6022/1.944, allocations: 74.81 MB / 0.7629 GB, free: 28.46 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01715/1.961, allocations: 7.027 MB / 0.7698 GB, free: 27.74 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004873/1.966, allocations: 3.929 MB / 0.7736 GB, free: 26.63 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01911/1.985, allocations: 11.9 MB / 0.7853 GB, free: 20.66 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.986, allocations: 65.5 kB / 0.7853 GB, free: 20.6 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 6.342e-06/1.986, allocations: 3.531 kB / 0.7853 GB, free: 20.6 MB / 426.8 MB Notification: Performance of matching and sorting (n=366): time 0.1224/2.108, allocations: 35.31 MB / 0.8198 GB, free: 8.008 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/2.108, allocations: 404.6 kB / 0.8202 GB, free: 7.527 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01472/2.123, allocations: 6.366 MB / 0.8264 GB, free: 2.031 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009933/2.124, allocations: 88.59 kB / 0.8265 GB, free: 1.941 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005832/2.13, allocations: 5.447 MB / 0.8318 GB, free: 13.05 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002827/2.133, allocations: 1.345 MB / 0.8331 GB, free: 11.86 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00204/2.135, allocations: 172 kB / 0.8333 GB, free: 11.69 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.00138/2.136, allocations: 0.6746 MB / 0.834 GB, free: 11.11 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007733/2.144, allocations: 3.464 MB / 0.8373 GB, free: 7.984 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0125/2.156, allocations: 8.329 MB / 0.8455 GB, free: 13.88 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/2.167, allocations: 5.296 MB / 0.8506 GB, free: 9.453 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002111/2.167, allocations: 48 kB / 0.8507 GB, free: 9.406 MB / 458.8 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.3381/2.505, allocations: 14.82 MB / 0.8652 GB, free: 93.48 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002246/2.506, allocations: 77.5 kB / 0.8652 GB, free: 93.48 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005163/2.506, allocations: 168.2 kB / 0.8654 GB, free: 93.48 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01288/2.519, allocations: 3.728 MB / 0.869 GB, free: 93.45 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007651/2.527, allocations: 1.86 MB / 0.8709 GB, free: 93.45 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03243/2.559, allocations: 23.81 MB / 0.8941 GB, free: 89.41 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009568/2.569, allocations: 496.2 kB / 0.8946 GB, free: 89.41 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002228/2.571, allocations: 0.4993 MB / 0.8951 GB, free: 89.41 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1003): * Single equations (assignments): 997 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002215/2.573, allocations: 0.771 MB / 0.8958 GB, free: 89.3 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001943/2.575, allocations: 0.6875 MB / 0.8965 GB, free: 89.29 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01771/2.593, allocations: 8.842 MB / 0.9051 GB, free: 88.35 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-05/2.593, allocations: 42.11 kB / 0.9052 GB, free: 88.35 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-05/2.593, allocations: 18.81 kB / 0.9052 GB, free: 88.35 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.721e-05/2.593, allocations: 19.3 kB / 0.9052 GB, free: 88.35 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03478/2.628, allocations: 19.43 MB / 0.9242 GB, free: 81.35 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.279e-05/2.628, allocations: 9.312 kB / 0.9242 GB, free: 81.35 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/2.63, allocations: 455.7 kB / 0.9246 GB, free: 81.33 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009646/2.64, allocations: 3.474 MB / 0.928 GB, free: 80.63 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006029/2.641, allocations: 72.34 kB / 0.9281 GB, free: 80.59 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02779/2.668, allocations: 23.07 MB / 0.9506 GB, free: 69.46 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/2.668, allocations: 12.19 kB / 0.9506 GB, free: 69.46 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02124/2.69, allocations: 14.91 MB / 0.9652 GB, free: 57.4 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004397/2.694, allocations: 1.227 MB / 0.9664 GB, free: 56.26 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/2.697, allocations: 75.47 kB / 0.9665 GB, free: 56.19 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004405/2.701, allocations: 219.4 kB / 0.9667 GB, free: 56.05 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.702, allocations: 264.1 kB / 0.9669 GB, free: 55.89 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004739/2.703, allocations: 102.9 kB / 0.967 GB, free: 55.79 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01099/2.714, allocations: 4.585 MB / 0.9715 GB, free: 51.79 MB / 458.8 MB Notification: Performance of sort global known variables: time 7.52e-07/2.714, allocations: 0 / 0.9715 GB, free: 51.79 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01419/2.728, allocations: 2.014 MB / 0.9735 GB, free: 49.79 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001283/2.729, allocations: 228.8 kB / 0.9737 GB, free: 49.61 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01583/2.745, allocations: 9.241 MB / 0.9827 GB, free: 41.43 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-05/2.745, allocations: 3.938 kB / 0.9827 GB, free: 41.43 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006922/2.752, allocations: 4.062 MB / 0.9867 GB, free: 37.74 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/2.759, allocations: 1.024 MB / 0.9877 GB, free: 36.91 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03588/2.795, allocations: 15.35 MB / 1.003 GB, free: 23.25 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/2.806, allocations: 5.952 MB / 1.008 GB, free: 17.61 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.009309/2.815, allocations: 2.784 MB / 1.011 GB, free: 14.86 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/2.817, allocations: 423.4 kB / 1.012 GB, free: 14.45 MB / 458.8 MB Notification: Performance of SimCode: time 1.974e-06/2.817, allocations: 0 / 1.012 GB, free: 14.45 MB / 458.8 MB Notification: Performance of Templates: time 0.4344/3.252, allocations: 83.56 MB / 1.093 GB, free: 94.76 MB / 474.8 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches