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.0009724/0.0009724, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.001059/0.001059, allocations: 168.5 kB / 25.61 MB, free: 8.887 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.9276/0.9276, allocations: 158.6 MB / 187.5 MB, free: 2.812 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.844e-06/1.844e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.666e-05, allocations: 6.25 kB / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01123/0.01126, allocations: 9.774 MB / 261.3 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006441/0.0177, allocations: 3.758 MB / 265 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001411/0.01911, allocations: 67.69 kB / 265.1 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.02163, allocations: 2.192 MB / 267.3 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003278/0.02491, allocations: 1.765 MB / 269 MB, free: 5.598 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.02613, allocations: 0.7521 MB / 269.8 MB, free: 4.844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003587/0.02972, allocations: 3.739 MB / 273.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/0.03246, allocations: 2.56 MB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002509/0.03497, allocations: 2.015 MB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002167/0.03713, allocations: 1.855 MB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005642/0.0377, allocations: 260 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.03906, allocations: 1.053 MB / 281.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.04015, allocations: 1.691 MB / 283 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.04143, allocations: 1.067 MB / 284 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.04567, allocations: 4.028 MB / 288.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.04567, allocations: 0 / 288.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.04567, allocations: 0 / 288.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001454/0.04582, allocations: 0 / 288.1 MB, free: 2.488 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.005649/0.05147, allocations: 4.365 MB / 292.4 MB, free: 14.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.05151, allocations: 15.98 kB / 292.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003165/0.05468, allocations: 1.368 MB / 293.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.05667, allocations: 1.57 MB / 295.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.05678, allocations: 217.1 kB / 295.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003495/0.05713, allocations: 267.8 kB / 295.8 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007641/0.06477, allocations: 5.254 MB / 301.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.565e-05/0.06486, allocations: 39.67 kB / 301.1 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.06518, allocations: 135.9 kB / 301.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001493/0.06667, allocations: 1.583 MB / 302.9 MB, free: 2.656 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005619/0.07229, allocations: 2.416 MB / 305.3 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03235/0.1046, allocations: 40.37 MB / 345.6 MB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005404/0.11, allocations: 1.814 MB / 347.5 MB, free: 4.652 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008898/0.1109, allocations: 493.5 kB / 347.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006005/0.1169, allocations: 3.634 MB / 351.6 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.117, allocations: 50.05 kB / 351.6 MB, free: 432 kB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 6.703e-06/0.117, allocations: 4 kB / 351.6 MB, free: 428 kB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.1364/0.2534, allocations: 5.448 MB / 357.1 MB, free: 96.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.2534, allocations: 146.4 kB / 357.2 MB, free: 96.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.2567, allocations: 3.131 MB / 360.3 MB, free: 95.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.2568, allocations: 48.23 kB / 360.4 MB, free: 95.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/0.2582, allocations: 3.097 MB / 363.5 MB, free: 93.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004459/0.2587, allocations: 0.6172 MB / 364.1 MB, free: 93.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/0.2599, allocations: 1.236 MB / 365.3 MB, free: 93.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.263e-05/0.2599, allocations: 487.5 kB / 365.8 MB, free: 92.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.2609, allocations: 0.5011 MB / 366.3 MB, free: 92.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002565/0.2635, allocations: 5.839 MB / 372.2 MB, free: 86.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/0.2679, allocations: 6.988 MB / 379.1 MB, free: 77.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.184e-05/0.268, allocations: 36 kB / 379.2 MB, free: 77.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.00602/0.274, allocations: 4.534 MB / 383.7 MB, free: 73.69 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.274, allocations: 60 kB / 383.8 MB, free: 73.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/0.2742, allocations: 128 kB / 383.9 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006182/0.2748, allocations: 304.9 kB / 384.2 MB, free: 73.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.2773, allocations: 1.273 MB / 385.5 MB, free: 72.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.279, allocations: 2.47 MB / 387.9 MB, free: 69.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/0.282, allocations: 249 kB / 388.2 MB, free: 69.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003295/0.2823, allocations: 304 kB / 388.5 MB, free: 69.07 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.001075/0.2834, allocations: 0.6375 MB / 389.1 MB, free: 68.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004414/0.2838, allocations: 326.1 kB / 389.4 MB, free: 68.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.2851, allocations: 0.8634 MB / 390.3 MB, free: 67.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/0.2851, allocations: 17.88 kB / 390.3 MB, free: 67.22 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.2852, allocations: 7.938 kB / 390.3 MB, free: 67.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.2852, allocations: 3.984 kB / 390.3 MB, free: 67.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005617/0.2908, allocations: 4.005 MB / 394.3 MB, free: 63.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.2908, allocations: 8 kB / 394.3 MB, free: 63.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005717/0.2914, allocations: 207.7 kB / 394.5 MB, free: 62.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004348/0.2918, allocations: 139.5 kB / 394.7 MB, free: 62.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/0.2919, allocations: 35.98 kB / 394.7 MB, free: 62.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.2932, allocations: 2.245 MB / 397 MB, free: 60.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/0.2932, allocations: 11.94 kB / 397 MB, free: 60.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.2951, allocations: 2.027 MB / 399 MB, free: 58.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006567/0.2958, allocations: 365.8 kB / 399.4 MB, free: 57.85 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.2961, allocations: 32 kB / 399.4 MB, free: 57.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007406/0.2968, allocations: 33.69 kB / 399.4 MB, free: 57.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2969, allocations: 112.2 kB / 399.5 MB, free: 57.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-05/0.297, allocations: 36 kB / 399.6 MB, free: 57.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001209/0.2982, allocations: 1.235 MB / 400.8 MB, free: 56.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2982, allocations: 0 / 400.8 MB, free: 56.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003641/0.3018, allocations: 0.8749 MB / 401.7 MB, free: 55.53 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.0003607/0.3022, allocations: 198.8 kB / 401.9 MB, free: 55.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.3055, allocations: 2.528 MB / 404.4 MB, free: 52.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.3055, allocations: 0 / 404.4 MB, free: 52.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006473/0.3061, allocations: 0.6054 MB / 405 MB, free: 52.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.3078, allocations: 328.2 kB / 405.3 MB, free: 51.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008849/0.3167, allocations: 6.471 MB / 411.8 MB, free: 45.22 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008839/0.3176, allocations: 1.034 MB / 412.8 MB, free: 44.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001212/0.3188, allocations: 451.7 kB / 413.3 MB, free: 43.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005677/0.3193, allocations: 0.502 MB / 413.8 MB, free: 43.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.783e-06/0.3193, allocations: 3.938 kB / 413.8 MB, free: 43.22 MB / 330.7 MB Notification: Performance of Templates: time 0.03484/0.3542, allocations: 24.12 MB / 437.9 MB, free: 19.14 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.83981298469007]