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.002335/0.002335, allocations: 106.6 kB / 18.45 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003418/0.003418, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.81/2.81, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002517/0.002517, allocations: 71.86 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6067/0.6092, allocations: 50.54 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.03671/0.646, allocations: 23.3 MB / 433.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04157/0.6877, allocations: 7.074 MB / 440.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01061/0.6984, allocations: 183.4 kB / 440.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02736/0.7259, allocations: 7.905 MB / 448.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01899/0.745, allocations: 3.529 MB / 452 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00985/0.7549, allocations: 2.009 MB / 454 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03441/0.7893, allocations: 13.56 MB / 467.5 MB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02967/0.8191, allocations: 10.44 MB / 478 MB, free: 13.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01505/0.8342, allocations: 4.262 MB / 482.2 MB, free: 9.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01775/0.852, allocations: 5.707 MB / 487.9 MB, free: 3.312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006464/0.8586, allocations: 1 MB / 488.9 MB, free: 2.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01563/0.8743, allocations: 2.146 MB / 491.1 MB, free: 168 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01392/0.8883, allocations: 5.094 MB / 496.2 MB, free: 11.06 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02031/0.9088, allocations: 5.398 MB / 0.4898 GB, free: 5.633 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03911/0.948, allocations: 17.19 MB / 0.5066 GB, free: 4.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.948, allocations: 0 / 0.5066 GB, free: 4.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.9481, allocations: 0 / 0.5066 GB, free: 4.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007581/0.9488, allocations: 0 / 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.06618/1.015, allocations: 11.18 MB / 0.5175 GB, free: 9.109 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.68e-05/1.015, allocations: 8.031 kB / 0.5175 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1508/1.166, allocations: 5.418 MB / 0.5228 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05988/1.226, allocations: 8.879 MB / 0.5315 GB, free: 10.69 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005068/1.231, allocations: 0.5218 MB / 0.532 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006535/1.238, allocations: 0.722 MB / 0.5327 GB, free: 9.445 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7029/1.941, allocations: 19.52 MB / 0.5518 GB, free: 111 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001069/1.942, allocations: 92.08 kB / 0.5518 GB, free: 111 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006029/1.948, allocations: 323.2 kB / 0.5522 GB, free: 110.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009604/1.958, allocations: 2.813 MB / 0.5549 GB, free: 110.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07366/2.031, allocations: 16.25 MB / 0.5708 GB, free: 99.71 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.1918/2.223, allocations: 74.04 MB / 0.6431 GB, free: 24.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05191/2.275, allocations: 8.477 MB / 0.6514 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01155/2.287, allocations: 4.773 MB / 0.656 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05849/2.345, allocations: 15.48 MB / 0.6711 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/2.346, allocations: 68.66 kB / 0.6712 GB, free: 10.96 MB / 478.1 MB Notification: Performance of pre-optimization done (n=320): time 1.935e-05/2.346, allocations: 0 / 0.6712 GB, free: 10.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=426): time 0.392/2.738, allocations: 52.3 MB / 0.7223 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003908/2.738, allocations: 410.7 kB / 0.7227 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02414/2.762, allocations: 7.551 MB / 0.7301 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001729/2.764, allocations: 89.7 kB / 0.7301 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.008488/2.773, allocations: 5.589 MB / 0.7356 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00413/2.777, allocations: 1.553 MB / 0.7371 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00721/2.784, allocations: 2.086 MB / 0.7391 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001898/2.784, allocations: 305.1 kB / 0.7394 GB, free: 4.785 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5832/3.368, allocations: 5.216 MB / 0.7445 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03758/3.405, allocations: 10.27 MB / 0.7546 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0492/3.455, allocations: 16.3 MB / 0.7705 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007926/3.455, allocations: 51.94 kB / 0.7705 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.1049/3.56, allocations: 21.24 MB / 0.7913 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000506/3.561, allocations: 80 kB / 0.7913 GB, free: 150 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000646/3.562, allocations: 168.8 kB / 0.7915 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.039/3.601, allocations: 6.658 MB / 0.798 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0149/3.616, allocations: 2.153 MB / 0.8001 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09795/3.714, allocations: 35.04 MB / 0.8343 GB, free: 108.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0283/3.742, allocations: 0.6167 MB / 0.8349 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003939/3.746, allocations: 0.5312 MB / 0.8355 GB, free: 107 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.0156/3.762, allocations: 4.098 MB / 0.8395 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003672/3.765, allocations: 0.6876 MB / 0.8401 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05488/3.82, allocations: 14.3 MB / 0.8541 GB, free: 88.35 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001525/3.821, allocations: 51.06 kB / 0.8541 GB, free: 88.31 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001435/3.821, allocations: 24 kB / 0.8542 GB, free: 88.29 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001754/3.821, allocations: 23.86 kB / 0.8542 GB, free: 88.26 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09313/3.914, allocations: 27.89 MB / 0.8814 GB, free: 60.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001221/3.914, allocations: 8 kB / 0.8814 GB, free: 60.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004913/3.919, allocations: 0.5812 MB / 0.882 GB, free: 59.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03004/3.949, allocations: 6.33 MB / 0.8882 GB, free: 53.49 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001783/3.951, allocations: 80 kB / 0.8883 GB, free: 53.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07101/4.022, allocations: 31.9 MB / 0.9194 GB, free: 21.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/4.022, allocations: 11.94 kB / 0.9194 GB, free: 21.55 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05524/4.078, allocations: 20.93 MB / 0.9399 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004026/4.082, allocations: 0.738 MB / 0.9406 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003766/4.085, allocations: 83.92 kB / 0.9407 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.4586/4.544, allocations: 331.5 kB / 0.941 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003335/4.548, allocations: 293.6 kB / 0.9413 GB, free: 178.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001399/4.549, allocations: 115.4 kB / 0.9414 GB, free: 178.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01882/4.568, allocations: 4.833 MB / 0.9461 GB, free: 178.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.82e-07/4.568, allocations: 0 / 0.9461 GB, free: 178.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02108/4.589, allocations: 2.403 MB / 0.9484 GB, free: 178.7 MB / 0.545 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.002305/4.591, allocations: 287.8 kB / 0.9487 GB, free: 178.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03288/4.624, allocations: 12.74 MB / 0.9611 GB, free: 175.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/4.624, allocations: 3.906 kB / 0.9611 GB, free: 175.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01018/4.634, allocations: 5.322 MB / 0.9663 GB, free: 173 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/4.645, allocations: 1.082 MB / 0.9674 GB, free: 172.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05965/4.705, allocations: 23.2 MB / 0.9901 GB, free: 158.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01294/4.718, allocations: 6.303 MB / 0.9962 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002545/4.72, allocations: 494.7 kB / 0.9967 GB, free: 153 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/4.72, allocations: 0 / 0.9967 GB, free: 153 MB / 0.545 GB Notification: Performance of Templates: time 0.7021/5.422, allocations: 166.2 MB / 1.159 GB, free: 169.2 MB / 0.545 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