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.001716/0.001716, allocations: 119.9 kB / 18.42 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002028/0.002029, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 55.62 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08552, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1711/0.2567, allocations: 23.3 MB / 382.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.2685, allocations: 7.083 MB / 389.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.271, allocations: 181.9 kB / 389.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01136/0.2824, allocations: 7.91 MB / 397.4 MB, free: 140 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007556/0.29, allocations: 3.542 MB / 400.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003793/0.2938, allocations: 2.006 MB / 402.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01561/0.3094, allocations: 13.55 MB / 416.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.3196, allocations: 10.44 MB / 426.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005538/0.3252, allocations: 4.254 MB / 431.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00656/0.3317, allocations: 5.684 MB / 436.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.3331, allocations: 1.004 MB / 437.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003394/0.3365, allocations: 2.135 MB / 440 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003836/0.3404, allocations: 5.008 MB / 445 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004773/0.3452, allocations: 5.398 MB / 450.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01432/0.3595, allocations: 17.19 MB / 467.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3595, allocations: 0 / 467.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3595, allocations: 0 / 467.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.3599, allocations: 0 / 467.6 MB, free: 14.06 MB / 382.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.02051/0.3804, allocations: 11.18 MB / 478.8 MB, free: 2.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3804, allocations: 8.031 kB / 478.8 MB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03978/0.4202, allocations: 5.418 MB / 484.2 MB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02106/0.4413, allocations: 8.867 MB / 493.1 MB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/0.4417, allocations: 0.5298 MB / 493.6 MB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.4435, allocations: 0.7298 MB / 494.3 MB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03099/0.4745, allocations: 19.51 MB / 0.5018 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002213/0.4747, allocations: 99.11 kB / 0.5019 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007797/0.4755, allocations: 323.8 kB / 0.5022 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003756/0.4793, allocations: 2.817 MB / 0.5049 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03008/0.5094, allocations: 16.25 MB / 0.5208 GB, free: 11.04 MB / 446.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.4137/0.9231, allocations: 74.03 MB / 0.5931 GB, free: 83.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01986/0.943, allocations: 8.479 MB / 0.6014 GB, free: 79.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005072/0.9481, allocations: 4.776 MB / 0.6061 GB, free: 76.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02034/0.9685, allocations: 15.47 MB / 0.6212 GB, free: 60.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/0.9686, allocations: 70.11 kB / 0.6212 GB, free: 60.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=320): time 5.741e-06/0.9686, allocations: 0 / 0.6212 GB, free: 60.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.1553/1.124, allocations: 52.3 MB / 0.6723 GB, free: 8.434 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/1.124, allocations: 414.7 kB / 0.6727 GB, free: 7.941 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008733/1.133, allocations: 7.547 MB / 0.6801 GB, free: 440 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00076/1.134, allocations: 93.7 kB / 0.6802 GB, free: 340 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003469/1.137, allocations: 5.594 MB / 0.6856 GB, free: 10.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/1.139, allocations: 1.552 MB / 0.6871 GB, free: 9.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002894/1.142, allocations: 2.086 MB / 0.6892 GB, free: 7.078 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.841e-05/1.142, allocations: 301.1 kB / 0.6895 GB, free: 6.781 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006767/1.148, allocations: 5.217 MB / 0.6945 GB, free: 1.559 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009828/1.158, allocations: 10.27 MB / 0.7046 GB, free: 4.871 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2065/1.365, allocations: 16.29 MB / 0.7205 GB, free: 140.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001596/1.365, allocations: 49.09 kB / 0.7205 GB, free: 140.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.04185/1.407, allocations: 21.24 MB / 0.7413 GB, free: 133.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.415e-05/1.407, allocations: 81.78 kB / 0.7414 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/1.407, allocations: 168.8 kB / 0.7415 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01874/1.426, allocations: 6.659 MB / 0.748 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006705/1.433, allocations: 2.148 MB / 0.7501 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04088/1.474, allocations: 35.05 MB / 0.7843 GB, free: 99.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007503/1.481, allocations: 0.6239 MB / 0.7849 GB, free: 99.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008714/1.482, allocations: 0.5312 MB / 0.7855 GB, free: 98.76 MB / 478.1 MB 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.005101/1.487, allocations: 4.098 MB / 0.7895 GB, free: 94.76 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.488, allocations: 0.6902 MB / 0.7901 GB, free: 94.44 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02463/1.513, allocations: 14.3 MB / 0.8041 GB, free: 80.08 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.37e-05/1.513, allocations: 47.83 kB / 0.8042 GB, free: 80.04 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/1.513, allocations: 24 kB / 0.8042 GB, free: 80.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.017e-05/1.513, allocations: 27.86 kB / 0.8042 GB, free: 79.99 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04526/1.558, allocations: 28.04 MB / 0.8316 GB, free: 51.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.343e-05/1.558, allocations: 8 kB / 0.8316 GB, free: 51.95 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/1.561, allocations: 0.6006 MB / 0.8322 GB, free: 51.35 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01664/1.578, allocations: 6.319 MB / 0.8384 GB, free: 45.03 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007304/1.579, allocations: 80 kB / 0.8384 GB, free: 44.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03704/1.616, allocations: 31.91 MB / 0.8696 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/1.616, allocations: 8 kB / 0.8696 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2388/1.854, allocations: 20.92 MB / 0.89 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/1.857, allocations: 0.7374 MB / 0.8908 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/1.858, allocations: 77.64 kB / 0.8908 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/1.861, allocations: 333.7 kB / 0.8911 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001096/1.863, allocations: 303.6 kB / 0.8914 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003751/1.863, allocations: 111.7 kB / 0.8915 GB, free: 139.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007333/1.87, allocations: 4.831 MB / 0.8963 GB, free: 138.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.87, allocations: 0 / 0.8963 GB, free: 138.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008996/1.879, allocations: 2.404 MB / 0.8986 GB, free: 138.5 MB / 478.1 MB 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.0007749/1.88, allocations: 279.2 kB / 0.8989 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01589/1.896, allocations: 12.75 MB / 0.9113 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.896, allocations: 7.75 kB / 0.9113 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006995/1.903, allocations: 5.341 MB / 0.9165 GB, free: 131.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005884/1.909, allocations: 1.079 MB / 0.9176 GB, free: 130.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03251/1.941, allocations: 22.42 MB / 0.9395 GB, free: 116.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007687/1.949, allocations: 6.378 MB / 0.9457 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006357/1.956, allocations: 2.954 MB / 0.9486 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/1.957, allocations: 430.7 kB / 0.949 GB, free: 109.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/1.957, allocations: 0 / 0.949 GB, free: 109.1 MB / 478.1 MB Notification: Performance of Templates: time 0.1457/2.103, allocations: 103.9 MB / 1.05 GB, free: 5.867 MB / 478.1 MB 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 -s gbode -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