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.001173/0.001173, allocations: 75.77 kB / 22.46 MB, free: 2.09 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.0009189/0.0009189, allocations: 164.4 kB / 25.74 MB, free: 8.594 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.9908/0.9908, allocations: 158.6 MB / 187.5 MB, free: 2.895 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 2.214e-06/2.214e-06, allocations: 3.938 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.984e-05/3.205e-05, allocations: 2.312 kB / 251.1 MB, free: 7.77 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01219/0.01222, allocations: 10.05 MB / 261.2 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006928/0.01915, allocations: 3.785 MB / 265 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001707/0.02085, allocations: 59.75 kB / 265 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003206/0.02406, allocations: 2.231 MB / 267.2 MB, free: 7.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00339/0.02745, allocations: 1.757 MB / 269 MB, free: 5.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.0287, allocations: 0.7443 MB / 269.7 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004234/0.03293, allocations: 3.727 MB / 273.5 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002471/0.0354, allocations: 2.567 MB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.03771, allocations: 1.945 MB / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.04001, allocations: 1.917 MB / 279.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004747/0.04049, allocations: 268 kB / 280.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.04194, allocations: 1.069 MB / 281.2 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.04314, allocations: 1.706 MB / 282.9 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.04424, allocations: 1.071 MB / 284 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004526/0.04876, allocations: 4.059 MB / 288.1 MB, free: 2.652 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.04877, allocations: 0 / 288.1 MB, free: 2.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.04877, allocations: 0 / 288.1 MB, free: 2.652 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001019/0.04887, allocations: 0 / 288.1 MB, free: 2.652 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.005154/0.05402, allocations: 4.521 MB / 292.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.05407, allocations: 11.98 kB / 292.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004422/0.05849, allocations: 2.331 MB / 294.9 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.06105, allocations: 1.739 MB / 296.7 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.06117, allocations: 205.1 kB / 296.9 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004287/0.0616, allocations: 275.8 kB / 297.1 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009579/0.07118, allocations: 6.561 MB / 303.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-05/0.07125, allocations: 35.73 kB / 303.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002793/0.07153, allocations: 143.8 kB / 303.9 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001805/0.07333, allocations: 1.848 MB / 305.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007802/0.08114, allocations: 3.922 MB / 309.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02921/0.1103, allocations: 40.81 MB / 350.5 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1333/0.2437, allocations: 2.159 MB / 352.6 MB, free: 85.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.2451, allocations: 0.6357 MB / 353.2 MB, free: 85.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006379/0.2515, allocations: 4.603 MB / 357.9 MB, free: 84.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.2515, allocations: 56.56 kB / 357.9 MB, free: 84.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=150): time 4.408e-06/0.2515, allocations: 0 / 357.9 MB, free: 84.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=166): time 0.02635/0.2778, allocations: 13.41 MB / 371.3 MB, free: 81.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.2779, allocations: 145.5 kB / 371.5 MB, free: 81.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002666/0.2806, allocations: 3.028 MB / 374.5 MB, free: 79.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.2807, allocations: 48.7 kB / 374.5 MB, free: 79.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.2818, allocations: 3 MB / 377.5 MB, free: 77.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004583/0.2822, allocations: 0.683 MB / 378.2 MB, free: 76.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008268/0.2831, allocations: 1.204 MB / 379.4 MB, free: 75.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.2831, allocations: 480.8 kB / 379.9 MB, free: 75.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009848/0.2841, allocations: 0.6628 MB / 380.6 MB, free: 74.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.2863, allocations: 5.734 MB / 386.3 MB, free: 66.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004484/0.2908, allocations: 7.067 MB / 393.4 MB, free: 57.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.184e-05/0.2908, allocations: 36 kB / 393.4 MB, free: 57.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.00755/0.2984, allocations: 5.607 MB / 399 MB, free: 52.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.846e-05/0.2984, allocations: 56 kB / 399 MB, free: 52.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.307e-05/0.2985, allocations: 120.8 kB / 399.2 MB, free: 52.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/0.3006, allocations: 0.928 MB / 400.1 MB, free: 51.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/0.3026, allocations: 1.268 MB / 401.4 MB, free: 50 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003511/0.3061, allocations: 3.592 MB / 405 MB, free: 46.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003298/0.3094, allocations: 343.5 kB / 405.3 MB, free: 45.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005465/0.3099, allocations: 340 kB / 405.6 MB, free: 45.63 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (685): * Single equations (assignments): 681 * 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,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001228/0.3112, allocations: 0.6126 MB / 406.2 MB, free: 45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006146/0.3118, allocations: 334.1 kB / 406.6 MB, free: 44.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/0.3148, allocations: 1.969 MB / 408.5 MB, free: 42.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.222e-05/0.3149, allocations: 20 kB / 408.5 MB, free: 42.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3149, allocations: 4 kB / 408.6 MB, free: 42.67 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.3149, allocations: 11.92 kB / 408.6 MB, free: 42.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006969/0.3219, allocations: 5.167 MB / 413.7 MB, free: 37.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.3219, allocations: 3.938 kB / 413.7 MB, free: 37.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.3224, allocations: 245.1 kB / 414 MB, free: 37.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/0.3242, allocations: 0.7483 MB / 414.7 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.471e-05/0.3243, allocations: 35.94 kB / 414.8 MB, free: 36.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003199/0.3275, allocations: 3.294 MB / 418.1 MB, free: 33.03 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3275, allocations: 4.031 kB / 418.1 MB, free: 33.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004452/0.3319, allocations: 3.019 MB / 421.1 MB, free: 29.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009794/0.3329, allocations: 469.8 kB / 421.5 MB, free: 29.51 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.3332, allocations: 28 kB / 421.6 MB, free: 29.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/0.334, allocations: 123.8 kB / 421.7 MB, free: 29.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.3342, allocations: 104.7 kB / 421.8 MB, free: 29.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.216e-05/0.3343, allocations: 40 kB / 421.8 MB, free: 29.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001364/0.3357, allocations: 1.286 MB / 423.1 MB, free: 27.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3357, allocations: 0 / 423.1 MB, free: 27.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003636/0.3393, allocations: 0.995 MB / 424.1 MB, free: 26.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004418/0.3398, allocations: 190 kB / 424.3 MB, free: 26.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00429/0.344, allocations: 3.001 MB / 427.3 MB, free: 23.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.344, allocations: 0 / 427.3 MB, free: 23.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.3452, allocations: 0.8797 MB / 428.2 MB, free: 22.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.3468, allocations: 311.8 kB / 428.5 MB, free: 22.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008979/0.3558, allocations: 6.566 MB / 435 MB, free: 15.94 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009011/0.3567, allocations: 1.045 MB / 436.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002159/0.3589, allocations: 1.443 MB / 437.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.3593, allocations: 208.5 kB / 437.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of SimCode: time 2.305e-06/0.3593, allocations: 0 / 437.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of Templates: time 0.0433/0.4026, allocations: 29.63 MB / 467.4 MB, free: 15.59 MB / 362.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: 4.014597399858758]