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.001665/0.001665, allocations: 101.7 kB / 17.59 MB, free: 5.418 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.002002/0.002002, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.386/1.386, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 51.61 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1296, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.03113/0.1608, allocations: 19.42 MB / 370.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.17/0.3309, allocations: 5.966 MB / 376.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004536/0.3354, allocations: 158.3 kB / 376.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01081/0.3463, allocations: 5.857 MB / 382.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00889/0.3552, allocations: 3.325 MB / 385.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003542/0.3588, allocations: 1.574 MB / 387 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01478/0.3736, allocations: 12.36 MB / 399.4 MB, free: 388 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009177/0.3828, allocations: 7.661 MB / 407.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006325/0.3892, allocations: 3.554 MB / 410.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006893/0.3961, allocations: 4.744 MB / 415.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002143/0.3983, allocations: 0.7109 MB / 416.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004427/0.4027, allocations: 1.678 MB / 417.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004981/0.4077, allocations: 4.198 MB / 421.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007132/0.4149, allocations: 4.46 MB / 426.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.4301, allocations: 13.34 MB / 439.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4302, allocations: 0 / 439.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4302, allocations: 0 / 439.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003887/0.4306, allocations: 0 / 439.7 MB, free: 9.508 MB / 350.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.02295/0.4535, allocations: 9.672 MB / 449.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4536, allocations: 12.03 kB / 449.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04743/0.501, allocations: 5.229 MB / 454.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01895/0.52, allocations: 7.875 MB / 462.5 MB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004393/0.5205, allocations: 433.7 kB / 463 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002738/0.5233, allocations: 0.5818 MB / 463.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/0.5568, allocations: 16.56 MB / 480.1 MB, free: 436 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003497/0.5572, allocations: 95.11 kB / 480.2 MB, free: 340 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001149/0.5584, allocations: 264 kB / 480.4 MB, free: 124 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004444/0.5629, allocations: 2.767 MB / 483.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02896/0.5918, allocations: 13.63 MB / 496.8 MB, free: 15.71 MB / 414.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.4169/1.009, allocations: 68.05 MB / 0.5517 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02072/1.03, allocations: 7.906 MB / 0.5594 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005859/1.035, allocations: 4.518 MB / 0.5638 GB, free: 99.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01924/1.055, allocations: 12.41 MB / 0.5759 GB, free: 94.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/1.055, allocations: 60.66 kB / 0.576 GB, free: 94.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.911e-06/1.055, allocations: 0 / 0.576 GB, free: 94.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1733/1.228, allocations: 50.13 MB / 0.6249 GB, free: 53.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/1.228, allocations: 402.1 kB / 0.6253 GB, free: 53.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00916/1.237, allocations: 7.115 MB / 0.6323 GB, free: 46.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008729/1.238, allocations: 77.7 kB / 0.6323 GB, free: 45.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002828/1.241, allocations: 5.022 MB / 0.6372 GB, free: 40.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/1.243, allocations: 1.254 MB / 0.6385 GB, free: 39.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002787/1.246, allocations: 1.864 MB / 0.6403 GB, free: 37.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.459e-05/1.246, allocations: 305.1 kB / 0.6406 GB, free: 37.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005946/1.252, allocations: 4.546 MB / 0.645 GB, free: 33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007922/1.26, allocations: 9.266 MB / 0.6541 GB, free: 21.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/1.274, allocations: 14.54 MB / 0.6683 GB, free: 4.758 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/1.275, allocations: 47.94 kB / 0.6683 GB, free: 4.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04546/1.32, allocations: 19.76 MB / 0.6876 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/1.32, allocations: 72 kB / 0.6877 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002564/1.321, allocations: 160 kB / 0.6878 GB, free: 0.668 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02249/1.343, allocations: 7.077 MB / 0.6947 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006961/1.35, allocations: 1.93 MB / 0.6966 GB, free: 7.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2319/1.582, allocations: 35.31 MB / 0.7311 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008715/1.591, allocations: 0.5791 MB / 0.7317 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001893/1.593, allocations: 497.6 kB / 0.7321 GB, free: 142.7 MB / 478.1 MB 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.006726/1.599, allocations: 3.477 MB / 0.7355 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/1.601, allocations: 0.631 MB / 0.7361 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02669/1.628, allocations: 13.32 MB / 0.7492 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.401e-05/1.628, allocations: 34.31 kB / 0.7492 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.5e-05/1.628, allocations: 22.42 kB / 0.7492 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.699e-05/1.628, allocations: 18.98 kB / 0.7492 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0489/1.677, allocations: 26.7 MB / 0.7753 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.396e-05/1.677, allocations: 9.875 kB / 0.7753 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/1.679, allocations: 415.4 kB / 0.7757 GB, free: 113.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.019/1.698, allocations: 6.667 MB / 0.7822 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/1.699, allocations: 67.48 kB / 0.7823 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03851/1.738, allocations: 34 MB / 0.8155 GB, free: 73.04 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.738, allocations: 7.938 kB / 0.8155 GB, free: 73.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03132/1.769, allocations: 18.77 MB / 0.8338 GB, free: 54.42 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001974/1.771, allocations: 0.6897 MB / 0.8345 GB, free: 53.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001665/1.773, allocations: 60 kB / 0.8346 GB, free: 53.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00377/1.776, allocations: 305.5 kB / 0.8348 GB, free: 53.36 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009112/1.777, allocations: 240.6 kB / 0.8351 GB, free: 53.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/1.778, allocations: 94.95 kB / 0.8352 GB, free: 53.04 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006489/1.784, allocations: 4.554 MB / 0.8396 GB, free: 48.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.072e-06/1.784, allocations: 0 / 0.8396 GB, free: 48.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009621/1.794, allocations: 2.139 MB / 0.8417 GB, free: 46.38 MB / 478.1 MB 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.0008313/1.795, allocations: 218 kB / 0.8419 GB, free: 46.17 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02216/1.817, allocations: 14.43 MB / 0.856 GB, free: 31.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/1.817, allocations: 0 / 0.856 GB, free: 31.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008027/1.825, allocations: 4.995 MB / 0.8609 GB, free: 26.71 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006225/1.831, allocations: 0.9939 MB / 0.8618 GB, free: 25.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2293/2.061, allocations: 20.34 MB / 0.8817 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01034/2.071, allocations: 5.455 MB / 0.887 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001718/2.073, allocations: 444.6 kB / 0.8875 GB, free: 146.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/2.073, allocations: 0.625 kB / 0.8875 GB, free: 146.9 MB / 478.1 MB Notification: Performance of Templates: time 0.436/2.509, allocations: 206.4 MB / 1.089 GB, free: 126 MB / 478.1 MB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/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