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.001398/0.001398, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001328/0.001328, allocations: 171.8 kB / 24.92 MB, free: 8.723 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.8933/0.8933, allocations: 177.1 MB / 205.3 MB, free: 5.121 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 9.92e-07/9.92e-07, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.107e-06/1.01e-05, allocations: 2.312 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.106/0.106, allocations: 21.84 MB / 295.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.117, allocations: 7.248 MB / 302.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.1184, allocations: 216.6 kB / 302.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006385/0.1248, allocations: 8.504 MB / 311.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003724/0.1285, allocations: 3.847 MB / 315.1 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002114/0.1306, allocations: 2.321 MB / 317.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009646/0.1403, allocations: 15.64 MB / 333.1 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006783/0.147, allocations: 9.944 MB / 343 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007462/0.1545, allocations: 9.48 MB / 352.5 MB, free: 1.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004817/0.1593, allocations: 6.451 MB / 359 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009067/0.1602, allocations: 1.035 MB / 360 MB, free: 10.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.1625, allocations: 2.127 MB / 362.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003148/0.1656, allocations: 5.475 MB / 367.6 MB, free: 2.617 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.168, allocations: 3.472 MB / 371.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007229/0.1752, allocations: 10.68 MB / 381.8 MB, free: 4.418 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1752, allocations: 0 / 381.8 MB, free: 4.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1752, allocations: 0 / 381.8 MB, free: 4.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.973e-05/0.1753, allocations: 0 / 381.8 MB, free: 4.418 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.01009/0.1854, allocations: 10.44 MB / 392.2 MB, free: 9.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.1854, allocations: 8.031 kB / 392.2 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006329/0.1918, allocations: 2.434 MB / 394.7 MB, free: 7.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006091/0.1979, allocations: 5.747 MB / 400.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.1981, allocations: 0.5218 MB / 400.9 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000772/0.1989, allocations: 0.7228 MB / 401.6 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009761/0.2086, allocations: 9.664 MB / 411.3 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/0.2088, allocations: 91.31 kB / 411.4 MB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005185/0.2093, allocations: 327.8 kB / 411.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00202/0.2113, allocations: 2.622 MB / 414.3 MB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007119/0.2184, allocations: 4.666 MB / 419 MB, free: 13.78 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.2163/0.4347, allocations: 54.13 MB / 473.1 MB, free: 73.48 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006903/0.4416, allocations: 3.565 MB / 476.7 MB, free: 73.25 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009089/0.4425, allocations: 0.8738 MB / 477.6 MB, free: 73.2 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009102/0.4516, allocations: 8.619 MB / 486.2 MB, free: 70.63 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.4516, allocations: 72.3 kB / 486.3 MB, free: 70.57 MB / 378.8 MB Notification: Performance of pre-optimization done (n=298): time 4.228e-06/0.4517, allocations: 0 / 486.3 MB, free: 70.57 MB / 378.8 MB Notification: Performance of matching and sorting (n=406): time 0.05177/0.5034, allocations: 23.45 MB / 0.4978 GB, free: 51.47 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.5035, allocations: 402.6 kB / 0.4982 GB, free: 50.99 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.5067, allocations: 5.82 MB / 0.5038 GB, free: 46.06 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.507, allocations: 85.7 kB / 0.5039 GB, free: 45.97 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/0.5081, allocations: 5.094 MB / 0.5089 GB, free: 41.14 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006653/0.5088, allocations: 1.534 MB / 0.5104 GB, free: 39.59 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/0.5103, allocations: 1.887 MB / 0.5122 GB, free: 37.7 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.089e-05/0.5103, allocations: 305.1 kB / 0.5125 GB, free: 37.39 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/0.5124, allocations: 1.529 MB / 0.514 GB, free: 35.86 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002986/0.5154, allocations: 6.586 MB / 0.5204 GB, free: 26.89 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004455/0.5198, allocations: 8.599 MB / 0.5288 GB, free: 16.24 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.883e-05/0.5199, allocations: 52 kB / 0.5289 GB, free: 16.19 MB / 378.8 MB Notification: Performance of matching and sorting (n=1303) (initialization): time 0.009248/0.5291, allocations: 7.922 MB / 0.5366 GB, free: 8.211 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.279e-05/0.5292, allocations: 76.62 kB / 0.5367 GB, free: 8.137 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.277e-05/0.5293, allocations: 173.6 kB / 0.5369 GB, free: 7.969 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005041/0.5343, allocations: 2.117 MB / 0.5389 GB, free: 5.848 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003252/0.5375, allocations: 2.102 MB / 0.541 GB, free: 3.742 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009042/0.5466, allocations: 6.792 MB / 0.5476 GB, free: 12.85 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/0.55, allocations: 395.8 kB / 0.548 GB, free: 12.46 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004592/0.5504, allocations: 452 kB / 0.5484 GB, free: 12.02 MB / 394.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 (1193): * Single equations (assignments): 1188 * 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.001911/0.5524, allocations: 0.8751 MB / 0.5493 GB, free: 11.14 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007299/0.5531, allocations: 495.4 kB / 0.5498 GB, free: 10.65 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006521/0.5596, allocations: 3.744 MB / 0.5534 GB, free: 6.863 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.53e-05/0.5596, allocations: 47.27 kB / 0.5535 GB, free: 6.82 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.5596, allocations: 16 kB / 0.5535 GB, free: 6.805 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/0.5597, allocations: 19.92 kB / 0.5535 GB, free: 6.785 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01653/0.5762, allocations: 12.29 MB / 0.5655 GB, free: 10.17 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.5762, allocations: 12 kB / 0.5655 GB, free: 10.16 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.5777, allocations: 0.5546 MB / 0.566 GB, free: 9.602 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005399/0.5831, allocations: 2.144 MB / 0.5681 GB, free: 7.449 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002042/0.5833, allocations: 83.97 kB / 0.5682 GB, free: 7.367 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008911/0.5922, allocations: 6.036 MB / 0.5741 GB, free: 1.23 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.5922, allocations: 19.94 kB / 0.5741 GB, free: 1.211 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.123/0.7152, allocations: 5.298 MB / 0.5793 GB, free: 121.6 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.7163, allocations: 0.6612 MB / 0.5799 GB, free: 121.6 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006275/0.717, allocations: 85.44 kB / 0.58 GB, free: 121.6 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/0.7186, allocations: 96.97 kB / 0.5801 GB, free: 121.6 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005321/0.7191, allocations: 310.2 kB / 0.5804 GB, free: 121.6 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/0.7194, allocations: 94.22 kB / 0.5805 GB, free: 121.6 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003288/0.7226, allocations: 2.387 MB / 0.5828 GB, free: 121.4 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7226, allocations: 1.375 kB / 0.5828 GB, free: 121.4 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.00911/0.7317, allocations: 2.563 MB / 0.5853 GB, free: 121.4 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 (317): * Single equations (assignments): 313 * 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.0007238/0.7325, allocations: 287.1 kB / 0.5856 GB, free: 121.4 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.007616/0.7401, allocations: 4.846 MB / 0.5904 GB, free: 121 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0002759/0.7404, allocations: 132.7 kB / 0.5905 GB, free: 120.9 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003004/0.7434, allocations: 1.63 MB / 0.5921 GB, free: 120.6 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005567/0.7489, allocations: 1.476 MB / 0.5935 GB, free: 120.6 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02169/0.7706, allocations: 16.71 MB / 0.6098 GB, free: 111.5 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.7735, allocations: 2.71 MB / 0.6125 GB, free: 110.1 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003546/0.777, allocations: 0.9109 MB / 0.6134 GB, free: 109.6 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002866/0.7799, allocations: 1.114 MB / 0.6144 GB, free: 108.6 MB / 410.8 MB Notification: Performance of SimCode: time 1.383e-06/0.7799, allocations: 0 / 0.6144 GB, free: 108.6 MB / 410.8 MB Notification: Performance of Templates: time 0.1055/0.8853, allocations: 103 MB / 0.715 GB, free: 8.367 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.141350370366126]