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.00136/0.00136, allocations: 78.28 kB / 21.42 MB, free: 3.074 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.00162/0.00162, allocations: 151.3 kB / 24.8 MB, free: 9.316 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.9912/0.9912, allocations: 173.3 MB / 201.4 MB, free: 9.211 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 2.014e-06/2.014e-06, allocations: 0 / 268.4 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.871e-05, allocations: 6.25 kB / 268.4 MB, free: 6.152 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.01668/0.01671, allocations: 21.92 MB / 290.4 MB, free: 128 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1374/0.1541, allocations: 6.929 MB / 297.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003894/0.158, allocations: 215 kB / 297.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009207/0.1672, allocations: 8.426 MB / 305.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00796/0.1752, allocations: 3.843 MB / 309.8 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.1787, allocations: 2.296 MB / 312.1 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01285/0.1916, allocations: 15.2 MB / 327.3 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01107/0.2026, allocations: 9.788 MB / 337.1 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01541/0.218, allocations: 9.586 MB / 346.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009477/0.2275, allocations: 6.712 MB / 353.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00299/0.2305, allocations: 1.035 MB / 354.4 MB, free: 2.617 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004968/0.2355, allocations: 2.15 MB / 356.5 MB, free: 472 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006455/0.2419, allocations: 5.507 MB / 362 MB, free: 10.94 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006584/0.2485, allocations: 3.491 MB / 365.5 MB, free: 7.441 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.2614, allocations: 10.74 MB / 376.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2614, allocations: 0 / 376.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2614, allocations: 4 kB / 376.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004726/0.2619, allocations: 0 / 376.3 MB, free: 12.67 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.02021/0.2821, allocations: 11.5 MB / 387.8 MB, free: 1.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.2821, allocations: 12.03 kB / 387.8 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02082/0.3029, allocations: 5.282 MB / 393.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/0.3134, allocations: 6.156 MB / 399.2 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003542/0.3137, allocations: 0.5179 MB / 399.7 MB, free: 4.973 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/0.3156, allocations: 0.7383 MB / 400.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02002/0.3357, allocations: 10.59 MB / 411.1 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003151/0.336, allocations: 91.27 kB / 411.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007125/0.3367, allocations: 331.7 kB / 411.5 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002304/0.339, allocations: 2.615 MB / 414.1 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.3511, allocations: 4.734 MB / 418.8 MB, free: 368 kB / 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.296/0.6471, allocations: 73.38 MB / 492.2 MB, free: 60.42 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02319/0.6703, allocations: 3.79 MB / 496 MB, free: 60.21 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.6723, allocations: 1.077 MB / 497.1 MB, free: 60.15 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02815/0.7004, allocations: 9.12 MB / 0.4943 GB, free: 56.05 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.7005, allocations: 76.5 kB / 0.4944 GB, free: 55.99 MB / 378.8 MB Notification: Performance of pre-optimization done (n=299): time 6.913e-06/0.7005, allocations: 0 / 0.4944 GB, free: 55.99 MB / 378.8 MB Notification: Performance of matching and sorting (n=407): time 0.07396/0.7744, allocations: 28.96 MB / 0.5227 GB, free: 31.12 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.554e-05/0.7745, allocations: 407.6 kB / 0.5231 GB, free: 30.64 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/0.7806, allocations: 6.434 MB / 0.5294 GB, free: 24.83 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008107/0.7814, allocations: 85.7 kB / 0.5294 GB, free: 24.74 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003486/0.7849, allocations: 6.141 MB / 0.5354 GB, free: 19.16 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/0.7865, allocations: 1.597 MB / 0.537 GB, free: 17.55 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001885/0.7884, allocations: 2.173 MB / 0.5391 GB, free: 15.37 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.7885, allocations: 476.8 kB / 0.5396 GB, free: 14.9 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.7905, allocations: 1.351 MB / 0.5409 GB, free: 13.54 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/0.7943, allocations: 9.002 MB / 0.5497 GB, free: 1.25 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009619/0.804, allocations: 10.87 MB / 0.5603 GB, free: 3.324 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/0.8041, allocations: 51.94 kB / 0.5604 GB, free: 3.273 MB / 394.8 MB Notification: Performance of matching and sorting (n=1304) (initialization): time 0.01716/0.8213, allocations: 9.325 MB / 0.5695 GB, free: 9.93 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.8213, allocations: 79.98 kB / 0.5695 GB, free: 9.852 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.8215, allocations: 176.1 kB / 0.5697 GB, free: 9.68 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005733/0.8272, allocations: 2.148 MB / 0.5718 GB, free: 7.527 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004743/0.8319, allocations: 2.113 MB / 0.5739 GB, free: 5.41 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1492/0.9811, allocations: 7.776 MB / 0.5815 GB, free: 120.8 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/0.9878, allocations: 395.1 kB / 0.5818 GB, free: 120.8 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001917/0.9897, allocations: 454.2 kB / 0.5823 GB, free: 120.8 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 777 * 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 (1194): * Single equations (assignments): 1189 * 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 {(1,84,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003877/0.9936, allocations: 0.9226 MB / 0.5832 GB, free: 120.6 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001952/0.9955, allocations: 0.7973 MB / 0.584 GB, free: 120.6 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008654/1.004, allocations: 4.233 MB / 0.5881 GB, free: 120.3 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.785e-05/1.004, allocations: 43.03 kB / 0.5881 GB, free: 120.3 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.489e-05/1.004, allocations: 16.14 kB / 0.5881 GB, free: 120.3 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/1.004, allocations: 19.67 kB / 0.5882 GB, free: 120.3 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02484/1.029, allocations: 14.16 MB / 0.602 GB, free: 118.9 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.426e-05/1.029, allocations: 17.06 kB / 0.602 GB, free: 118.9 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/1.031, allocations: 0.548 MB / 0.6025 GB, free: 118.9 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005543/1.036, allocations: 1.888 MB / 0.6044 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004277/1.037, allocations: 82.41 kB / 0.6045 GB, free: 118.8 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009542/1.046, allocations: 6.995 MB / 0.6113 GB, free: 115.6 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/1.046, allocations: 28.59 kB / 0.6113 GB, free: 115.6 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/1.057, allocations: 6.173 MB / 0.6173 GB, free: 113 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002958/1.06, allocations: 1.224 MB / 0.6185 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001391/1.061, allocations: 81.72 kB / 0.6186 GB, free: 112.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/1.063, allocations: 96.03 kB / 0.6187 GB, free: 112.1 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000628/1.064, allocations: 311.1 kB / 0.619 GB, free: 112 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/1.064, allocations: 99.83 kB / 0.6191 GB, free: 111.9 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003623/1.068, allocations: 2.783 MB / 0.6218 GB, free: 109.8 MB / 410.8 MB Notification: Performance of sort global known variables: time 9e-08/1.068, allocations: 0 / 0.6218 GB, free: 109.8 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.009162/1.077, allocations: 2.594 MB / 0.6244 GB, free: 107.3 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 64 * 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 (318): * Single equations (assignments): 314 * 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 {(1,73,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008702/1.078, allocations: 323.4 kB / 0.6247 GB, free: 107 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.008178/1.086, allocations: 5.379 MB / 0.6299 GB, free: 102 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/1.086, allocations: 4 kB / 0.6299 GB, free: 102 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002963/1.089, allocations: 1.87 MB / 0.6317 GB, free: 100.1 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005531/1.094, allocations: 1.055 MB / 0.6328 GB, free: 99.11 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/1.119, allocations: 16.92 MB / 0.6493 GB, free: 81.91 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/1.122, allocations: 2.724 MB / 0.652 GB, free: 79.15 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003307/1.125, allocations: 0.9056 MB / 0.6528 GB, free: 78.25 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002278/1.128, allocations: 1.209 MB / 0.654 GB, free: 77.04 MB / 410.8 MB Notification: Performance of SimCode: time 2.525e-06/1.128, allocations: 0 / 0.654 GB, free: 77.04 MB / 410.8 MB Notification: Performance of Templates: time 0.2436/1.371, allocations: 103.5 MB / 0.7551 GB, free: 115.4 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.638723754324019]