Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009308/0.0009309, allocations: 90.03 kB / 16.31 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 182.8 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 241.2 MB, free: 5.332 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002478/0.0002479, allocations: 7.734 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2992/0.4052, allocations: 103.8 MB / 455 MB, free: 416 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.05297/0.4582, allocations: 21.45 MB / 476.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03012/0.4884, allocations: 0.499 MB / 476.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01866/0.5071, allocations: 5.339 MB / 482.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04949/0.5566, allocations: 15.77 MB / 498 MB, free: 1.402 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009009/0.5656, allocations: 1.711 MB / 499.8 MB, free: 292 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4936/1.059, allocations: 180 MB / 0.6639 GB, free: 80.79 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01809/1.077, allocations: 12.77 MB / 0.6763 GB, free: 71.75 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007834/1.085, allocations: 3.235 MB / 0.6795 GB, free: 69.54 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008047/1.093, allocations: 5.045 MB / 0.6844 GB, free: 65.89 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002158/1.096, allocations: 340 kB / 0.6847 GB, free: 65.56 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00416/1.1, allocations: 1.344 MB / 0.6861 GB, free: 64.46 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00461/1.104, allocations: 4.219 MB / 0.6902 GB, free: 61.32 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002876/1.107, allocations: 1.837 MB / 0.692 GB, free: 60.67 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/1.119, allocations: 13.63 MB / 0.7053 GB, free: 48.84 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/1.119, allocations: 5.562 kB / 0.7053 GB, free: 48.84 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.735e-06/1.119, allocations: 0 / 0.7053 GB, free: 48.84 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005648/1.12, allocations: 0 / 0.7053 GB, free: 48.84 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02272/1.143, allocations: 9.359 MB / 0.7144 GB, free: 40.18 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/1.143, allocations: 12.69 kB / 0.7144 GB, free: 40.16 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03863/1.181, allocations: 5.53 MB / 0.7198 GB, free: 34.82 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02689/1.208, allocations: 8.672 MB / 0.7283 GB, free: 28.69 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004798/1.209, allocations: 0.5226 MB / 0.7288 GB, free: 28.39 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003341/1.212, allocations: 0.7338 MB / 0.7295 GB, free: 27.91 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04928/1.262, allocations: 19.53 MB / 0.7486 GB, free: 7.727 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004114/1.262, allocations: 92.48 kB / 0.7487 GB, free: 7.664 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002018/1.264, allocations: 323.4 kB / 0.749 GB, free: 7.395 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003509/1.268, allocations: 2.82 MB / 0.7518 GB, free: 4.613 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03437/1.302, allocations: 16.24 MB / 0.7676 GB, free: 4.613 MB / 494.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.4841/1.786, allocations: 74.49 MB / 0.8404 GB, free: 155.7 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02093/1.807, allocations: 8.529 MB / 0.8487 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006569/1.814, allocations: 4.757 MB / 0.8533 GB, free: 149.9 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02752/1.841, allocations: 15.41 MB / 0.8684 GB, free: 137 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.065e-05/1.841, allocations: 68.58 kB / 0.8685 GB, free: 137 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=321): time 6.182e-06/1.841, allocations: 0 / 0.8685 GB, free: 137 MB / 0.4982 GB Notification: Performance of matching and sorting (n=428): time 0.1724/2.014, allocations: 54.89 MB / 0.9221 GB, free: 82.44 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/2.014, allocations: 410.8 kB / 0.9224 GB, free: 81.95 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/2.024, allocations: 7.514 MB / 0.9298 GB, free: 74.48 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.00156/2.026, allocations: 98.95 kB / 0.9299 GB, free: 74.38 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.00333/2.029, allocations: 5.592 MB / 0.9353 GB, free: 68.82 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002108/2.031, allocations: 1.556 MB / 0.9369 GB, free: 67.28 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007366/2.032, allocations: 204 kB / 0.937 GB, free: 67.08 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0004169/2.032, allocations: 0.7438 MB / 0.9378 GB, free: 66.33 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006408/2.039, allocations: 5.178 MB / 0.9428 GB, free: 61.14 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00825/2.047, allocations: 10.23 MB / 0.9528 GB, free: 48.57 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009257/2.056, allocations: 7.135 MB / 0.9598 GB, free: 41.57 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.469e-05/2.056, allocations: 48 kB / 0.9598 GB, free: 41.53 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.03778/2.094, allocations: 21.15 MB / 0.9805 GB, free: 20.54 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/2.094, allocations: 81.72 kB / 0.9806 GB, free: 20.46 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001845/2.095, allocations: 168.9 kB / 0.9807 GB, free: 20.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01736/2.112, allocations: 6.689 MB / 0.9873 GB, free: 13.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007034/2.119, allocations: 2.152 MB / 0.9894 GB, free: 11.44 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2481/2.367, allocations: 32.8 MB / 1.021 GB, free: 173.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008294/2.376, allocations: 0.6153 MB / 1.022 GB, free: 173.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/2.377, allocations: 0.5366 MB / 1.023 GB, free: 173.2 MB / 0.4982 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 (1178): * Single equations (assignments): 1173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00692/2.384, allocations: 4.098 MB / 1.027 GB, free: 171.7 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001462/2.385, allocations: 0.6917 MB / 1.027 GB, free: 171.7 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0256/2.411, allocations: 14.28 MB / 1.041 GB, free: 166.8 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.009e-05/2.411, allocations: 43.25 kB / 1.041 GB, free: 166.8 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/2.411, allocations: 26.67 kB / 1.041 GB, free: 166.8 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.416e-05/2.411, allocations: 17.58 kB / 1.041 GB, free: 166.8 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04803/2.459, allocations: 28.23 MB / 1.069 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-05/2.459, allocations: 11.95 kB / 1.069 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002637/2.462, allocations: 0.5967 MB / 1.069 GB, free: 144.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02194/2.484, allocations: 6.319 MB / 1.076 GB, free: 137.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009094/2.485, allocations: 82.91 kB / 1.076 GB, free: 137.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04458/2.53, allocations: 29.73 MB / 1.105 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/2.53, allocations: 11.94 kB / 1.105 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03297/2.563, allocations: 20.88 MB / 1.125 GB, free: 87.38 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004039/2.567, allocations: 1.565 MB / 1.127 GB, free: 85.79 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001814/2.569, allocations: 83.98 kB / 1.127 GB, free: 85.71 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004209/2.573, allocations: 327.5 kB / 1.127 GB, free: 85.39 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/2.574, allocations: 311.9 kB / 1.127 GB, free: 85.09 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003476/2.574, allocations: 113.4 kB / 1.127 GB, free: 84.98 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007336/2.582, allocations: 4.784 MB / 1.132 GB, free: 80.23 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.31e-07/2.582, allocations: 3.969 kB / 1.132 GB, free: 80.23 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01131/2.593, allocations: 2.427 MB / 1.134 GB, free: 77.81 MB / 0.4982 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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 116} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001113/2.594, allocations: 266.6 kB / 1.135 GB, free: 77.56 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01737/2.611, allocations: 12.65 MB / 1.147 GB, free: 64.98 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/2.612, allocations: 4 kB / 1.147 GB, free: 64.98 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007953/2.619, allocations: 5.333 MB / 1.152 GB, free: 59.63 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007415/2.627, allocations: 1.033 MB / 1.153 GB, free: 58.62 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03824/2.665, allocations: 25.89 MB / 1.179 GB, free: 32.87 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2179/2.883, allocations: 6.384 MB / 1.185 GB, free: 173.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01006/2.893, allocations: 2.96 MB / 1.188 GB, free: 173.7 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/2.895, allocations: 435.5 kB / 1.188 GB, free: 173.6 MB / 0.4982 GB Notification: Performance of SimCode: time 1.082e-06/2.895, allocations: 0 / 1.188 GB, free: 173.6 MB / 0.4982 GB Notification: Performance of Templates: time 0.1641/3.06, allocations: 103.8 MB / 1.289 GB, free: 96.42 MB / 0.4982 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches