Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.001308/0.001308, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001189/0.001189, allocations: 142.3 kB / 24.97 MB, free: 8.324 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.9155/0.9155, allocations: 173.3 MB / 201.5 MB, free: 9.34 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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.709e-05/2.89e-05, allocations: 2.312 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1312/0.1312, allocations: 22.73 MB / 290.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1444, allocations: 6.964 MB / 297.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004162/0.1486, allocations: 215.7 kB / 298 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009466/0.158, allocations: 8.582 MB / 306.6 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009314/0.1673, allocations: 3.826 MB / 310.4 MB, free: 8.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004269/0.1716, allocations: 2.302 MB / 312.7 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01552/0.1871, allocations: 15.19 MB / 327.9 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01244/0.1996, allocations: 9.795 MB / 337.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01331/0.2129, allocations: 6.662 MB / 344.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009363/0.2222, allocations: 6.744 MB / 351.1 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002357/0.2246, allocations: 1.035 MB / 352.1 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00361/0.2282, allocations: 2.138 MB / 354.3 MB, free: 3.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004598/0.2328, allocations: 5.499 MB / 359.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006058/0.2389, allocations: 3.487 MB / 363.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.2499, allocations: 10.71 MB / 374 MB, free: 15.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.2499, allocations: 0 / 374 MB, free: 15.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2499, allocations: 0 / 374 MB, free: 15.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002652/0.2502, allocations: 0 / 374 MB, free: 15.41 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.01576/0.2659, allocations: 12.24 MB / 386.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.266, allocations: 8.031 kB / 386.2 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02358/0.2896, allocations: 6.495 MB / 392.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.3026, allocations: 7.901 MB / 400.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/0.3029, allocations: 0.5246 MB / 401.1 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001451/0.3044, allocations: 0.7345 MB / 401.9 MB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02065/0.325, allocations: 11.98 MB / 413.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/0.3253, allocations: 87.36 kB / 413.9 MB, free: 5.727 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007937/0.3261, allocations: 323.8 kB / 414.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/0.3288, allocations: 2.813 MB / 417.1 MB, free: 2.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01588/0.3447, allocations: 6.391 MB / 423.5 MB, free: 12.18 MB / 378.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.2691/0.6138, allocations: 74.1 MB / 497.6 MB, free: 64.58 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.6257, allocations: 5.597 MB / 0.4914 GB, free: 63.44 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.6281, allocations: 1.51 MB / 0.4928 GB, free: 63 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/0.6387, allocations: 8.69 MB / 0.5013 GB, free: 55.73 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.6387, allocations: 71.5 kB / 0.5014 GB, free: 55.65 MB / 378.8 MB Notification: Performance of pre-optimization done (n=321): time 5.56e-06/0.6387, allocations: 7.641 kB / 0.5014 GB, free: 55.65 MB / 378.8 MB Notification: Performance of matching and sorting (n=428): time 0.08486/0.7236, allocations: 39.89 MB / 0.5404 GB, free: 16.36 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/0.7237, allocations: 402.8 kB / 0.5407 GB, free: 15.88 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006604/0.7303, allocations: 6.514 MB / 0.5471 GB, free: 9.574 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008171/0.7311, allocations: 93.7 kB / 0.5472 GB, free: 9.477 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.7333, allocations: 6.031 MB / 0.5531 GB, free: 3.961 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001267/0.7346, allocations: 1.664 MB / 0.5547 GB, free: 2.316 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001952/0.7366, allocations: 2.167 MB / 0.5568 GB, free: 140 kB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.7367, allocations: 484.7 kB / 0.5573 GB, free: 15.66 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/0.7396, allocations: 1.687 MB / 0.5589 GB, free: 13.97 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00661/0.7462, allocations: 9.321 MB / 0.568 GB, free: 1.273 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1456/0.8917, allocations: 12 MB / 0.5798 GB, free: 105.4 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001629/0.8919, allocations: 48.97 kB / 0.5798 GB, free: 105.4 MB / 394.8 MB Notification: Performance of matching and sorting (n=1333) (initialization): time 0.0289/0.9208, allocations: 12.79 MB / 0.5923 GB, free: 104 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.9209, allocations: 79.22 kB / 0.5924 GB, free: 104 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002368/0.9212, allocations: 175.6 kB / 0.5925 GB, free: 104 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/0.9331, allocations: 4.726 MB / 0.5971 GB, free: 103.8 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004515/0.9376, allocations: 2.147 MB / 0.5992 GB, free: 103.4 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01906/0.9567, allocations: 11.97 MB / 0.6109 GB, free: 95.54 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005787/0.9625, allocations: 0.7274 MB / 0.6116 GB, free: 94.84 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009581/0.9634, allocations: 0.5351 MB / 0.6122 GB, free: 94.3 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1176): * Single equations (assignments): 1171 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002574/0.966, allocations: 0.9362 MB / 0.6131 GB, free: 93.47 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001287/0.9673, allocations: 0.8094 MB / 0.6139 GB, free: 93.04 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/0.9798, allocations: 7.466 MB / 0.6212 GB, free: 85.53 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.58e-05/0.9799, allocations: 47.94 kB / 0.6212 GB, free: 85.48 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.9799, allocations: 24 kB / 0.6212 GB, free: 85.46 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-05/0.9799, allocations: 23.92 kB / 0.6213 GB, free: 85.43 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02539/1.005, allocations: 17.28 MB / 0.6381 GB, free: 68.18 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/1.005, allocations: 8 kB / 0.6381 GB, free: 68.17 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.007, allocations: 0.5773 MB / 0.6387 GB, free: 67.59 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01092/1.018, allocations: 4.419 MB / 0.643 GB, free: 63.16 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005843/1.018, allocations: 80 kB / 0.6431 GB, free: 63.09 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01596/1.034, allocations: 10.01 MB / 0.6529 GB, free: 53.1 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.034, allocations: 11.94 kB / 0.6529 GB, free: 53.09 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01605/1.05, allocations: 9.539 MB / 0.6622 GB, free: 43.33 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00265/1.053, allocations: 1.472 MB / 0.6636 GB, free: 41.86 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000991/1.054, allocations: 76 kB / 0.6637 GB, free: 41.79 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/1.056, allocations: 426.9 kB / 0.6641 GB, free: 41.37 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008531/1.057, allocations: 322.9 kB / 0.6644 GB, free: 41.05 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/1.057, allocations: 117.9 kB / 0.6645 GB, free: 40.95 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.004023/1.062, allocations: 3.025 MB / 0.6675 GB, free: 37.95 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.1e-07/1.062, allocations: 0 / 0.6675 GB, free: 37.95 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.006509/1.068, allocations: 2.739 MB / 0.6702 GB, free: 35.22 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006919/1.069, allocations: 313.2 kB / 0.6705 GB, free: 34.93 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.008373/1.077, allocations: 6.727 MB / 0.677 GB, free: 28.2 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.077, allocations: 4.125 kB / 0.677 GB, free: 28.19 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/1.08, allocations: 2.656 MB / 0.6796 GB, free: 25.5 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004129/1.085, allocations: 1.05 MB / 0.6807 GB, free: 24.5 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02235/1.107, allocations: 17.99 MB / 0.6982 GB, free: 6.27 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/1.109, allocations: 2.753 MB / 0.7009 GB, free: 3.488 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003987/1.113, allocations: 2.443 MB / 0.7033 GB, free: 1.039 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009507/1.114, allocations: 440.4 kB / 0.7037 GB, free: 0.6094 MB / 394.8 MB Notification: Performance of SimCode: time 1.683e-06/1.114, allocations: 0 / 0.7037 GB, free: 0.6094 MB / 394.8 MB Notification: Performance of Templates: time 0.2541/1.368, allocations: 109.4 MB / 0.8106 GB, free: 52.57 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.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.776598397176713]