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.001462/0.001462, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001665/0.001665, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9202/0.9202, allocations: 177.1 MB / 205 MB, free: 5.645 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.262e-06/1.262e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.716e-05, allocations: 6.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1132/0.1132, allocations: 19.94 MB / 293 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009474/0.1227, allocations: 6.123 MB / 299.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.125, allocations: 200.8 kB / 299.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00631/0.1313, allocations: 6.85 MB / 306.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005435/0.1368, allocations: 3.627 MB / 309.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002234/0.139, allocations: 1.923 MB / 311.7 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009633/0.1486, allocations: 15.1 MB / 326.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006732/0.1554, allocations: 8.077 MB / 334.9 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007926/0.1633, allocations: 8.614 MB / 343.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005395/0.1687, allocations: 5.924 MB / 349.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001418/0.1701, allocations: 0.7852 MB / 350.2 MB, free: 4.434 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.1723, allocations: 1.701 MB / 351.9 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0029/0.1752, allocations: 4.793 MB / 356.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.1782, allocations: 2.926 MB / 359.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007471/0.1857, allocations: 9.309 MB / 368.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1857, allocations: 3.984 kB / 368.9 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1857, allocations: 0 / 368.9 MB, free: 1.645 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.543e-05/0.1858, allocations: 0 / 368.9 MB, free: 1.645 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.01149/0.1973, allocations: 11.11 MB / 380 MB, free: 6.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1973, allocations: 12.03 kB / 380 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02101/0.2183, allocations: 6.035 MB / 386.1 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008625/0.227, allocations: 6.308 MB / 392.4 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.2272, allocations: 444 kB / 392.8 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006919/0.2279, allocations: 0.6142 MB / 393.4 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/0.2412, allocations: 10.72 MB / 404.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/0.2413, allocations: 99.25 kB / 404.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000447/0.2418, allocations: 279.8 kB / 404.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002189/0.244, allocations: 2.769 MB / 407.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.255, allocations: 5.426 MB / 412.7 MB, free: 4.148 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.2485/0.5035, allocations: 72.33 MB / 485 MB, free: 53.85 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008795/0.5123, allocations: 4.058 MB / 489.1 MB, free: 53.66 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.5137, allocations: 1.121 MB / 490.2 MB, free: 53.61 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00918/0.5229, allocations: 7.641 MB / 497.9 MB, free: 51.89 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.5229, allocations: 61.08 kB / 497.9 MB, free: 51.83 MB / 378.8 MB Notification: Performance of pre-optimization done (n=260): time 4.438e-06/0.5229, allocations: 0 / 497.9 MB, free: 51.83 MB / 378.8 MB Notification: Performance of matching and sorting (n=316): time 0.06471/0.5876, allocations: 25.74 MB / 0.5114 GB, free: 35.5 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.5877, allocations: 393.9 kB / 0.5118 GB, free: 35.02 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006227/0.5939, allocations: 6.35 MB / 0.518 GB, free: 28.91 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001629/0.5941, allocations: 73.7 kB / 0.518 GB, free: 28.84 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.5961, allocations: 5.757 MB / 0.5237 GB, free: 23.67 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006174/0.5967, allocations: 1.267 MB / 0.5249 GB, free: 22.42 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.5981, allocations: 1.978 MB / 0.5268 GB, free: 20.43 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.667e-05/0.5982, allocations: 480.7 kB / 0.5273 GB, free: 19.95 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.5996, allocations: 1.076 MB / 0.5283 GB, free: 18.87 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003201/0.6028, allocations: 8.814 MB / 0.5369 GB, free: 6.66 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/0.6109, allocations: 10.61 MB / 0.5473 GB, free: 9.008 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.106e-05/0.6109, allocations: 52 kB / 0.5474 GB, free: 8.957 MB / 394.8 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0113/0.6222, allocations: 8.694 MB / 0.5558 GB, free: 220 kB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.873e-05/0.6223, allocations: 83.94 kB / 0.5559 GB, free: 136 kB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/0.6225, allocations: 176 kB / 0.5561 GB, free: 15.95 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003776/0.6262, allocations: 1.688 MB / 0.5577 GB, free: 14.26 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.63, allocations: 2.121 MB / 0.5598 GB, free: 12.13 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007647/0.6376, allocations: 7.447 MB / 0.5671 GB, free: 4.449 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.6417, allocations: 0.6125 MB / 0.5677 GB, free: 3.836 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004527/0.6422, allocations: 0.5194 MB / 0.5682 GB, free: 3.32 MB / 410.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.001905/0.6441, allocations: 0.9057 MB / 0.5691 GB, free: 2.406 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007454/0.6448, allocations: 0.7262 MB / 0.5698 GB, free: 1.676 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1239/0.7687, allocations: 3.134 MB / 0.5728 GB, free: 124.4 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.455e-05/0.7688, allocations: 31.94 kB / 0.5729 GB, free: 124.4 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.413e-05/0.7688, allocations: 10.39 kB / 0.5729 GB, free: 124.4 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.611e-05/0.7688, allocations: 15.06 kB / 0.5729 GB, free: 124.4 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01961/0.7884, allocations: 11.79 MB / 0.5844 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/0.7885, allocations: 24.97 kB / 0.5844 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.7896, allocations: 0.5358 MB / 0.585 GB, free: 122.7 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003324/0.793, allocations: 1.432 MB / 0.5864 GB, free: 122.6 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/0.7932, allocations: 85.66 kB / 0.5864 GB, free: 122.6 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006116/0.7993, allocations: 6.905 MB / 0.5932 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.7993, allocations: 32.06 kB / 0.5932 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006753/0.8061, allocations: 5.37 MB / 0.5985 GB, free: 116.4 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.8072, allocations: 0.6994 MB / 0.5991 GB, free: 116.4 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005814/0.8078, allocations: 82.92 kB / 0.5992 GB, free: 116.3 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.8093, allocations: 282.2 kB / 0.5995 GB, free: 116.3 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.8097, allocations: 279.6 kB / 0.5998 GB, free: 116.2 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.8098, allocations: 107.4 kB / 0.5999 GB, free: 116.2 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003339/0.8132, allocations: 2.949 MB / 0.6027 GB, free: 115.4 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8132, allocations: 0 / 0.6027 GB, free: 115.4 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005272/0.8184, allocations: 2.081 MB / 0.6048 GB, free: 115.1 MB / 410.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.0004367/0.8189, allocations: 266 kB / 0.605 GB, free: 114.9 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.006201/0.8251, allocations: 5.076 MB / 0.61 GB, free: 110.7 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.8251, allocations: 4 kB / 0.61 GB, free: 110.6 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.827, allocations: 1.756 MB / 0.6117 GB, free: 109.2 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.8297, allocations: 0.9939 MB / 0.6127 GB, free: 108.4 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.8452, allocations: 15.02 MB / 0.6273 GB, free: 93.11 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001662/0.8468, allocations: 2.381 MB / 0.6297 GB, free: 90.7 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.00329/0.8501, allocations: 2.292 MB / 0.6319 GB, free: 88.4 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007042/0.8508, allocations: 412.4 kB / 0.6323 GB, free: 88 MB / 410.8 MB Notification: Performance of SimCode: time 1.893e-06/0.8508, allocations: 0 / 0.6323 GB, free: 88 MB / 410.8 MB Notification: Performance of Templates: time 0.1346/0.9855, allocations: 69.73 MB / 0.7004 GB, free: 19.32 MB / 410.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.9319160990417]