Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009258/0.0009258, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001378/0.002304, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008683/0.0008683, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001232/0.0021, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9597/0.9597, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08433/1.044, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.27e-05, allocations: 2.312 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008168/0.008191, allocations: 9.869 MB / 249.4 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.01462, allocations: 3.931 MB / 253.4 MB, free: 5.293 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.0161, allocations: 63.69 kB / 253.4 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.01919, allocations: 2.117 MB / 255.5 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003661/0.02285, allocations: 1.722 MB / 257.3 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.02425, allocations: 0.7014 MB / 258 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004062/0.02831, allocations: 3.587 MB / 261.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.03077, allocations: 2.33 MB / 263.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.03309, allocations: 2.067 MB / 266 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.03486, allocations: 1.75 MB / 267.7 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000402/0.03526, allocations: 260 kB / 268 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.03698, allocations: 1.096 MB / 269.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.038, allocations: 1.504 MB / 270.6 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009302/0.03893, allocations: 0.8646 MB / 271.4 MB, free: 3.125 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1243/0.1633, allocations: 3.725 MB / 275.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.548e-05/0.1633, allocations: 3.5 kB / 275.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1633, allocations: 0 / 275.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002253/0.1635, allocations: 1.25 kB / 275.1 MB, free: 9.742 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.006305/0.1698, allocations: 4.66 MB / 279.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1699, allocations: 13.44 kB / 279.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003556/0.1734, allocations: 1.02 MB / 280.8 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002335/0.1757, allocations: 1.422 MB / 282.3 MB, free: 7.598 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.1759, allocations: 203.8 kB / 282.5 MB, free: 7.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004263/0.1763, allocations: 279.9 kB / 282.7 MB, free: 7.582 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00684/0.1832, allocations: 4.666 MB / 287.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.983e-05/0.1832, allocations: 40.58 kB / 287.4 MB, free: 5.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002994/0.1835, allocations: 135.3 kB / 287.6 MB, free: 5.676 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001704/0.1852, allocations: 1.594 MB / 289.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005056/0.1903, allocations: 2.394 MB / 291.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/0.2132, allocations: 28.89 MB / 320.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.2174, allocations: 1.746 MB / 322.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006183/0.218, allocations: 387.3 kB / 322.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004991/0.223, allocations: 3.38 MB / 326 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.2231, allocations: 51.22 kB / 326 MB, free: 9.441 MB / 298.7 MB Notification: Performance of pre-optimization done (n=135): time 4.529e-06/0.2231, allocations: 0 / 326 MB, free: 9.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=145): time 0.01124/0.2343, allocations: 4.716 MB / 330.7 MB, free: 4.773 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.2344, allocations: 145.5 kB / 330.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/0.2365, allocations: 2.787 MB / 333.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.26e-05/0.2366, allocations: 41.7 kB / 333.7 MB, free: 2.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/0.238, allocations: 2.8 MB / 336.5 MB, free: 15.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.2384, allocations: 0.5993 MB / 337.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007833/0.2392, allocations: 1.067 MB / 338.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.776e-05/0.2393, allocations: 305.1 kB / 338.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009896/0.2403, allocations: 0.6632 MB / 339.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002806/0.2431, allocations: 4.131 MB / 343.2 MB, free: 7.383 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004233/0.2473, allocations: 5.325 MB / 348.6 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.927e-05/0.2474, allocations: 36 kB / 348.6 MB, free: 0.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004315/0.2517, allocations: 3.851 MB / 352.5 MB, free: 12.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.502e-05/0.2517, allocations: 67.88 kB / 352.5 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.683e-05/0.2518, allocations: 128 kB / 352.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/0.2523, allocations: 300.4 kB / 352.9 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00223/0.2546, allocations: 1.412 MB / 354.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.2564, allocations: 1.932 MB / 356.3 MB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/0.2589, allocations: 247.7 kB / 356.5 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/0.2592, allocations: 307.9 kB / 356.8 MB, free: 8.363 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.001092/0.2603, allocations: 0.5823 MB / 357.4 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.2606, allocations: 179.8 kB / 357.6 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009915/0.2616, allocations: 0.7525 MB / 358.3 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.2616, allocations: 16 kB / 358.4 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2616, allocations: 4 kB / 358.4 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.2617, allocations: 7.969 kB / 358.4 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004305/0.266, allocations: 3.354 MB / 361.7 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.266, allocations: 20.08 kB / 361.7 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/0.2665, allocations: 227.7 kB / 362 MB, free: 3.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.2669, allocations: 265 kB / 362.2 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000775/0.2677, allocations: 283.2 kB / 362.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.2678, allocations: 35.98 kB / 362.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.2691, allocations: 1.703 MB / 364.2 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/0.2691, allocations: 11.94 kB / 364.2 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.2708, allocations: 1.671 MB / 365.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004001/0.2712, allocations: 36.05 kB / 366 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.2717, allocations: 32 kB / 366 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.2718, allocations: 104.2 kB / 366.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-05/0.2719, allocations: 39.98 kB / 366.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009875/0.2729, allocations: 0.9909 MB / 367.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2729, allocations: 0 / 367.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003028/0.2759, allocations: 0.8671 MB / 368 MB, free: 13.49 MB / 346.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.0003921/0.2763, allocations: 179.4 kB / 368.2 MB, free: 13.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002962/0.2793, allocations: 2.302 MB / 370.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001733/0.2794, allocations: 99.59 kB / 370.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005135/0.28, allocations: 497.1 kB / 371 MB, free: 10.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.2817, allocations: 0.7082 MB / 371.8 MB, free: 9.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009074/0.2908, allocations: 6.5 MB / 378.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008206/0.2916, allocations: 1.033 MB / 379.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000989/0.2926, allocations: 448.1 kB / 379.7 MB, free: 1.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005609/0.2932, allocations: 481.2 kB / 380.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of SimCode: time 1.202e-06/0.2932, allocations: 0 / 380.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of Templates: time 0.03684/0.33, allocations: 24.37 MB / 404.6 MB, free: 9.141 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.506036762148142]