Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 102.5 kB / 17.05 MB, free: 6.125 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.00112/0.00112, allocations: 194.9 kB / 18 MB, free: 5.199 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 47.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.312, allocations: 49.44 MB / 400.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01829/0.3303, allocations: 19.43 MB / 420.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.344, allocations: 5.971 MB / 426.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005196/0.3493, allocations: 151.5 kB / 426.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.3615, allocations: 5.852 MB / 432.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009528/0.3712, allocations: 3.443 MB / 435.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003922/0.3751, allocations: 1.564 MB / 437.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01822/0.3933, allocations: 12.37 MB / 449.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01264/0.406, allocations: 7.635 MB / 457.2 MB, free: 368 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008092/0.4142, allocations: 3.583 MB / 460.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008456/0.4227, allocations: 4.748 MB / 465.5 MB, free: 8.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0038/0.4265, allocations: 0.7148 MB / 466.2 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006254/0.4328, allocations: 1.686 MB / 467.9 MB, free: 5.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006942/0.4398, allocations: 4.275 MB / 472.2 MB, free: 1.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008907/0.4487, allocations: 4.468 MB / 476.6 MB, free: 12.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02126/0.47, allocations: 13.66 MB / 490.3 MB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.4701, allocations: 0 / 490.3 MB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4701, allocations: 0 / 490.3 MB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005343/0.4706, allocations: 4 kB / 490.3 MB, free: 15.12 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02758/0.4982, allocations: 9.66 MB / 500 MB, free: 5.367 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.4983, allocations: 12.03 kB / 500 MB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04104/0.5393, allocations: 5.236 MB / 0.4934 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02256/0.5619, allocations: 8.065 MB / 0.5013 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004935/0.5625, allocations: 423.4 kB / 0.5017 GB, free: 7.555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003244/0.5657, allocations: 0.5892 MB / 0.5022 GB, free: 6.965 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03511/0.6009, allocations: 16.55 MB / 0.5184 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003491/0.6013, allocations: 95.17 kB / 0.5185 GB, free: 5.262 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00117/0.6024, allocations: 267.8 kB / 0.5187 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004543/0.607, allocations: 2.768 MB / 0.5214 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03398/0.641, allocations: 13.63 MB / 0.5348 GB, free: 4.582 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.5275/1.169, allocations: 67.73 MB / 0.6009 GB, free: 70 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01708/1.186, allocations: 7.919 MB / 0.6086 GB, free: 61.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00468/1.19, allocations: 4.515 MB / 0.613 GB, free: 57.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/1.206, allocations: 12.39 MB / 0.6251 GB, free: 45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/1.206, allocations: 64.5 kB / 0.6252 GB, free: 44.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 6.282e-06/1.206, allocations: 0 / 0.6252 GB, free: 44.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1603/1.367, allocations: 50.14 MB / 0.6742 GB, free: 10.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002191/1.367, allocations: 402.1 kB / 0.6745 GB, free: 10.39 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01266/1.38, allocations: 7.119 MB / 0.6815 GB, free: 3.293 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009176/1.381, allocations: 73.7 kB / 0.6816 GB, free: 3.215 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004202/1.385, allocations: 5.032 MB / 0.6865 GB, free: 14.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001916/1.387, allocations: 1.253 MB / 0.6877 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003161/1.39, allocations: 1.868 MB / 0.6895 GB, free: 10.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/1.39, allocations: 301.1 kB / 0.6898 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006678/1.397, allocations: 4.543 MB / 0.6943 GB, free: 6.121 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01087/1.408, allocations: 9.271 MB / 0.7033 GB, free: 10.56 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01888/1.426, allocations: 14.53 MB / 0.7175 GB, free: 9.75 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/1.427, allocations: 48 kB / 0.7175 GB, free: 9.703 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04867/1.475, allocations: 19.75 MB / 0.7368 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002246/1.476, allocations: 79.94 kB / 0.7369 GB, free: 5.812 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003376/1.476, allocations: 160 kB / 0.7371 GB, free: 5.656 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2732/1.749, allocations: 7.045 MB / 0.7439 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006614/1.756, allocations: 1.927 MB / 0.7458 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04015/1.796, allocations: 35.31 MB / 0.7803 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007496/1.804, allocations: 0.5834 MB / 0.7809 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001454/1.805, allocations: 499.8 kB / 0.7814 GB, free: 165.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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,93,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.005366/1.81, allocations: 3.472 MB / 0.7847 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/1.812, allocations: 0.6356 MB / 0.7854 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02348/1.835, allocations: 13.32 MB / 0.7984 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.636e-05/1.835, allocations: 47.12 kB / 0.7984 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.911e-05/1.835, allocations: 20 kB / 0.7984 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.205e-05/1.835, allocations: 11.95 kB / 0.7984 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04138/1.877, allocations: 26.56 MB / 0.8244 GB, free: 123 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-05/1.877, allocations: 8 kB / 0.8244 GB, free: 123 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/1.879, allocations: 415.3 kB / 0.8248 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01653/1.895, allocations: 6.645 MB / 0.8313 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006946/1.896, allocations: 60 kB / 0.8313 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03627/1.932, allocations: 33.99 MB / 0.8645 GB, free: 81.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/1.932, allocations: 11.92 kB / 0.8645 GB, free: 81.76 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03041/1.963, allocations: 18.78 MB / 0.8829 GB, free: 63.05 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/1.965, allocations: 0.6903 MB / 0.8836 GB, free: 62.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002596/1.967, allocations: 60 kB / 0.8836 GB, free: 62.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005605/1.973, allocations: 307.7 kB / 0.8839 GB, free: 61.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001606/1.974, allocations: 241.8 kB / 0.8841 GB, free: 61.74 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008028/1.975, allocations: 92 kB / 0.8842 GB, free: 61.65 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.009219/1.984, allocations: 4.563 MB / 0.8887 GB, free: 57.12 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.282e-06/1.985, allocations: 0 / 0.8887 GB, free: 57.12 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01204/1.997, allocations: 2.145 MB / 0.8908 GB, free: 54.99 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.001235/1.998, allocations: 212.5 kB / 0.891 GB, free: 54.78 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01927/2.017, allocations: 11.62 MB / 0.9023 GB, free: 43.14 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.125e-05/2.017, allocations: 0 / 0.9023 GB, free: 43.14 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008908/2.026, allocations: 5.01 MB / 0.9072 GB, free: 38.09 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008208/2.034, allocations: 0.9866 MB / 0.9082 GB, free: 37.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03277/2.067, allocations: 19.54 MB / 0.9273 GB, free: 17.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006848/2.074, allocations: 5.527 MB / 0.9327 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005735/2.08, allocations: 2.601 MB / 0.9352 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/2.081, allocations: 391.4 kB / 0.9356 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/2.081, allocations: 0 / 0.9356 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of Templates: time 0.3843/2.466, allocations: 93.94 MB / 1.027 GB, free: 104.8 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches