Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009365/0.0009365, allocations: 77.88 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009749/0.0009749, allocations: 169.3 kB / 24.82 MB, free: 8.867 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9725/0.9725, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.064e-05, allocations: 2.312 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.129/0.1291, allocations: 19.17 MB / 292.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.1396, allocations: 6.091 MB / 298.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003508/0.1431, allocations: 201.1 kB / 298.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007286/0.1504, allocations: 6.713 MB / 305.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007145/0.1575, allocations: 3.636 MB / 309.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0028/0.1603, allocations: 1.918 MB / 311.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01125/0.1716, allocations: 15.1 MB / 326.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008493/0.1801, allocations: 8.076 MB / 334.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01144/0.1915, allocations: 8.66 MB / 343 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006941/0.1985, allocations: 5.92 MB / 348.9 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001921/0.2004, allocations: 0.7852 MB / 349.7 MB, free: 4.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003762/0.2041, allocations: 1.701 MB / 351.4 MB, free: 3.078 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004916/0.2091, allocations: 4.789 MB / 356.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006194/0.2153, allocations: 2.937 MB / 359.1 MB, free: 11.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.2273, allocations: 9.305 MB / 368.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2273, allocations: 0 / 368.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2273, allocations: 4 kB / 368.4 MB, free: 1.988 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003547/0.2277, allocations: 0 / 368.4 MB, free: 1.988 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.01688/0.2445, allocations: 10.31 MB / 378.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.2446, allocations: 8.031 kB / 378.8 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02069/0.2653, allocations: 5.088 MB / 383.9 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00931/0.2746, allocations: 5.48 MB / 389.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/0.2749, allocations: 452 kB / 389.8 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00128/0.2762, allocations: 0.6093 MB / 390.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.2903, allocations: 9.655 MB / 400 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000239/0.2906, allocations: 91.23 kB / 400.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005341/0.2911, allocations: 279.8 kB / 400.4 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/0.2935, allocations: 2.609 MB / 403 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.3036, allocations: 4.194 MB / 407.2 MB, free: 9.527 MB / 362.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.2901/0.5937, allocations: 71.07 MB / 478.3 MB, free: 59.33 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008913/0.6026, allocations: 3.42 MB / 481.7 MB, free: 59.14 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.604, allocations: 0.9413 MB / 482.6 MB, free: 59.09 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.6145, allocations: 7.168 MB / 489.8 MB, free: 57.29 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.6145, allocations: 63.39 kB / 489.9 MB, free: 57.23 MB / 378.8 MB Notification: Performance of pre-optimization done (n=260): time 5.26e-06/0.6145, allocations: 0 / 489.9 MB, free: 57.23 MB / 378.8 MB Notification: Performance of matching and sorting (n=316): time 0.04607/0.6606, allocations: 18.45 MB / 0.4964 GB, free: 46.78 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.6607, allocations: 397.9 kB / 0.4968 GB, free: 46.3 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004304/0.665, allocations: 6.258 MB / 0.5029 GB, free: 41.04 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002377/0.6652, allocations: 73.7 kB / 0.503 GB, free: 40.96 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001883/0.6671, allocations: 5.812 MB / 0.5086 GB, free: 35.67 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006913/0.6678, allocations: 1.271 MB / 0.5099 GB, free: 34.39 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/0.6696, allocations: 2.025 MB / 0.5119 GB, free: 32.35 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.511e-05/0.6696, allocations: 480.8 kB / 0.5123 GB, free: 31.88 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.6713, allocations: 0.9589 MB / 0.5133 GB, free: 30.91 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003786/0.675, allocations: 8.754 MB / 0.5218 GB, free: 18.77 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006353/0.6814, allocations: 10.28 MB / 0.5318 GB, free: 5.48 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.164e-05/0.6815, allocations: 56 kB / 0.5319 GB, free: 5.426 MB / 378.8 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.01217/0.6936, allocations: 7.811 MB / 0.5395 GB, free: 13.57 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.892e-05/0.6937, allocations: 80 kB / 0.5396 GB, free: 13.49 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/0.6939, allocations: 176 kB / 0.5398 GB, free: 13.32 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003987/0.6979, allocations: 1.32 MB / 0.5411 GB, free: 11.98 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005476/0.7034, allocations: 2.043 MB / 0.5431 GB, free: 9.934 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008638/0.712, allocations: 6.936 MB / 0.5498 GB, free: 2.77 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/0.7188, allocations: 387.6 kB / 0.5502 GB, free: 2.391 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/0.72, allocations: 448 kB / 0.5506 GB, free: 1.953 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 (1132): * Single equations (assignments): 1125 * 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,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002786/0.7228, allocations: 0.8976 MB / 0.5515 GB, free: 1.047 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/0.7245, allocations: 0.7301 MB / 0.5522 GB, free: 320 kB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005159/0.7297, allocations: 2.618 MB / 0.5548 GB, free: 13.62 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.266e-05/0.7297, allocations: 39.97 kB / 0.5548 GB, free: 13.58 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/0.7297, allocations: 14.95 kB / 0.5548 GB, free: 13.57 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/0.7298, allocations: 11.95 kB / 0.5548 GB, free: 13.56 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01958/0.7494, allocations: 10.96 MB / 0.5655 GB, free: 2.16 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/0.7494, allocations: 23.94 kB / 0.5656 GB, free: 2.137 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.7505, allocations: 467.3 kB / 0.566 GB, free: 1.68 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002836/0.7533, allocations: 1.096 MB / 0.5671 GB, free: 0.5742 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/0.7535, allocations: 72 kB / 0.5671 GB, free: 0.5039 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006271/0.7598, allocations: 6.455 MB / 0.5734 GB, free: 9.82 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.567e-05/0.7598, allocations: 35.81 kB / 0.5735 GB, free: 9.785 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006524/0.7663, allocations: 4.757 MB / 0.5781 GB, free: 4.48 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/0.7683, allocations: 0.6673 MB / 0.5788 GB, free: 3.809 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005384/0.7688, allocations: 79.97 kB / 0.5789 GB, free: 3.73 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.7702, allocations: 83.98 kB / 0.5789 GB, free: 3.648 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.7706, allocations: 281.1 kB / 0.5792 GB, free: 3.375 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/0.7707, allocations: 88 kB / 0.5793 GB, free: 3.289 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002967/0.7737, allocations: 2.707 MB / 0.5819 GB, free: 0.6016 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7737, allocations: 4.031 kB / 0.5819 GB, free: 0.5977 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.1519/0.9256, allocations: 2.083 MB / 0.584 GB, free: 137.4 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 (260): * Single equations (assignments): 253 * 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.0007805/0.9263, allocations: 265 kB / 0.5842 GB, free: 137.3 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.008709/0.935, allocations: 4.574 MB / 0.5887 GB, free: 136.8 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 2.688e-05/0.9351, allocations: 5.312 kB / 0.5887 GB, free: 136.8 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00266/0.9377, allocations: 1.532 MB / 0.5902 GB, free: 136.4 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/0.9429, allocations: 0.9963 MB / 0.5912 GB, free: 136.4 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.9649, allocations: 14.94 MB / 0.6058 GB, free: 129.8 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002966/0.9679, allocations: 2.392 MB / 0.6081 GB, free: 129.5 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003076/0.9709, allocations: 0.8741 MB / 0.6089 GB, free: 129.4 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/0.9728, allocations: 1.141 MB / 0.6101 GB, free: 129.4 MB / 426.8 MB Notification: Performance of SimCode: time 1.904e-06/0.9728, allocations: 0 / 0.6101 GB, free: 129.4 MB / 426.8 MB Notification: Performance of Templates: time 0.09569/1.068, allocations: 72.75 MB / 0.6811 GB, free: 63.48 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 4.999790316913277]