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.001472/0.001472, allocations: 80.92 kB / 22.28 MB, free: 2.207 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.001437/0.001437, allocations: 166.7 kB / 25.7 MB, free: 8.391 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.9976/0.9976, allocations: 158.6 MB / 187.6 MB, free: 2.793 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.603e-06/1.603e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.407e-05, allocations: 6.25 kB / 251.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.008677/0.008701, allocations: 9.841 MB / 261.4 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006756/0.01546, allocations: 3.897 MB / 265.3 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.01665, allocations: 63.69 kB / 265.4 MB, free: 9.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002806/0.01946, allocations: 2.188 MB / 267.6 MB, free: 7.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00306/0.02252, allocations: 1.734 MB / 269.3 MB, free: 5.414 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.02379, allocations: 0.7482 MB / 270 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004005/0.02779, allocations: 3.742 MB / 273.8 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002741/0.03053, allocations: 2.52 MB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00269/0.03322, allocations: 1.968 MB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002215/0.03544, allocations: 1.773 MB / 280 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006533/0.03609, allocations: 260 kB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.0381, allocations: 1.084 MB / 281.4 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001452/0.03955, allocations: 1.691 MB / 283.1 MB, free: 7.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.04087, allocations: 1.063 MB / 284.1 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005003/0.04588, allocations: 4.036 MB / 288.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.04588, allocations: 0 / 288.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.04588, allocations: 0 / 288.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001708/0.04605, allocations: 3.938 kB / 288.2 MB, free: 2.422 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.004757/0.05081, allocations: 3.857 MB / 292 MB, free: 14.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.05086, allocations: 11.98 kB / 292 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002568/0.05342, allocations: 1.019 MB / 293.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.0553, allocations: 1.453 MB / 294.5 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.0554, allocations: 209.1 kB / 294.7 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002878/0.05569, allocations: 267.9 kB / 295 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005829/0.06151, allocations: 4.666 MB / 299.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.987e-05/0.06158, allocations: 35.67 kB / 299.7 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002286/0.06181, allocations: 135.9 kB / 299.8 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/0.06315, allocations: 1.583 MB / 301.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004994/0.06815, allocations: 2.393 MB / 303.8 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0232/0.09135, allocations: 28.9 MB / 332.7 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003724/0.09507, allocations: 1.76 MB / 334.5 MB, free: 2.219 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000617/0.09569, allocations: 410.1 kB / 334.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005037/0.1007, allocations: 3.399 MB / 338.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1008, allocations: 47.22 kB / 338.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.497e-06/0.1008, allocations: 0 / 338.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01077/0.1115, allocations: 4.814 MB / 343.1 MB, free: 9.441 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.1116, allocations: 141.5 kB / 343.3 MB, free: 9.273 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.1144, allocations: 2.806 MB / 346.1 MB, free: 6.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.1145, allocations: 41.7 kB / 346.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.1158, allocations: 2.798 MB / 348.9 MB, free: 3.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/0.1163, allocations: 0.5892 MB / 349.5 MB, free: 2.977 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008846/0.1172, allocations: 1.069 MB / 350.6 MB, free: 1.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.1173, allocations: 305.1 kB / 350.9 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009826/0.1182, allocations: 0.6671 MB / 351.5 MB, free: 0.918 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1147/0.233, allocations: 4.127 MB / 355.6 MB, free: 90.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003656/0.2366, allocations: 5.313 MB / 361 MB, free: 85.35 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-05/0.2367, allocations: 36.47 kB / 361 MB, free: 85.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.00529/0.242, allocations: 3.86 MB / 364.9 MB, free: 84.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.982e-05/0.2421, allocations: 66.72 kB / 364.9 MB, free: 84.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.2422, allocations: 126.7 kB / 365 MB, free: 84.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.2427, allocations: 301.6 kB / 365.3 MB, free: 84.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/0.2451, allocations: 1.323 MB / 366.7 MB, free: 84.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.2466, allocations: 1.926 MB / 368.6 MB, free: 82.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0028/0.2494, allocations: 248.1 kB / 368.8 MB, free: 82.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004159/0.2499, allocations: 304.7 kB / 369.1 MB, free: 82.75 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.001147/0.251, allocations: 0.5912 MB / 369.7 MB, free: 82.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.2513, allocations: 187.2 kB / 369.9 MB, free: 82.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009776/0.2523, allocations: 0.7475 MB / 370.6 MB, free: 82.4 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/0.2523, allocations: 18.8 kB / 370.7 MB, free: 82.4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.2523, allocations: 3.219 kB / 370.7 MB, free: 82.4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.2523, allocations: 3.703 kB / 370.7 MB, free: 82.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004503/0.2568, allocations: 3.365 MB / 374 MB, free: 80.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.2568, allocations: 19.7 kB / 374.1 MB, free: 80.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.2573, allocations: 215.8 kB / 374.3 MB, free: 80.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004913/0.2578, allocations: 290.3 kB / 374.6 MB, free: 80.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/0.2579, allocations: 33.92 kB / 374.6 MB, free: 80.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.2589, allocations: 1.699 MB / 376.3 MB, free: 78.86 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.2589, allocations: 15.88 kB / 376.3 MB, free: 78.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.2603, allocations: 1.671 MB / 378 MB, free: 77.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004896/0.2608, allocations: 348.9 kB / 378.3 MB, free: 77.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.261, allocations: 32.02 kB / 378.3 MB, free: 77.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005016/0.2615, allocations: 32.56 kB / 378.4 MB, free: 77.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.2616, allocations: 104.1 kB / 378.5 MB, free: 77.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/0.2617, allocations: 39 kB / 378.5 MB, free: 77.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007608/0.2624, allocations: 0.9988 MB / 379.5 MB, free: 76.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2624, allocations: 0 / 379.5 MB, free: 76.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003117/0.2656, allocations: 0.8747 MB / 380.4 MB, free: 75.76 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.0003271/0.2659, allocations: 184.1 kB / 380.6 MB, free: 75.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.2687, allocations: 2.298 MB / 382.9 MB, free: 73.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001378/0.2688, allocations: 92.16 kB / 383 MB, free: 73.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004718/0.2693, allocations: 498.1 kB / 383.4 MB, free: 73.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.2708, allocations: 0.4988 MB / 383.9 MB, free: 72.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007204/0.278, allocations: 6.335 MB / 390.3 MB, free: 66.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007767/0.2788, allocations: 1.028 MB / 391.3 MB, free: 65.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001072/0.2798, allocations: 449.6 kB / 391.7 MB, free: 64.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/0.2804, allocations: 481.2 kB / 392.2 MB, free: 64.24 MB / 330.7 MB Notification: Performance of SimCode: time 1.804e-06/0.2804, allocations: 0 / 392.2 MB, free: 64.24 MB / 330.7 MB Notification: Performance of Templates: time 0.03364/0.3141, allocations: 24.05 MB / 416.3 MB, free: 40.32 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 -s gbode -gbm=radauIIA3 -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.787599178031087]