Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 109.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 70.59 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1079, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1984/0.3064, allocations: 20.44 MB / 378.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.319, allocations: 6.186 MB / 385.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004487/0.3235, allocations: 166.1 kB / 385.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01118/0.3348, allocations: 6.33 MB / 391.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00926/0.3441, allocations: 3.389 MB / 394.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0037/0.3478, allocations: 1.658 MB / 396.6 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01795/0.3658, allocations: 12.96 MB / 409.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.3768, allocations: 8.06 MB / 417.6 MB, free: 8 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007362/0.3842, allocations: 3.735 MB / 421.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008045/0.3923, allocations: 4.943 MB / 426.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002542/0.3949, allocations: 0.7461 MB / 427 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006989/0.4019, allocations: 1.697 MB / 428.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008845/0.4108, allocations: 4.341 MB / 433.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01189/0.4227, allocations: 4.635 MB / 437.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02574/0.4485, allocations: 13.78 MB / 451.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.4486, allocations: 0 / 451.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4486, allocations: 0 / 451.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006598/0.4492, allocations: 4 kB / 451.5 MB, free: 14.02 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03883/0.4881, allocations: 10.01 MB / 461.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4882, allocations: 12.03 kB / 461.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05336/0.5415, allocations: 5.271 MB / 466.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01951/0.5611, allocations: 7.892 MB / 474.7 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004459/0.5616, allocations: 452.2 kB / 475.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/0.5638, allocations: 0.6127 MB / 475.7 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03496/0.5987, allocations: 17.13 MB / 492.9 MB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003168/0.5991, allocations: 103.1 kB / 493 MB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001155/0.6002, allocations: 279.8 kB / 493.3 MB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005006/0.6053, allocations: 2.854 MB / 496.1 MB, free: 184 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03205/0.6373, allocations: 14.03 MB / 0.4982 GB, free: 2.129 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4096/1.047, allocations: 69.97 MB / 0.5665 GB, free: 96.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0206/1.068, allocations: 8.212 MB / 0.5745 GB, free: 93.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005541/1.073, allocations: 4.633 MB / 0.5791 GB, free: 91.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01987/1.093, allocations: 12.76 MB / 0.5915 GB, free: 85.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/1.093, allocations: 70.31 kB / 0.5916 GB, free: 85.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.721e-06/1.093, allocations: 2 kB / 0.5916 GB, free: 85.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.1816/1.275, allocations: 52.43 MB / 0.6428 GB, free: 39.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/1.275, allocations: 402.2 kB / 0.6432 GB, free: 38.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009594/1.285, allocations: 7.264 MB / 0.6503 GB, free: 31.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009332/1.286, allocations: 81.7 kB / 0.6503 GB, free: 31.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002726/1.288, allocations: 5.2 MB / 0.6554 GB, free: 26.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001563/1.29, allocations: 1.328 MB / 0.6567 GB, free: 25.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002653/1.293, allocations: 1.919 MB / 0.6586 GB, free: 23.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.716e-05/1.293, allocations: 301.1 kB / 0.6589 GB, free: 22.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005632/1.298, allocations: 4.711 MB / 0.6635 GB, free: 18.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00826/1.307, allocations: 9.534 MB / 0.6728 GB, free: 6.246 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01973/1.326, allocations: 15.01 MB / 0.6874 GB, free: 4.906 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/1.326, allocations: 48 kB / 0.6875 GB, free: 4.859 MB / 462.1 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.05038/1.377, allocations: 20.44 MB / 0.7075 GB, free: 372 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/1.377, allocations: 83.97 kB / 0.7075 GB, free: 288 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002185/1.377, allocations: 167.9 kB / 0.7077 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2062/1.583, allocations: 7.343 MB / 0.7149 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007116/1.591, allocations: 1.998 MB / 0.7168 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04354/1.634, allocations: 36.58 MB / 0.7525 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008043/1.642, allocations: 0.603 MB / 0.7531 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001621/1.644, allocations: 0.4958 MB / 0.7536 GB, free: 134.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * 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],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 (1081): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005551/1.649, allocations: 3.599 MB / 0.7571 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/1.651, allocations: 0.6541 MB / 0.7578 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02847/1.679, allocations: 13.92 MB / 0.7714 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.267e-05/1.679, allocations: 43.94 kB / 0.7714 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.56e-05/1.679, allocations: 21 kB / 0.7714 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-05/1.68, allocations: 15.94 kB / 0.7714 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04862/1.728, allocations: 27.84 MB / 0.7986 GB, free: 89.33 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.545e-05/1.728, allocations: 4 kB / 0.7986 GB, free: 89.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002217/1.73, allocations: 471.4 kB / 0.7991 GB, free: 88.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/1.75, allocations: 6.986 MB / 0.8059 GB, free: 81.94 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009962/1.751, allocations: 64.62 kB / 0.806 GB, free: 81.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0397/1.791, allocations: 35.34 MB / 0.8405 GB, free: 46.38 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.791, allocations: 15.97 kB / 0.8405 GB, free: 46.36 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03668/1.828, allocations: 19.7 MB / 0.8597 GB, free: 26.68 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/1.83, allocations: 0.6991 MB / 0.8604 GB, free: 25.96 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002203/1.832, allocations: 64 kB / 0.8605 GB, free: 25.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004917/1.837, allocations: 327.4 kB / 0.8608 GB, free: 25.58 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001377/1.838, allocations: 254.8 kB / 0.861 GB, free: 25.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003831/1.839, allocations: 92 kB / 0.8611 GB, free: 25.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006857/1.846, allocations: 4.653 MB / 0.8657 GB, free: 20.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.846, allocations: 0 / 0.8657 GB, free: 20.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009689/1.855, allocations: 2.194 MB / 0.8678 GB, free: 18.43 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/1.857, allocations: 222 kB / 0.868 GB, free: 18.21 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.19/2.047, allocations: 15.33 MB / 0.883 GB, free: 148.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/2.047, allocations: 2.562 kB / 0.883 GB, free: 148.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009245/2.056, allocations: 5.268 MB / 0.8881 GB, free: 147.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00622/2.062, allocations: 1.015 MB / 0.8891 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0364/2.098, allocations: 21.13 MB / 0.9098 GB, free: 139.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0072/2.106, allocations: 5.652 MB / 0.9153 GB, free: 137.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/2.107, allocations: 460.5 kB / 0.9157 GB, free: 137.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.61e-07/2.107, allocations: 0 / 0.9157 GB, free: 137.5 MB / 478.1 MB Notification: Performance of Templates: time 0.45/2.557, allocations: 214.2 MB / 1.125 GB, free: 91.67 MB / 478.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches