Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.0009442/0.0009442, allocations: 71.77 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.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.0009471/0.0009471, allocations: 165.8 kB / 24.99 MB, free: 8.336 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.9419/0.9419, allocations: 177.1 MB / 205.3 MB, free: 5.609 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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273.1 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.366e-05/2.533e-05, allocations: 6.312 kB / 273.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1331/0.1331, allocations: 22.63 MB / 295.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.1455, allocations: 6.972 MB / 302.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004549/0.15, allocations: 212.7 kB / 302.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009494/0.1595, allocations: 8.546 MB / 311.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008027/0.1676, allocations: 3.784 MB / 315.2 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003987/0.1716, allocations: 2.304 MB / 317.5 MB, free: 4.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01461/0.1862, allocations: 15.72 MB / 333.3 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01143/0.1976, allocations: 9.767 MB / 343 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.2079, allocations: 6.655 MB / 349.7 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007966/0.2159, allocations: 6.739 MB / 356.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002317/0.2182, allocations: 1.031 MB / 357.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00406/0.2223, allocations: 2.119 MB / 359.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006623/0.2289, allocations: 5.483 MB / 365 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0077/0.2366, allocations: 3.468 MB / 368.5 MB, free: 2.129 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.2509, allocations: 10.65 MB / 379.2 MB, free: 7.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2509, allocations: 0 / 379.2 MB, free: 7.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2509, allocations: 4 kB / 379.2 MB, free: 7.445 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004638/0.2514, allocations: 0 / 379.2 MB, free: 7.445 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.01891/0.2703, allocations: 12.22 MB / 391.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.2703, allocations: 12.03 kB / 391.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02452/0.2948, allocations: 6.487 MB / 397.9 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.3087, allocations: 7.905 MB / 405.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003607/0.309, allocations: 0.5218 MB / 406.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001669/0.3107, allocations: 0.7267 MB / 407 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02371/0.3344, allocations: 11.98 MB / 419 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003805/0.3348, allocations: 83.36 kB / 419.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000942/0.3357, allocations: 331.8 kB / 419.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003825/0.3396, allocations: 2.817 MB / 422.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02016/0.3597, allocations: 6.393 MB / 428.6 MB, free: 4.227 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.2729/0.6326, allocations: 74.07 MB / 0.4909 GB, free: 59.33 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/0.6445, allocations: 5.577 MB / 0.4964 GB, free: 54.82 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002456/0.647, allocations: 1.507 MB / 0.4978 GB, free: 53.29 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.6579, allocations: 8.684 MB / 0.5063 GB, free: 44.78 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.6579, allocations: 83.41 kB / 0.5064 GB, free: 44.68 MB / 378.8 MB Notification: Performance of pre-optimization done (n=320): time 5.48e-06/0.658, allocations: 0 / 0.5064 GB, free: 44.68 MB / 378.8 MB Notification: Performance of matching and sorting (n=426): time 0.08366/0.7416, allocations: 38.82 MB / 0.5443 GB, free: 6.395 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.987e-05/0.7417, allocations: 410.8 kB / 0.5447 GB, free: 5.906 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006635/0.7483, allocations: 6.492 MB / 0.551 GB, free: 15.61 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007564/0.7491, allocations: 93.14 kB / 0.5511 GB, free: 15.52 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003049/0.7521, allocations: 6.026 MB / 0.557 GB, free: 9.934 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/0.7538, allocations: 1.657 MB / 0.5586 GB, free: 8.297 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002244/0.7561, allocations: 2.175 MB / 0.5608 GB, free: 6.113 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.7562, allocations: 476.8 kB / 0.5612 GB, free: 5.645 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/0.7589, allocations: 1.691 MB / 0.5629 GB, free: 3.949 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1211/0.8801, allocations: 9.314 MB / 0.572 GB, free: 109.5 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/0.8906, allocations: 11.98 MB / 0.5837 GB, free: 99.59 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001827/0.8908, allocations: 49.27 kB / 0.5837 GB, free: 99.59 MB / 394.8 MB Notification: Performance of matching and sorting (n=1331) (initialization): time 0.02208/0.9129, allocations: 12.79 MB / 0.5962 GB, free: 98.11 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.277e-05/0.913, allocations: 76.81 kB / 0.5963 GB, free: 98.11 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/0.9131, allocations: 168.7 kB / 0.5964 GB, free: 98.11 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/0.9248, allocations: 4.735 MB / 0.601 GB, free: 97.97 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/0.9292, allocations: 2.146 MB / 0.6031 GB, free: 97.73 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01811/0.9473, allocations: 11.98 MB / 0.6148 GB, free: 89.02 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005925/0.9532, allocations: 0.7251 MB / 0.6155 GB, free: 88.32 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/0.9544, allocations: 0.534 MB / 0.6161 GB, free: 87.79 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 (1174): * Single equations (assignments): 1169 * 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.002881/0.9573, allocations: 0.9264 MB / 0.617 GB, free: 86.96 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/0.9589, allocations: 0.8055 MB / 0.6178 GB, free: 86.54 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.9716, allocations: 7.46 MB / 0.625 GB, free: 79.02 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.843e-05/0.9716, allocations: 42.89 kB / 0.6251 GB, free: 78.98 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.352e-05/0.9716, allocations: 24 kB / 0.6251 GB, free: 78.96 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-05/0.9717, allocations: 23.92 kB / 0.6251 GB, free: 78.94 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02731/0.999, allocations: 17.24 MB / 0.642 GB, free: 61.73 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-05/0.999, allocations: 11.98 kB / 0.642 GB, free: 61.72 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/1.001, allocations: 0.5811 MB / 0.6425 GB, free: 61.14 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/1.012, allocations: 4.403 MB / 0.6468 GB, free: 56.73 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007027/1.013, allocations: 79.98 kB / 0.6469 GB, free: 56.65 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01818/1.031, allocations: 10.01 MB / 0.6567 GB, free: 46.74 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/1.031, allocations: 14.88 kB / 0.6567 GB, free: 46.73 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/1.051, allocations: 9.499 MB / 0.666 GB, free: 37.09 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/1.053, allocations: 0.7262 MB / 0.6667 GB, free: 36.36 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001318/1.055, allocations: 81.95 kB / 0.6668 GB, free: 36.29 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003253/1.058, allocations: 419.3 kB / 0.6672 GB, free: 35.88 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001042/1.059, allocations: 322.9 kB / 0.6675 GB, free: 35.56 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003143/1.059, allocations: 115.5 kB / 0.6676 GB, free: 35.45 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.004432/1.064, allocations: 3.021 MB / 0.6705 GB, free: 32.45 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.064, allocations: 0 / 0.6705 GB, free: 32.45 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.008563/1.072, allocations: 2.708 MB / 0.6732 GB, free: 29.75 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 (294): * Single equations (assignments): 290 * 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.0007772/1.073, allocations: 296.8 kB / 0.6735 GB, free: 29.48 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01587/1.089, allocations: 6.722 MB / 0.68 GB, free: 22.75 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.089, allocations: 0 / 0.68 GB, free: 22.75 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003007/1.092, allocations: 2.669 MB / 0.6826 GB, free: 20.05 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003576/1.096, allocations: 1.04 MB / 0.6837 GB, free: 19.05 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/1.121, allocations: 17.95 MB / 0.7012 GB, free: 0.875 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/1.124, allocations: 2.748 MB / 0.7039 GB, free: 14.1 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.005612/1.13, allocations: 2.443 MB / 0.7063 GB, free: 11.65 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/1.132, allocations: 432.4 kB / 0.7067 GB, free: 11.23 MB / 410.8 MB Notification: Performance of SimCode: time 1.723e-06/1.132, allocations: 4 kB / 0.7067 GB, free: 11.22 MB / 410.8 MB Notification: Performance of Templates: time 0.2219/1.353, allocations: 109 MB / 0.8131 GB, free: 42.34 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.892325666965917]