Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009891/0.0009891, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 147 kB / 25.6 MB, free: 8.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9763/0.9763, allocations: 173.4 MB / 202.2 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.916e-05/2.043e-05, allocations: 3.344 kB / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01364/0.01366, allocations: 19.26 MB / 288.5 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.02562, allocations: 6.086 MB / 294.6 MB, free: 396 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003465/0.02909, allocations: 202.8 kB / 294.8 MB, free: 192 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006995/0.03608, allocations: 6.736 MB / 301.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006844/0.04293, allocations: 3.67 MB / 305.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002732/0.04566, allocations: 1.922 MB / 307.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01416/0.05982, allocations: 14.58 MB / 321.7 MB, free: 5.203 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.06982, allocations: 8.087 MB / 329.8 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01474/0.08456, allocations: 8.688 MB / 338.5 MB, free: 4.328 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1491/0.2337, allocations: 5.929 MB / 344.4 MB, free: 36.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002759/0.2364, allocations: 0.7851 MB / 345.2 MB, free: 36.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004075/0.2405, allocations: 1.712 MB / 346.9 MB, free: 36.68 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004947/0.2455, allocations: 4.822 MB / 351.7 MB, free: 36.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005223/0.2507, allocations: 2.952 MB / 354.7 MB, free: 36.68 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.2644, allocations: 9.376 MB / 364 MB, free: 35.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046e-05/0.2644, allocations: 0.5625 kB / 364 MB, free: 35.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.2644, allocations: 0 / 364 MB, free: 35.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005428/0.2649, allocations: 1.969 kB / 364.1 MB, free: 35.7 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.01812/0.2831, allocations: 10.34 MB / 374.4 MB, free: 30.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2831, allocations: 7.844 kB / 374.4 MB, free: 30.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0216/0.3047, allocations: 5.085 MB / 379.5 MB, free: 29.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008936/0.3136, allocations: 5.491 MB / 385 MB, free: 24.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/0.3139, allocations: 446.1 kB / 385.4 MB, free: 24.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.3152, allocations: 0.6176 MB / 386 MB, free: 23.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.3298, allocations: 9.637 MB / 395.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003023/0.3301, allocations: 93.56 kB / 395.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006787/0.3308, allocations: 282.5 kB / 396 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001943/0.3327, allocations: 2.614 MB / 398.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.3435, allocations: 4.191 MB / 402.8 MB, free: 6.746 MB / 314.7 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.07666/0.4201, allocations: 71.09 MB / 473.9 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.4309, allocations: 3.45 MB / 477.4 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.4327, allocations: 0.9499 MB / 478.3 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01505/0.4477, allocations: 7.159 MB / 485.5 MB, free: 4.566 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/0.4478, allocations: 67.39 kB / 485.6 MB, free: 4.492 MB / 394.7 MB Notification: Performance of pre-optimization done (n=261): time 6.142e-06/0.4478, allocations: 0 / 485.6 MB, free: 4.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=317): time 0.1848/0.6326, allocations: 18.45 MB / 0.4922 GB, free: 130.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.6327, allocations: 397.7 kB / 0.4926 GB, free: 130.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004755/0.6374, allocations: 6.266 MB / 0.4987 GB, free: 129.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.6376, allocations: 74.61 kB / 0.4988 GB, free: 129.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002248/0.6398, allocations: 5.806 MB / 0.5044 GB, free: 126.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006601/0.6405, allocations: 1.279 MB / 0.5057 GB, free: 125.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/0.642, allocations: 2.03 MB / 0.5077 GB, free: 125 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.6421, allocations: 484 kB / 0.5081 GB, free: 124.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.6435, allocations: 0.961 MB / 0.5091 GB, free: 124.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003468/0.6469, allocations: 8.752 MB / 0.5176 GB, free: 113.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005422/0.6524, allocations: 10.27 MB / 0.5276 GB, free: 100.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-05/0.6524, allocations: 52 kB / 0.5277 GB, free: 100.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.01102/0.6634, allocations: 7.817 MB / 0.5353 GB, free: 93.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.699e-05/0.6635, allocations: 86.64 kB / 0.5354 GB, free: 93.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.6636, allocations: 180.1 kB / 0.5356 GB, free: 92.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003691/0.6673, allocations: 1.327 MB / 0.5369 GB, free: 91.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/0.6716, allocations: 2.047 MB / 0.5389 GB, free: 89.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/0.6782, allocations: 6.943 MB / 0.5457 GB, free: 82.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005304/0.6836, allocations: 379.7 kB / 0.546 GB, free: 82.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000481/0.684, allocations: 444 kB / 0.5464 GB, free: 81.58 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 802 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (1133): * Single equations (assignments): 1126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,46,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002141/0.6862, allocations: 0.9011 MB / 0.5473 GB, free: 80.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007926/0.687, allocations: 0.7263 MB / 0.548 GB, free: 79.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004423/0.6914, allocations: 2.634 MB / 0.5506 GB, free: 77.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.6914, allocations: 32 kB / 0.5506 GB, free: 77.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.6914, allocations: 12 kB / 0.5506 GB, free: 77.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/0.6914, allocations: 13.73 kB / 0.5507 GB, free: 77.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.7054, allocations: 10.98 MB / 0.5614 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.7054, allocations: 28.09 kB / 0.5614 GB, free: 65.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009489/0.7063, allocations: 471.2 kB / 0.5619 GB, free: 65.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00254/0.7089, allocations: 1.091 MB / 0.5629 GB, free: 64.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.709, allocations: 72 kB / 0.563 GB, free: 64.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004733/0.7137, allocations: 6.46 MB / 0.5693 GB, free: 57.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.938e-06/0.7137, allocations: 31.88 kB / 0.5693 GB, free: 57.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00467/0.7184, allocations: 4.762 MB / 0.574 GB, free: 52.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.7196, allocations: 0.9288 MB / 0.5749 GB, free: 51.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004905/0.7201, allocations: 85.72 kB / 0.575 GB, free: 51.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.7214, allocations: 87.97 kB / 0.5751 GB, free: 51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002875/0.7217, allocations: 281 kB / 0.5753 GB, free: 50.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.7218, allocations: 88 kB / 0.5754 GB, free: 50.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00209/0.7239, allocations: 2.711 MB / 0.578 GB, free: 47.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7239, allocations: 0 / 0.578 GB, free: 47.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005027/0.7289, allocations: 2.117 MB / 0.5801 GB, free: 45.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (261): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,42,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003907/0.7293, allocations: 262.4 kB / 0.5804 GB, free: 45.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004559/0.7339, allocations: 4.593 MB / 0.5849 GB, free: 40.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.7339, allocations: 4 kB / 0.5849 GB, free: 40.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.7354, allocations: 1.532 MB / 0.5864 GB, free: 39.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.7381, allocations: 0.9766 MB / 0.5873 GB, free: 38.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/0.7531, allocations: 14.97 MB / 0.6019 GB, free: 22.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.7548, allocations: 2.39 MB / 0.6043 GB, free: 20.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001911/0.7567, allocations: 0.8663 MB / 0.6051 GB, free: 19.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.7582, allocations: 1.154 MB / 0.6062 GB, free: 18.52 MB / 394.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7582, allocations: 3.938 kB / 0.6062 GB, free: 18.51 MB / 394.7 MB Notification: Performance of Templates: time 0.2111/0.9693, allocations: 74.58 MB / 0.6791 GB, free: 73.52 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.366684900131077]