Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 83.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 160.4 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9229/0.9229, allocations: 177 MB / 205.2 MB, free: 5.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 273 MB, free: 1.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.643e-05/1.794e-05, allocations: 2.312 kB / 273 MB, free: 1.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1204/0.1205, allocations: 22.63 MB / 295.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01179/0.1322, allocations: 6.966 MB / 302.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002817/0.1351, allocations: 216.8 kB / 302.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007234/0.1423, allocations: 8.547 MB / 311.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005242/0.1475, allocations: 3.777 MB / 315.2 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00263/0.1502, allocations: 2.308 MB / 317.5 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.1618, allocations: 15.72 MB / 333.2 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009925/0.1717, allocations: 9.781 MB / 343 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008374/0.1801, allocations: 6.655 MB / 349.6 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006851/0.1869, allocations: 6.727 MB / 356.4 MB, free: 14.1 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.188, allocations: 1.031 MB / 357.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002832/0.1908, allocations: 2.131 MB / 359.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003435/0.1943, allocations: 5.479 MB / 365 MB, free: 5.441 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.1971, allocations: 3.464 MB / 368.5 MB, free: 1.969 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007857/0.205, allocations: 10.64 MB / 379.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.205, allocations: 0 / 379.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.205, allocations: 0 / 379.1 MB, free: 7.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.677e-05/0.2051, allocations: 0 / 379.1 MB, free: 7.293 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.01319/0.2183, allocations: 12.23 MB / 391.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2183, allocations: 15.98 kB / 391.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02279/0.2411, allocations: 6.487 MB / 397.8 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.252, allocations: 7.905 MB / 405.7 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.2522, allocations: 0.5257 MB / 406.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.2533, allocations: 0.7228 MB / 407 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.2702, allocations: 11.98 MB / 419 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.2704, allocations: 83.36 kB / 419 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005402/0.2709, allocations: 323.8 kB / 419.4 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00255/0.2735, allocations: 2.817 MB / 422.2 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.2856, allocations: 6.394 MB / 428.6 MB, free: 4.066 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.2597/0.5453, allocations: 74.08 MB / 0.4909 GB, free: 59.13 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/0.5597, allocations: 5.572 MB / 0.4963 GB, free: 54.58 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002297/0.562, allocations: 1.513 MB / 0.4978 GB, free: 53.05 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.5733, allocations: 8.679 MB / 0.5063 GB, free: 44.54 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.5733, allocations: 79.42 kB / 0.5063 GB, free: 44.45 MB / 378.8 MB Notification: Performance of pre-optimization done (n=320): time 6.432e-06/0.5733, allocations: 0 / 0.5063 GB, free: 44.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=426): time 0.08286/0.6562, allocations: 38.84 MB / 0.5443 GB, free: 6.129 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.6563, allocations: 410.7 kB / 0.5447 GB, free: 5.641 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005404/0.6617, allocations: 6.494 MB / 0.551 GB, free: 15.35 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003219/0.662, allocations: 89.7 kB / 0.5511 GB, free: 15.25 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002903/0.6649, allocations: 6.032 MB / 0.557 GB, free: 9.66 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/0.6662, allocations: 1.66 MB / 0.5586 GB, free: 8.02 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002204/0.6684, allocations: 2.167 MB / 0.5607 GB, free: 5.844 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.6685, allocations: 480.7 kB / 0.5612 GB, free: 5.371 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/0.6711, allocations: 1.687 MB / 0.5628 GB, free: 3.68 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1202/0.7913, allocations: 9.314 MB / 0.5719 GB, free: 109.1 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.8016, allocations: 11.97 MB / 0.5836 GB, free: 99.19 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.8017, allocations: 49.16 kB / 0.5836 GB, free: 99.19 MB / 394.8 MB Notification: Performance of matching and sorting (n=1331) (initialization): time 0.02102/0.8227, allocations: 12.78 MB / 0.5961 GB, free: 97.7 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.363e-05/0.8228, allocations: 87.5 kB / 0.5962 GB, free: 97.7 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.8229, allocations: 168.6 kB / 0.5964 GB, free: 97.7 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01105/0.834, allocations: 4.738 MB / 0.601 GB, free: 97.55 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/0.8378, allocations: 2.143 MB / 0.6031 GB, free: 97.37 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/0.855, allocations: 11.96 MB / 0.6148 GB, free: 88.91 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005212/0.8602, allocations: 0.7307 MB / 0.6155 GB, free: 88.2 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005409/0.8607, allocations: 0.5287 MB / 0.616 GB, free: 87.67 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.002328/0.8631, allocations: 0.9322 MB / 0.6169 GB, free: 86.84 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/0.8641, allocations: 0.81 MB / 0.6177 GB, free: 86.41 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/0.8763, allocations: 7.451 MB / 0.625 GB, free: 78.91 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-05/0.8763, allocations: 47.94 kB / 0.625 GB, free: 78.86 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.8763, allocations: 24 kB / 0.625 GB, free: 78.84 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.8763, allocations: 19.92 kB / 0.6251 GB, free: 78.82 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/0.9067, allocations: 17.24 MB / 0.6419 GB, free: 61.61 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.039e-05/0.9067, allocations: 8.938 kB / 0.6419 GB, free: 61.61 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/0.9086, allocations: 0.5822 MB / 0.6425 GB, free: 61.02 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01392/0.9225, allocations: 4.416 MB / 0.6468 GB, free: 56.61 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003647/0.9229, allocations: 76 kB / 0.6469 GB, free: 56.53 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/0.9385, allocations: 10.01 MB / 0.6566 GB, free: 46.61 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.9385, allocations: 15.94 kB / 0.6567 GB, free: 46.6 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/0.954, allocations: 9.498 MB / 0.6659 GB, free: 36.99 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/0.9556, allocations: 0.7253 MB / 0.6666 GB, free: 36.27 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007392/0.9563, allocations: 79.44 kB / 0.6667 GB, free: 36.2 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002105/0.9584, allocations: 423.3 kB / 0.6671 GB, free: 35.78 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007655/0.9592, allocations: 318.9 kB / 0.6674 GB, free: 35.47 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002253/0.9594, allocations: 112 kB / 0.6675 GB, free: 35.36 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.00326/0.9627, allocations: 3.025 MB / 0.6705 GB, free: 32.36 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9627, allocations: 1.969 kB / 0.6705 GB, free: 32.36 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.006247/0.9689, allocations: 2.702 MB / 0.6731 GB, free: 29.67 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.0005991/0.9695, allocations: 308.9 kB / 0.6734 GB, free: 29.38 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.008055/0.9776, allocations: 6.719 MB / 0.68 GB, free: 22.66 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.9776, allocations: 8 kB / 0.68 GB, free: 22.65 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003/0.9806, allocations: 2.656 MB / 0.6826 GB, free: 19.96 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.9835, allocations: 1.039 MB / 0.6836 GB, free: 18.97 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02021/1.004, allocations: 17.94 MB / 0.7011 GB, free: 0.8047 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002393/1.006, allocations: 2.76 MB / 0.7038 GB, free: 14.02 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.004169/1.01, allocations: 2.435 MB / 0.7062 GB, free: 11.57 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009943/1.011, allocations: 432.4 kB / 0.7066 GB, free: 11.15 MB / 410.8 MB Notification: Performance of SimCode: time 2.013e-06/1.011, allocations: 0 / 0.7066 GB, free: 11.15 MB / 410.8 MB Notification: Performance of Templates: time 0.2234/1.235, allocations: 109 MB / 0.813 GB, free: 42 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.851514588808641]