Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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 trunk/package.mo", uses=false) 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) 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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00137/0.00137, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2612, allocations: 50.54 MB / 410 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02272/0.2839, allocations: 23.31 MB / 433.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.2991, allocations: 7.067 MB / 440.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004328/0.3035, allocations: 179.4 kB / 440.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.3174, allocations: 7.909 MB / 448.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008743/0.3262, allocations: 3.536 MB / 452 MB, free: 7.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004513/0.3307, allocations: 2.005 MB / 454 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01742/0.3481, allocations: 13.57 MB / 467.5 MB, free: 7.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0127/0.3609, allocations: 10.44 MB / 478 MB, free: 13.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007787/0.3687, allocations: 4.261 MB / 482.2 MB, free: 9.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009045/0.3778, allocations: 5.703 MB / 487.9 MB, free: 3.316 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003105/0.381, allocations: 1 MB / 488.9 MB, free: 2.316 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005553/0.3865, allocations: 2.154 MB / 491.1 MB, free: 164 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00657/0.3931, allocations: 5.09 MB / 496.2 MB, free: 11.06 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009061/0.4022, allocations: 5.394 MB / 0.4898 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01963/0.4219, allocations: 17.19 MB / 0.5066 GB, free: 4.395 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.422, allocations: 0 / 0.5066 GB, free: 4.395 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.422, allocations: 0 / 0.5066 GB, free: 4.395 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005867/0.4226, allocations: 4 kB / 0.5066 GB, free: 4.391 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.02852/0.4511, allocations: 11.18 MB / 0.5175 GB, free: 9.113 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4511, allocations: 8.031 kB / 0.5175 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04702/0.4982, allocations: 5.418 MB / 0.5228 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02001/0.5182, allocations: 8.879 MB / 0.5315 GB, free: 10.69 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004543/0.5187, allocations: 0.5218 MB / 0.532 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002604/0.5213, allocations: 0.7259 MB / 0.5327 GB, free: 9.441 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4229/0.9442, allocations: 19.52 MB / 0.5518 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005755/0.9449, allocations: 94.58 kB / 0.5519 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002901/0.9478, allocations: 323.4 kB / 0.5522 GB, free: 109 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006368/0.9542, allocations: 2.818 MB / 0.5549 GB, free: 108.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03982/0.994, allocations: 16.25 MB / 0.5708 GB, free: 97.46 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.08012/1.074, allocations: 74.05 MB / 0.6431 GB, free: 22.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02093/1.095, allocations: 8.469 MB / 0.6514 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005229/1.1, allocations: 4.766 MB / 0.656 GB, free: 8.867 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02283/1.123, allocations: 15.48 MB / 0.6711 GB, free: 8.832 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.987e-05/1.123, allocations: 72.59 kB / 0.6712 GB, free: 8.75 MB / 478.1 MB Notification: Performance of pre-optimization done (n=320): time 6.312e-06/1.123, allocations: 0 / 0.6712 GB, free: 8.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=426): time 0.1858/1.309, allocations: 52.31 MB / 0.7223 GB, free: 4.293 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000188/1.309, allocations: 402.8 kB / 0.7227 GB, free: 3.812 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01137/1.321, allocations: 7.554 MB / 0.7301 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.322, allocations: 93.7 kB / 0.7301 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004163/1.326, allocations: 5.589 MB / 0.7356 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00246/1.329, allocations: 1.553 MB / 0.7371 GB, free: 4.961 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003445/1.332, allocations: 2.082 MB / 0.7392 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.902e-05/1.332, allocations: 305.1 kB / 0.7394 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.232/1.564, allocations: 5.215 MB / 0.7445 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009963/1.574, allocations: 10.26 MB / 0.7546 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01729/1.592, allocations: 16.31 MB / 0.7705 GB, free: 156 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001575/1.592, allocations: 47.19 kB / 0.7705 GB, free: 156 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04021/1.632, allocations: 21.24 MB / 0.7913 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.582e-05/1.632, allocations: 80.97 kB / 0.7913 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001614/1.632, allocations: 168 kB / 0.7915 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01935/1.652, allocations: 6.662 MB / 0.798 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/1.658, allocations: 2.148 MB / 0.8001 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04205/1.7, allocations: 35.03 MB / 0.8343 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008467/1.709, allocations: 0.6219 MB / 0.8349 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.711, allocations: 0.5273 MB / 0.8354 GB, free: 102.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1176): * Single equations (assignments): 1171 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006554/1.717, allocations: 4.107 MB / 0.8395 GB, free: 98.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001453/1.719, allocations: 0.6902 MB / 0.8401 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02703/1.746, allocations: 14.3 MB / 0.8541 GB, free: 83.97 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-05/1.746, allocations: 44 kB / 0.8541 GB, free: 83.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.625e-05/1.746, allocations: 24 kB / 0.8542 GB, free: 83.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.043e-05/1.746, allocations: 23.86 kB / 0.8542 GB, free: 83.88 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04959/1.796, allocations: 27.89 MB / 0.8814 GB, free: 56.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.365e-05/1.796, allocations: 10.84 kB / 0.8814 GB, free: 56.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00295/1.799, allocations: 0.5898 MB / 0.882 GB, free: 55.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01811/1.817, allocations: 6.323 MB / 0.8882 GB, free: 49.11 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/1.818, allocations: 83.98 kB / 0.8883 GB, free: 49.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03888/1.857, allocations: 31.91 MB / 0.9194 GB, free: 17.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/1.857, allocations: 8 kB / 0.9194 GB, free: 17.16 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3007/2.158, allocations: 20.93 MB / 0.9399 GB, free: 172.8 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002431/2.16, allocations: 0.7348 MB / 0.9406 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002641/2.163, allocations: 84.2 kB / 0.9407 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005582/2.168, allocations: 325.6 kB / 0.941 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001767/2.17, allocations: 302.6 kB / 0.9413 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005781/2.171, allocations: 114 kB / 0.9414 GB, free: 172.7 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.008784/2.18, allocations: 4.831 MB / 0.9461 GB, free: 172.5 MB / 0.5451 GB Notification: Performance of sort global known variables: time 1.182e-06/2.18, allocations: 0 / 0.9461 GB, free: 172.5 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01133/2.191, allocations: 2.412 MB / 0.9484 GB, free: 172.5 MB / 0.5451 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (294): * Single equations (assignments): 290 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001241/2.192, allocations: 275.9 kB / 0.9487 GB, free: 172.4 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01751/2.21, allocations: 12.74 MB / 0.9611 GB, free: 168.9 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.21, allocations: 3.781 kB / 0.9611 GB, free: 168.9 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.007848/2.218, allocations: 5.322 MB / 0.9663 GB, free: 166.6 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007878/2.226, allocations: 1.08 MB / 0.9674 GB, free: 166.1 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04029/2.266, allocations: 23.21 MB / 0.9901 GB, free: 154.2 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008012/2.274, allocations: 6.308 MB / 0.9962 GB, free: 149.4 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/2.276, allocations: 494.2 kB / 0.9967 GB, free: 149 MB / 0.5451 GB Notification: Performance of SimCode: time 9.52e-07/2.276, allocations: 0 / 0.9967 GB, free: 149 MB / 0.5451 GB Notification: Performance of Templates: time 0.4187/2.695, allocations: 164.9 MB / 1.158 GB, free: 165.4 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches