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.00169/0.00169, allocations: 116.5 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 207.8 kB / 19.4 MB, free: 3.664 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.438/1.438, allocations: 227.7 MB / 247.9 MB, free: 10.17 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.001996/0.001996, allocations: 67.84 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2374, allocations: 50.56 MB / 410.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02255/0.2599, allocations: 20.49 MB / 430.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.273, allocations: 6.195 MB / 436.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002967/0.276, allocations: 167.4 kB / 437.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01164/0.2876, allocations: 6.386 MB / 443.5 MB, free: 80 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008227/0.2959, allocations: 3.501 MB / 447 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003769/0.2996, allocations: 1.658 MB / 448.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01752/0.3171, allocations: 12.96 MB / 461.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008988/0.3261, allocations: 6.772 MB / 468.4 MB, free: 7.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006803/0.3329, allocations: 3.747 MB / 472.1 MB, free: 3.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007556/0.3405, allocations: 4.962 MB / 477.1 MB, free: 14.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002219/0.3427, allocations: 0.7461 MB / 477.8 MB, free: 13.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003784/0.3465, allocations: 1.698 MB / 479.5 MB, free: 11.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005388/0.3519, allocations: 4.496 MB / 484 MB, free: 7.379 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006726/0.3586, allocations: 4.631 MB / 488.7 MB, free: 2.723 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.3756, allocations: 14.17 MB / 0.491 GB, free: 4.504 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3756, allocations: 0 / 0.491 GB, free: 4.504 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3756, allocations: 0 / 0.491 GB, free: 4.504 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003293/0.3759, allocations: 0 / 0.491 GB, free: 4.504 MB / 414.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.02767/0.4036, allocations: 10.28 MB / 0.5011 GB, free: 10.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.4036, allocations: 8.031 kB / 0.5011 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04793/0.4515, allocations: 5.328 MB / 0.5063 GB, free: 4.777 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02101/0.4725, allocations: 8.126 MB / 0.5142 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005023/0.473, allocations: 447.9 kB / 0.5147 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002489/0.4755, allocations: 0.6167 MB / 0.5153 GB, free: 11.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03599/0.5115, allocations: 17.12 MB / 0.532 GB, free: 9.352 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003378/0.5119, allocations: 107.3 kB / 0.5321 GB, free: 9.246 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.5129, allocations: 271.8 kB / 0.5323 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005109/0.518, allocations: 2.858 MB / 0.5351 GB, free: 6.117 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4035/0.9216, allocations: 14.03 MB / 0.5488 GB, free: 111.1 MB / 462.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.07965/1.001, allocations: 69.79 MB / 0.617 GB, free: 48.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/1.021, allocations: 7.945 MB / 0.6247 GB, free: 40.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00496/1.026, allocations: 4.355 MB / 0.629 GB, free: 36.13 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02013/1.046, allocations: 12.78 MB / 0.6415 GB, free: 23.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.897e-05/1.046, allocations: 72.48 kB / 0.6415 GB, free: 23.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 5.821e-06/1.046, allocations: 0 / 0.6415 GB, free: 23.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1943/1.24, allocations: 52.77 MB / 0.6931 GB, free: 2.973 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002169/1.24, allocations: 394.2 kB / 0.6935 GB, free: 2.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/1.251, allocations: 7.282 MB / 0.7006 GB, free: 11.35 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008643/1.252, allocations: 77.7 kB / 0.7006 GB, free: 11.27 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004948/1.257, allocations: 5.381 MB / 0.7059 GB, free: 6.043 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002217/1.259, allocations: 1.387 MB / 0.7072 GB, free: 4.645 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003467/1.262, allocations: 1.932 MB / 0.7091 GB, free: 2.699 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001271/1.263, allocations: 301.1 kB / 0.7094 GB, free: 2.402 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007401/1.27, allocations: 4.707 MB / 0.714 GB, free: 13.69 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01235/1.282, allocations: 9.542 MB / 0.7233 GB, free: 1.805 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02187/1.304, allocations: 15 MB / 0.738 GB, free: 484 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000189/1.304, allocations: 44 kB / 0.738 GB, free: 440 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.2716/1.576, allocations: 20.41 MB / 0.758 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.576, allocations: 73.53 kB / 0.758 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/1.576, allocations: 167.2 kB / 0.7582 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02124/1.598, allocations: 7.334 MB / 0.7654 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006567/1.604, allocations: 1.994 MB / 0.7673 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04289/1.647, allocations: 36.59 MB / 0.803 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008744/1.656, allocations: 0.6028 MB / 0.8036 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/1.657, allocations: 0.4993 MB / 0.8041 GB, free: 132.7 MB / 0.5294 GB 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.006464/1.664, allocations: 3.6 MB / 0.8076 GB, free: 129.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.665, allocations: 0.6897 MB / 0.8083 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02779/1.693, allocations: 13.84 MB / 0.8218 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.903e-05/1.693, allocations: 40 kB / 0.8219 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-05/1.693, allocations: 20 kB / 0.8219 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.16e-05/1.693, allocations: 19.94 kB / 0.8219 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04747/1.741, allocations: 27.61 MB / 0.8489 GB, free: 87.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.923e-05/1.741, allocations: 7.609 kB / 0.8489 GB, free: 87.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/1.743, allocations: 466.6 kB / 0.8493 GB, free: 86.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01962/1.763, allocations: 6.972 MB / 0.8561 GB, free: 79.58 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008632/1.764, allocations: 64 kB / 0.8562 GB, free: 79.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03971/1.803, allocations: 35.36 MB / 0.8907 GB, free: 43.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.892e-06/1.803, allocations: 8.188 kB / 0.8907 GB, free: 43.97 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03237/1.836, allocations: 19.65 MB / 0.9099 GB, free: 24.15 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/1.838, allocations: 0.7471 MB / 0.9106 GB, free: 23.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/1.839, allocations: 64 kB / 0.9107 GB, free: 23.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003804/1.843, allocations: 327.6 kB / 0.911 GB, free: 23.01 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009482/1.844, allocations: 254.7 kB / 0.9113 GB, free: 22.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000276/1.844, allocations: 99.81 kB / 0.9114 GB, free: 22.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00579/1.85, allocations: 4.646 MB / 0.9159 GB, free: 18.05 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/1.85, allocations: 0 / 0.9159 GB, free: 18.05 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008652/1.859, allocations: 2.202 MB / 0.918 GB, free: 15.86 MB / 0.5294 GB 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.0007428/1.859, allocations: 219.5 kB / 0.9182 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01639/1.876, allocations: 11.51 MB / 0.9295 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.876, allocations: 0 / 0.9295 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008214/1.884, allocations: 4.909 MB / 0.9343 GB, free: 15.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006645/1.891, allocations: 1.017 MB / 0.9353 GB, free: 14.13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2371/2.128, allocations: 20.58 MB / 0.9554 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008958/2.137, allocations: 5.721 MB / 0.961 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006077/2.143, allocations: 2.696 MB / 0.9636 GB, free: 181.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/2.144, allocations: 401.7 kB / 0.964 GB, free: 181.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.152e-06/2.144, allocations: 0 / 0.964 GB, free: 181.1 MB / 0.545 GB Notification: Performance of Templates: time 0.147/2.291, allocations: 99 MB / 1.061 GB, free: 88.59 MB / 0.545 GB 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 -s gbode -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