Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001084/0.001084, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001312/0.001312, allocations: 165.7 kB / 25.33 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.956/0.956, allocations: 158.6 MB / 187.2 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.669e-05, allocations: 2.312 kB / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01053/0.01056, allocations: 10.08 MB / 261.1 MB, free: 13.37 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007299/0.01786, allocations: 3.793 MB / 264.9 MB, free: 9.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.01928, allocations: 63.75 kB / 265 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003272/0.02255, allocations: 2.238 MB / 267.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003861/0.02641, allocations: 1.761 MB / 269 MB, free: 5.488 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.02776, allocations: 0.756 MB / 269.7 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004582/0.03234, allocations: 3.727 MB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002689/0.03503, allocations: 2.563 MB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.03837, allocations: 2.015 MB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.04093, allocations: 1.859 MB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007136/0.04164, allocations: 260 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.04336, allocations: 1.053 MB / 281.2 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.04469, allocations: 1.691 MB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.04618, allocations: 1.071 MB / 284 MB, free: 6.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005011/0.05119, allocations: 4.024 MB / 288 MB, free: 2.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.0512, allocations: 0 / 288 MB, free: 2.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.0512, allocations: 0 / 288 MB, free: 2.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002166/0.05142, allocations: 0 / 288 MB, free: 2.379 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007232/0.05865, allocations: 4.494 MB / 292.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.0587, allocations: 15.98 kB / 292.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004414/0.06311, allocations: 2.335 MB / 294.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00287/0.06598, allocations: 1.722 MB / 296.6 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.06613, allocations: 209.1 kB / 296.8 MB, free: 9.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004056/0.06653, allocations: 271.8 kB / 297 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009834/0.07637, allocations: 6.561 MB / 303.6 MB, free: 1.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.729e-05/0.07645, allocations: 35.69 kB / 303.6 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.07674, allocations: 131.9 kB / 303.8 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001618/0.07835, allocations: 1.797 MB / 305.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008067/0.08642, allocations: 3.813 MB / 309.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02955/0.116, allocations: 40.86 MB / 350.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1296/0.2455, allocations: 1.988 MB / 352.2 MB, free: 95.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.2472, allocations: 0.5552 MB / 352.8 MB, free: 95.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00618/0.2533, allocations: 3.794 MB / 356.6 MB, free: 94.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.2534, allocations: 53.52 kB / 356.6 MB, free: 94.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 4.048e-06/0.2534, allocations: 0 / 356.6 MB, free: 94.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01811/0.2715, allocations: 8.205 MB / 364.8 MB, free: 92.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.2716, allocations: 141.5 kB / 365 MB, free: 91.97 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.2749, allocations: 3.159 MB / 368.1 MB, free: 91.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.275, allocations: 47.28 kB / 368.2 MB, free: 91.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.2763, allocations: 3.071 MB / 371.2 MB, free: 89.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004482/0.2767, allocations: 0.6222 MB / 371.9 MB, free: 88.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.2778, allocations: 1.204 MB / 373.1 MB, free: 87.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.985e-05/0.2779, allocations: 484.5 kB / 373.5 MB, free: 86.92 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.2789, allocations: 0.5646 MB / 374.1 MB, free: 86.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002752/0.2816, allocations: 5.871 MB / 380 MB, free: 78.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/0.2924, allocations: 7.13 MB / 387.1 MB, free: 69.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/0.2925, allocations: 36 kB / 387.1 MB, free: 69.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01738/0.3099, allocations: 4.871 MB / 392 MB, free: 64.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.859e-05/0.31, allocations: 60.98 kB / 392.1 MB, free: 64.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/0.3101, allocations: 128 kB / 392.2 MB, free: 64.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006955/0.3108, allocations: 311.1 kB / 392.5 MB, free: 64.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00592/0.3167, allocations: 1.306 MB / 393.8 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.3184, allocations: 2.539 MB / 396.3 MB, free: 60.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005184/0.3236, allocations: 343.6 kB / 396.7 MB, free: 59.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000584/0.3242, allocations: 348 kB / 397 MB, free: 59.44 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.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 (706): * Single equations (assignments): 702 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001428/0.3256, allocations: 0.6368 MB / 397.7 MB, free: 58.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000418/0.326, allocations: 324.3 kB / 398 MB, free: 58.47 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/0.3272, allocations: 0.9459 MB / 398.9 MB, free: 57.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.3272, allocations: 18.89 kB / 398.9 MB, free: 57.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3272, allocations: 4 kB / 398.9 MB, free: 57.49 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3272, allocations: 3.984 kB / 398.9 MB, free: 57.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/0.3318, allocations: 4.128 MB / 403.1 MB, free: 53.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.3318, allocations: 8 kB / 403.1 MB, free: 53.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004686/0.3322, allocations: 230.4 kB / 403.3 MB, free: 52.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003699/0.3326, allocations: 153.7 kB / 403.5 MB, free: 52.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.409e-05/0.3327, allocations: 35.94 kB / 403.5 MB, free: 52.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.3339, allocations: 2.304 MB / 405.8 MB, free: 50.37 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3339, allocations: 11.94 kB / 405.8 MB, free: 50.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.3359, allocations: 2.18 MB / 408 MB, free: 48.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.3365, allocations: 397.8 kB / 408.4 MB, free: 47.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.3367, allocations: 31.98 kB / 408.4 MB, free: 47.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005724/0.3373, allocations: 95.88 kB / 408.5 MB, free: 47.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3374, allocations: 104.3 kB / 408.6 MB, free: 47.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.24e-05/0.3375, allocations: 58.59 kB / 408.7 MB, free: 47.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001494/0.339, allocations: 1.318 MB / 410 MB, free: 46.06 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.339, allocations: 0 / 410 MB, free: 46.06 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003685/0.3426, allocations: 0.8788 MB / 410.9 MB, free: 45.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (121): * Single equations (assignments): 117 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003759/0.343, allocations: 196.5 kB / 411 MB, free: 44.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003692/0.3467, allocations: 2.681 MB / 413.7 MB, free: 42.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3467, allocations: 0 / 413.7 MB, free: 42.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.3473, allocations: 0.6375 MB / 414.4 MB, free: 41.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.3487, allocations: 335 kB / 414.7 MB, free: 41.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007531/0.3563, allocations: 6.511 MB / 421.2 MB, free: 34.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007513/0.357, allocations: 1.036 MB / 422.2 MB, free: 33.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002012/0.359, allocations: 1.459 MB / 423.7 MB, free: 32.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.3594, allocations: 204.5 kB / 423.9 MB, free: 31.93 MB / 330.7 MB Notification: Performance of SimCode: time 2.335e-06/0.3594, allocations: 4 kB / 423.9 MB, free: 31.93 MB / 330.7 MB Notification: Performance of Templates: time 0.03245/0.3919, allocations: 22.48 MB / 446.4 MB, free: 9.559 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.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: 3.831866153050214]