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.001016/0.001016, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001046/0.001046, allocations: 150.1 kB / 24.81 MB, free: 9.332 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.9977/0.9977, allocations: 173.4 MB / 201.4 MB, free: 9.195 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.503e-06/1.503e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.823e-05, allocations: 6.25 kB / 268.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01578/0.01579, allocations: 19.26 MB / 287.7 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1278/0.1435, allocations: 6.076 MB / 293.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.1461, allocations: 202.4 kB / 294 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006882/0.1529, allocations: 6.74 MB / 300.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.1584, allocations: 3.673 MB / 304.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.1605, allocations: 1.925 MB / 306.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008763/0.1692, allocations: 14.58 MB / 320.9 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007135/0.1764, allocations: 8.078 MB / 329 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009163/0.1855, allocations: 8.68 MB / 337.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006212/0.1917, allocations: 5.931 MB / 343.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001204/0.1929, allocations: 0.7852 MB / 344.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.1953, allocations: 1.714 MB / 346.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002944/0.1983, allocations: 4.826 MB / 350.9 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003898/0.2022, allocations: 2.955 MB / 353.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0128/0.2149, allocations: 9.368 MB / 363.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.215, allocations: 0 / 363.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.215, allocations: 0 / 363.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002672/0.2152, allocations: 0 / 363.2 MB, free: 9.723 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.0123/0.2275, allocations: 10.34 MB / 373.6 MB, free: 15.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2276, allocations: 8.922 kB / 373.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02285/0.2504, allocations: 5.088 MB / 378.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008987/0.2594, allocations: 5.5 MB / 384.2 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.2597, allocations: 452 kB / 384.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009626/0.2606, allocations: 0.6132 MB / 385.2 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.2742, allocations: 9.641 MB / 394.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002184/0.2744, allocations: 83.34 kB / 395 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000496/0.2749, allocations: 287.7 kB / 395.2 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002119/0.277, allocations: 2.617 MB / 397.9 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008459/0.2855, allocations: 4.197 MB / 402.1 MB, free: 1.238 MB / 346.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.2879/0.5734, allocations: 71.07 MB / 473.1 MB, free: 62.67 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5844, allocations: 3.45 MB / 476.6 MB, free: 62.48 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.586, allocations: 0.9438 MB / 477.5 MB, free: 62.43 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01306/0.5991, allocations: 7.154 MB / 484.7 MB, free: 61.43 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.244e-05/0.5991, allocations: 68.58 kB / 484.7 MB, free: 61.39 MB / 378.8 MB Notification: Performance of pre-optimization done (n=261): time 7.033e-06/0.5991, allocations: 0 / 484.7 MB, free: 61.39 MB / 378.8 MB Notification: Performance of matching and sorting (n=317): time 0.05715/0.6563, allocations: 18.48 MB / 0.4914 GB, free: 53.38 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.6564, allocations: 393.4 kB / 0.4918 GB, free: 52.91 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005473/0.6618, allocations: 6.275 MB / 0.4979 GB, free: 47.7 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004596/0.6623, allocations: 73.7 kB / 0.498 GB, free: 47.62 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002239/0.6645, allocations: 5.809 MB / 0.5037 GB, free: 42.34 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001034/0.6656, allocations: 1.275 MB / 0.5049 GB, free: 41.05 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001482/0.667, allocations: 2.032 MB / 0.5069 GB, free: 39.01 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.998e-05/0.6671, allocations: 480.7 kB / 0.5074 GB, free: 38.54 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.6685, allocations: 0.9589 MB / 0.5083 GB, free: 37.57 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003281/0.6718, allocations: 8.749 MB / 0.5168 GB, free: 25.43 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00596/0.6778, allocations: 10.29 MB / 0.5269 GB, free: 12.12 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/0.6779, allocations: 48 kB / 0.5269 GB, free: 12.08 MB / 378.8 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.01017/0.688, allocations: 7.824 MB / 0.5346 GB, free: 4.207 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.6881, allocations: 80 kB / 0.5347 GB, free: 4.129 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/0.6882, allocations: 176.1 kB / 0.5348 GB, free: 3.957 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/0.6911, allocations: 1.324 MB / 0.5361 GB, free: 2.621 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003303/0.6944, allocations: 2.039 MB / 0.5381 GB, free: 0.5781 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.7008, allocations: 6.942 MB / 0.5449 GB, free: 9.398 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005387/0.7062, allocations: 383.7 kB / 0.5453 GB, free: 9.023 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008733/0.7071, allocations: 456 kB / 0.5457 GB, free: 8.578 MB / 394.8 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.002424/0.7095, allocations: 0.9021 MB / 0.5466 GB, free: 7.66 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001415/0.7109, allocations: 0.7263 MB / 0.5473 GB, free: 6.93 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00405/0.715, allocations: 2.623 MB / 0.5498 GB, free: 4.234 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/0.715, allocations: 35.94 kB / 0.5499 GB, free: 4.199 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.715, allocations: 8 kB / 0.5499 GB, free: 4.191 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/0.715, allocations: 15.95 kB / 0.5499 GB, free: 4.176 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01752/0.7326, allocations: 10.98 MB / 0.5606 GB, free: 8.758 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/0.7326, allocations: 24.06 kB / 0.5606 GB, free: 8.734 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.7337, allocations: 471.3 kB / 0.5611 GB, free: 8.273 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002738/0.7364, allocations: 1.089 MB / 0.5622 GB, free: 7.172 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000194/0.7366, allocations: 76 kB / 0.5622 GB, free: 7.098 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006314/0.7429, allocations: 6.459 MB / 0.5685 GB, free: 420 kB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.5e-05/0.7429, allocations: 39.81 kB / 0.5686 GB, free: 380 kB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006952/0.7499, allocations: 4.758 MB / 0.5732 GB, free: 11.08 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002456/0.7523, allocations: 0.9402 MB / 0.5741 GB, free: 10.14 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009699/0.7533, allocations: 79.92 kB / 0.5742 GB, free: 10.06 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002022/0.7553, allocations: 91.97 kB / 0.5743 GB, free: 9.969 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/0.7557, allocations: 281 kB / 0.5746 GB, free: 9.691 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.7559, allocations: 88 kB / 0.5747 GB, free: 9.605 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003711/0.7596, allocations: 2.719 MB / 0.5773 GB, free: 6.906 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7596, allocations: 0 / 0.5773 GB, free: 6.906 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007958/0.7676, allocations: 2.109 MB / 0.5794 GB, free: 4.793 MB / 426.8 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.0006326/0.7682, allocations: 270.3 kB / 0.5796 GB, free: 4.516 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.1245/0.8926, allocations: 4.582 MB / 0.5841 GB, free: 147.5 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.95e-05/0.8927, allocations: 3.969 kB / 0.5841 GB, free: 147.5 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00296/0.8956, allocations: 1.521 MB / 0.5856 GB, free: 147.2 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004551/0.9002, allocations: 0.9838 MB / 0.5866 GB, free: 147.2 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/0.9208, allocations: 14.97 MB / 0.6012 GB, free: 140.6 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/0.9231, allocations: 2.386 MB / 0.6035 GB, free: 140.4 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002555/0.9257, allocations: 0.8792 MB / 0.6044 GB, free: 140.3 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/0.9275, allocations: 1.149 MB / 0.6055 GB, free: 140.2 MB / 426.8 MB Notification: Performance of SimCode: time 2.425e-06/0.9275, allocations: 2.516 kB / 0.6055 GB, free: 140.2 MB / 426.8 MB Notification: Performance of Templates: time 0.09698/1.024, allocations: 72.98 MB / 0.6768 GB, free: 78.5 MB / 426.8 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.102023037150502]