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.001446/0.001446, allocations: 112.5 kB / 17.06 MB, free: 5.945 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.00164/0.00164, allocations: 196.1 kB / 18.01 MB, free: 5.027 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 51.92 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2772, allocations: 49.42 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01899/0.2962, allocations: 19.44 MB / 420.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01317/0.3094, allocations: 5.964 MB / 426.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003917/0.3134, allocations: 155.4 kB / 426.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01042/0.3238, allocations: 5.86 MB / 432.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008013/0.3319, allocations: 3.326 MB / 435.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003545/0.3354, allocations: 1.568 MB / 437 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01564/0.3511, allocations: 12.37 MB / 449.4 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01047/0.3616, allocations: 7.65 MB / 457.1 MB, free: 280 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006086/0.3677, allocations: 3.548 MB / 460.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007211/0.375, allocations: 4.736 MB / 465.4 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002435/0.3774, allocations: 0.7148 MB / 466.1 MB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004967/0.3824, allocations: 1.678 MB / 467.7 MB, free: 5.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00546/0.3879, allocations: 4.205 MB / 472 MB, free: 1.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006975/0.3949, allocations: 4.468 MB / 476.4 MB, free: 12.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01602/0.4109, allocations: 13.71 MB / 490.1 MB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.411, allocations: 3.938 kB / 490.1 MB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.411, allocations: 0 / 490.1 MB, free: 15.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000444/0.4115, allocations: 0 / 490.1 MB, free: 15.1 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.02239/0.4339, allocations: 9.925 MB / 0.4883 GB, free: 5.074 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.4339, allocations: 8.031 kB / 0.4883 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04496/0.4789, allocations: 5.293 MB / 0.4935 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01895/0.4979, allocations: 8.093 MB / 0.5014 GB, free: 7.605 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/0.4983, allocations: 431.4 kB / 0.5018 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001886/0.5001, allocations: 0.5816 MB / 0.5024 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/0.5287, allocations: 16.55 MB / 0.5186 GB, free: 4.992 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002757/0.529, allocations: 99.28 kB / 0.5187 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008269/0.5299, allocations: 263.8 kB / 0.5189 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004261/0.5341, allocations: 2.764 MB / 0.5216 GB, free: 1.867 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02707/0.5612, allocations: 13.63 MB / 0.5349 GB, free: 4.223 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.4525/1.014, allocations: 67.84 MB / 0.6012 GB, free: 69.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/1.031, allocations: 7.918 MB / 0.6089 GB, free: 61.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004576/1.036, allocations: 4.518 MB / 0.6133 GB, free: 56.58 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/1.052, allocations: 12.41 MB / 0.6254 GB, free: 44.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/1.052, allocations: 68.5 kB / 0.6255 GB, free: 44.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.921e-06/1.052, allocations: 2.031 kB / 0.6255 GB, free: 44.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1731/1.225, allocations: 50.55 MB / 0.6749 GB, free: 10.01 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001952/1.225, allocations: 394.1 kB / 0.6752 GB, free: 9.539 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00965/1.235, allocations: 7.136 MB / 0.6822 GB, free: 2.527 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007546/1.236, allocations: 77.7 kB / 0.6823 GB, free: 2.445 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003416/1.239, allocations: 5.19 MB / 0.6874 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00164/1.241, allocations: 1.318 MB / 0.6886 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002697/1.243, allocations: 1.881 MB / 0.6905 GB, free: 10.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.249e-05/1.243, allocations: 304.9 kB / 0.6908 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006469/1.25, allocations: 4.547 MB / 0.6952 GB, free: 5.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/1.26, allocations: 9.263 MB / 0.7043 GB, free: 9.996 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01843/1.279, allocations: 14.55 MB / 0.7185 GB, free: 9.172 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.731e-05/1.279, allocations: 44 kB / 0.7185 GB, free: 9.129 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04428/1.323, allocations: 19.78 MB / 0.7378 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/1.323, allocations: 72 kB / 0.7379 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/1.324, allocations: 160 kB / 0.738 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2445/1.568, allocations: 7.071 MB / 0.7449 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005512/1.574, allocations: 1.921 MB / 0.7468 GB, free: 182 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04092/1.615, allocations: 35.33 MB / 0.7813 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007297/1.622, allocations: 0.5822 MB / 0.7819 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009246/1.623, allocations: 499.3 kB / 0.7824 GB, free: 165.4 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.004248/1.627, allocations: 3.476 MB / 0.7858 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.628, allocations: 0.6663 MB / 0.7864 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02497/1.653, allocations: 13.31 MB / 0.7994 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/1.653, allocations: 39.83 kB / 0.7994 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.251e-05/1.653, allocations: 24.56 kB / 0.7995 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.668e-05/1.653, allocations: 15.94 kB / 0.7995 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04411/1.697, allocations: 26.57 MB / 0.8254 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.17e-05/1.698, allocations: 8.25 kB / 0.8254 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.7, allocations: 423.3 kB / 0.8258 GB, free: 121.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01885/1.718, allocations: 6.644 MB / 0.8323 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005596/1.719, allocations: 67.81 kB / 0.8324 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03705/1.756, allocations: 34.01 MB / 0.8656 GB, free: 81.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/1.756, allocations: 13.69 kB / 0.8656 GB, free: 81.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03053/1.787, allocations: 18.81 MB / 0.884 GB, free: 62.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.789, allocations: 0.7277 MB / 0.8847 GB, free: 61.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/1.79, allocations: 60.06 kB / 0.8848 GB, free: 61.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.793, allocations: 310.9 kB / 0.8851 GB, free: 61.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000888/1.794, allocations: 250.5 kB / 0.8853 GB, free: 60.97 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000282/1.794, allocations: 84 kB / 0.8854 GB, free: 60.89 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005875/1.8, allocations: 4.559 MB / 0.8898 GB, free: 56.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/1.8, allocations: 0 / 0.8898 GB, free: 56.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00906/1.809, allocations: 2.135 MB / 0.8919 GB, free: 54.23 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.0008403/1.81, allocations: 211 kB / 0.8921 GB, free: 54.02 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01607/1.826, allocations: 11.64 MB / 0.9035 GB, free: 42.35 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/1.826, allocations: 4 kB / 0.9035 GB, free: 42.34 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007472/1.834, allocations: 5.012 MB / 0.9084 GB, free: 37.29 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006269/1.84, allocations: 0.9959 MB / 0.9093 GB, free: 36.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02932/1.869, allocations: 19.8 MB / 0.9287 GB, free: 16.39 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006614/1.876, allocations: 5.531 MB / 0.9341 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006113/1.882, allocations: 2.601 MB / 0.9366 GB, free: 8.211 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.883, allocations: 391.4 kB / 0.937 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of SimCode: time 7.52e-07/1.883, allocations: 0 / 0.937 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of Templates: time 0.3693/2.253, allocations: 93.94 MB / 1.029 GB, free: 103.7 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