Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001161/0.001161, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001781/0.002942, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.00115/0.00115, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001548/0.002699, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9696/0.9696, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1883/1.158, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5062,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 222 MB, free: 32 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.388e-05/2.573e-05, allocations: 5.406 kB / 222 MB, free: 28 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01492/0.01495, allocations: 19.5 MB / 241.5 MB, free: 12.44 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.02938, allocations: 6.441 MB / 248 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004872/0.03425, allocations: 206.8 kB / 248.2 MB, free: 5.773 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008576/0.04283, allocations: 6.44 MB / 254.6 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009904/0.05273, allocations: 3.685 MB / 258.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003356/0.05609, allocations: 1.755 MB / 260 MB, free: 9.852 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01477/0.07086, allocations: 12.31 MB / 272.4 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.011/0.08186, allocations: 6.995 MB / 279.3 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1659/0.2478, allocations: 7.312 MB / 286.7 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.2588, allocations: 5.68 MB / 292.3 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004489/0.2632, allocations: 0.7867 MB / 293.1 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007803/0.2711, allocations: 1.743 MB / 294.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007564/0.2786, allocations: 4.316 MB / 299.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008186/0.2868, allocations: 2.378 MB / 301.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.3, allocations: 8.661 MB / 310.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.073e-05/0.3, allocations: 0 / 310.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3, allocations: 0 / 310.2 MB, free: 11.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0006356/0.3006, allocations: 3.188 kB / 310.2 MB, free: 11.9 MB / 282.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.02305/0.3237, allocations: 11.24 MB / 321.5 MB, free: 7.941 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3237, allocations: 11.22 kB / 321.5 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/0.3341, allocations: 2.292 MB / 323.8 MB, free: 6.645 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.3447, allocations: 5.28 MB / 329 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003038/0.345, allocations: 448.2 kB / 329.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.3462, allocations: 0.6189 MB / 330.1 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.3608, allocations: 8.723 MB / 338.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002508/0.361, allocations: 90.91 kB / 338.9 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006755/0.3617, allocations: 277.5 kB / 339.2 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002899/0.3646, allocations: 2.478 MB / 341.7 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01162/0.3762, allocations: 4.204 MB / 345.9 MB, free: 2.441 MB / 298.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.05937/0.4356, allocations: 51.85 MB / 397.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007302/0.4429, allocations: 3.155 MB / 400.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.4439, allocations: 0.7372 MB / 401.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.4553, allocations: 6.712 MB / 408.3 MB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.4554, allocations: 63.56 kB / 408.4 MB, free: 4.527 MB / 362.7 MB Notification: Performance of pre-optimization done (n=262): time 4.92e-06/0.4554, allocations: 0 / 408.4 MB, free: 4.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=317): time 0.03867/0.494, allocations: 14.93 MB / 423.3 MB, free: 6.105 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/0.4941, allocations: 166.2 kB / 423.5 MB, free: 5.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006955/0.5011, allocations: 5.746 MB / 429.2 MB, free: 1.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005072/0.5016, allocations: 77.69 kB / 429.3 MB, free: 1.145 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1415/0.6431, allocations: 4.773 MB / 434.1 MB, free: 121.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/0.6451, allocations: 1.237 MB / 435.3 MB, free: 120.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002497/0.6476, allocations: 1.753 MB / 437.1 MB, free: 120.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.065e-05/0.6476, allocations: 303.1 kB / 437.3 MB, free: 120.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002479/0.6501, allocations: 1.157 MB / 438.5 MB, free: 120.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004011/0.6541, allocations: 6.267 MB / 444.8 MB, free: 113.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007107/0.6612, allocations: 8.65 MB / 453.4 MB, free: 106.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/0.6613, allocations: 47.66 kB / 453.5 MB, free: 106.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.009621/0.671, allocations: 6.49 MB / 460 MB, free: 105.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.227e-05/0.6711, allocations: 80.72 kB / 460 MB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/0.6713, allocations: 180.9 kB / 460.2 MB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/0.6737, allocations: 1.074 MB / 461.3 MB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/0.6777, allocations: 2.289 MB / 463.6 MB, free: 104.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005172/0.6828, allocations: 5.354 MB / 468.9 MB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006904/0.6897, allocations: 389.5 kB / 469.3 MB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000679/0.6904, allocations: 439 kB / 469.7 MB, free: 102.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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): 1128 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,46,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002891/0.6933, allocations: 0.8547 MB / 470.6 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009347/0.6943, allocations: 436.6 kB / 471 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.6971, allocations: 2.119 MB / 473.1 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.279e-05/0.6971, allocations: 31 kB / 473.2 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6971, allocations: 7.688 kB / 473.2 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.6971, allocations: 14.91 kB / 473.2 MB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.7082, allocations: 9.14 MB / 482.3 MB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.469e-05/0.7082, allocations: 28.22 kB / 482.4 MB, free: 94.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/0.7096, allocations: 0.828 MB / 483.2 MB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.711, allocations: 0.8849 MB / 484.1 MB, free: 93.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.7128, allocations: 0.8118 MB / 484.9 MB, free: 92.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.7129, allocations: 76 kB / 485 MB, free: 92.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003884/0.7168, allocations: 4.77 MB / 489.7 MB, free: 88.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.727e-05/0.7168, allocations: 35.88 kB / 489.8 MB, free: 88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003679/0.7205, allocations: 3.851 MB / 493.6 MB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000692/0.7212, allocations: 88.77 kB / 493.7 MB, free: 83.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.7225, allocations: 91.97 kB / 493.8 MB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.7228, allocations: 288.9 kB / 494.1 MB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.723, allocations: 88 kB / 494.2 MB, free: 83.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002109/0.7251, allocations: 2.367 MB / 496.5 MB, free: 80.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7251, allocations: 0 / 496.5 MB, free: 80.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005992/0.7311, allocations: 2.109 MB / 498.6 MB, free: 78.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 98 * 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 (265): * Single equations (assignments): 260 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,40,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004139/0.7315, allocations: 256.5 kB / 498.9 MB, free: 78.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004711/0.7362, allocations: 4.3 MB / 0.4914 GB, free: 74.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002152/0.7364, allocations: 161.1 kB / 0.4915 GB, free: 74.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002626/0.739, allocations: 2.252 MB / 0.4937 GB, free: 71.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004542/0.7436, allocations: 7.087 MB / 0.5007 GB, free: 63.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/0.7671, allocations: 15.32 MB / 0.5156 GB, free: 47.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.7692, allocations: 2.4 MB / 0.518 GB, free: 45.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00253/0.7717, allocations: 0.8625 MB / 0.5188 GB, free: 44.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001555/0.7733, allocations: 1.046 MB / 0.5198 GB, free: 43.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.7733, allocations: 0 / 0.5198 GB, free: 43.4 MB / 378.7 MB Notification: Performance of Templates: time 0.2345/1.008, allocations: 73.96 MB / 0.5921 GB, free: 94.43 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.811638047918677]