Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001385/0.001385, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.002758/0.002758, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8828/0.8828, allocations: 177.1 MB / 205.3 MB, free: 4.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273.5 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.88e-05/2.036e-05, allocations: 2.312 kB / 273.5 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01132/0.01135, allocations: 9.73 MB / 283.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008772/0.02012, allocations: 3.908 MB / 287.1 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.02164, allocations: 59.75 kB / 287.2 MB, free: 6.684 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003452/0.02509, allocations: 2.227 MB / 289.4 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003529/0.02862, allocations: 1.722 MB / 291.1 MB, free: 2.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.03002, allocations: 0.7522 MB / 291.9 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004515/0.03453, allocations: 3.765 MB / 295.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003302/0.03784, allocations: 2.606 MB / 298.2 MB, free: 11.51 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003101/0.04094, allocations: 1.98 MB / 300.2 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002929/0.04387, allocations: 1.761 MB / 302 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006559/0.04452, allocations: 260 kB / 302.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.04628, allocations: 1.041 MB / 303.3 MB, free: 6.465 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001499/0.04778, allocations: 1.663 MB / 304.9 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.04923, allocations: 1.047 MB / 306 MB, free: 3.746 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005023/0.05426, allocations: 3.966 MB / 309.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.05426, allocations: 0 / 309.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.05426, allocations: 0 / 309.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000119/0.05438, allocations: 0 / 309.9 MB, free: 15.77 MB / 298.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.006291/0.06067, allocations: 3.846 MB / 313.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.06071, allocations: 12.03 kB / 313.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003974/0.06468, allocations: 1.015 MB / 314.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.06714, allocations: 1.425 MB / 316.2 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.06729, allocations: 209.1 kB / 316.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004703/0.06776, allocations: 271.9 kB / 316.7 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008098/0.07586, allocations: 4.693 MB / 321.4 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-05/0.07595, allocations: 35.69 kB / 321.4 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003577/0.07631, allocations: 131.9 kB / 321.6 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002342/0.07865, allocations: 1.579 MB / 323.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00688/0.08553, allocations: 2.424 MB / 325.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02935/0.1149, allocations: 28.89 MB / 354.5 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1022/0.2171, allocations: 1.778 MB / 356.2 MB, free: 79.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.2178, allocations: 394.3 kB / 356.6 MB, free: 79.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004638/0.2224, allocations: 3.398 MB / 360 MB, free: 78.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.2225, allocations: 49 kB / 360.1 MB, free: 78.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.847e-06/0.2225, allocations: 1.156 kB / 360.1 MB, free: 78.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01013/0.2326, allocations: 4.83 MB / 364.9 MB, free: 77.96 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.2326, allocations: 146.2 kB / 365 MB, free: 77.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.2343, allocations: 2.782 MB / 367.8 MB, free: 77.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/0.2344, allocations: 46.52 kB / 367.9 MB, free: 77.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006897/0.2351, allocations: 2.8 MB / 370.7 MB, free: 75.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.2353, allocations: 0.5938 MB / 371.3 MB, free: 75.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006562/0.236, allocations: 1.059 MB / 372.3 MB, free: 75.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.361e-05/0.236, allocations: 308.6 kB / 372.6 MB, free: 74.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008724/0.2369, allocations: 0.6704 MB / 373.3 MB, free: 74.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.2384, allocations: 4.134 MB / 377.4 MB, free: 69.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.2409, allocations: 5.327 MB / 382.8 MB, free: 64.06 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.683e-05/0.2409, allocations: 36 kB / 382.8 MB, free: 64.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.003284/0.2442, allocations: 3.85 MB / 386.6 MB, free: 60.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.2442, allocations: 60 kB / 386.7 MB, free: 60.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.566e-05/0.2443, allocations: 128 kB / 386.8 MB, free: 60.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.2447, allocations: 303.9 kB / 387.1 MB, free: 60.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001782/0.2465, allocations: 1.263 MB / 388.4 MB, free: 58.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.2476, allocations: 1.931 MB / 390.3 MB, free: 56.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.2492, allocations: 251.8 kB / 390.6 MB, free: 56.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/0.2494, allocations: 303.9 kB / 390.9 MB, free: 56.2 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.0007097/0.2501, allocations: 0.5874 MB / 391.5 MB, free: 55.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2503, allocations: 184.7 kB / 391.6 MB, free: 55.42 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007908/0.2511, allocations: 0.7525 MB / 392.4 MB, free: 54.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.2511, allocations: 16 kB / 392.4 MB, free: 54.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2511, allocations: 4 kB / 392.4 MB, free: 54.63 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2511, allocations: 3.984 kB / 392.4 MB, free: 54.63 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.2543, allocations: 3.353 MB / 395.8 MB, free: 51.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.2543, allocations: 8 kB / 395.8 MB, free: 51.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.2547, allocations: 207.7 kB / 396 MB, free: 50.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004343/0.2552, allocations: 294.7 kB / 396.3 MB, free: 50.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.727e-05/0.2552, allocations: 28 kB / 396.3 MB, free: 50.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008449/0.2561, allocations: 1.698 MB / 398 MB, free: 48.83 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.2561, allocations: 11.94 kB / 398 MB, free: 48.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.2572, allocations: 1.678 MB / 399.7 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.2574, allocations: 261.9 kB / 399.9 MB, free: 46.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.2576, allocations: 32 kB / 400 MB, free: 46.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/0.2581, allocations: 39.97 kB / 400 MB, free: 46.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.985e-05/0.2581, allocations: 105.6 kB / 400.1 MB, free: 46.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.652e-05/0.2582, allocations: 36 kB / 400.1 MB, free: 46.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000598/0.2588, allocations: 0.9808 MB / 401.1 MB, free: 45.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2588, allocations: 0 / 401.1 MB, free: 45.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002329/0.2611, allocations: 0.8515 MB / 402 MB, free: 44.74 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.0002353/0.2614, allocations: 164 kB / 402.1 MB, free: 44.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.2631, allocations: 2.307 MB / 404.4 MB, free: 42.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001266/0.2633, allocations: 95.33 kB / 404.5 MB, free: 42.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.2636, allocations: 0.4905 MB / 405 MB, free: 41.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.2648, allocations: 0.4945 MB / 405.5 MB, free: 41.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005215/0.27, allocations: 6.304 MB / 411.8 MB, free: 34.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006269/0.2706, allocations: 1.024 MB / 412.8 MB, free: 33.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008667/0.2715, allocations: 447.3 kB / 413.3 MB, free: 33.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005044/0.272, allocations: 477.2 kB / 413.7 MB, free: 32.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.272, allocations: 0 / 413.7 MB, free: 32.75 MB / 330.7 MB Notification: Performance of Templates: time 0.03169/0.3037, allocations: 23.6 MB / 437.3 MB, free: 9.449 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5674927523359656]