Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001024/0.001024, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001691/0.002714, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001062/0.001062, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001234/0.002296, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.8692/0.8692, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1438/1.013, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 222 MB, free: 60 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.313e-05/1.432e-05, allocations: 2.312 kB / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005737/0.005752, allocations: 7.175 MB / 229.2 MB, free: 8.84 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004647/0.0104, allocations: 3.261 MB / 232.4 MB, free: 5.566 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005988/0.011, allocations: 39.81 kB / 232.5 MB, free: 5.527 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.01216, allocations: 1.055 MB / 233.5 MB, free: 4.469 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002026/0.01418, allocations: 1.423 MB / 234.9 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008389/0.01502, allocations: 462.9 kB / 235.4 MB, free: 2.586 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003085/0.01811, allocations: 2.848 MB / 238.2 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.01941, allocations: 1.43 MB / 239.7 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.02071, allocations: 1.385 MB / 241.1 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/0.0219, allocations: 1.348 MB / 242.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001898/0.02209, allocations: 176 kB / 242.6 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.02336, allocations: 1.002 MB / 243.6 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006779/0.02404, allocations: 1.079 MB / 244.7 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000545/0.02458, allocations: 0.5958 MB / 245.3 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003249/0.02783, allocations: 2.767 MB / 248 MB, free: 5.902 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.32e-05/0.02784, allocations: 0 / 248 MB, free: 5.902 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.02785, allocations: 0 / 248 MB, free: 5.902 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.0279, allocations: 4 kB / 248 MB, free: 5.898 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.003294/0.03119, allocations: 3.368 MB / 251.4 MB, free: 2.473 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.03123, allocations: 8.031 kB / 251.4 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002449/0.03368, allocations: 0.8864 MB / 252.3 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.03496, allocations: 1.052 MB / 253.3 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.087e-05/0.03503, allocations: 135.4 kB / 253.5 MB, free: 368 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003827/0.03542, allocations: 255.6 kB / 253.7 MB, free: 112 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003203/0.03862, allocations: 3.259 MB / 257 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.025e-05/0.03867, allocations: 27.7 kB / 257 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001628/0.03883, allocations: 87.89 kB / 257.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001012/0.03985, allocations: 1.121 MB / 258.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003063/0.04291, allocations: 1.855 MB / 260.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.05856, allocations: 20.11 MB / 280.2 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.06065, allocations: 1.073 MB / 281.3 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.06095, allocations: 256.9 kB / 281.5 MB, free: 3.023 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002841/0.06379, allocations: 2.215 MB / 283.7 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.06382, allocations: 54.97 kB / 283.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 3.647e-06/0.06383, allocations: 0 / 283.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.1291/0.1929, allocations: 4.021 MB / 287.8 MB, free: 48.19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007115/0.1936, allocations: 1.469 MB / 289.3 MB, free: 46.72 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/0.1964, allocations: 2.18 MB / 291.4 MB, free: 46.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.1965, allocations: 44.86 kB / 291.5 MB, free: 46.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009822/0.1975, allocations: 2.083 MB / 293.6 MB, free: 44.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.198, allocations: 0.5197 MB / 294.1 MB, free: 44.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009127/0.1989, allocations: 0.8486 MB / 294.9 MB, free: 44.44 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.199, allocations: 362.7 kB / 295.3 MB, free: 44.13 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.2001, allocations: 0.623 MB / 295.9 MB, free: 44.11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/0.202, allocations: 3.304 MB / 299.2 MB, free: 40.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003243/0.2052, allocations: 4.673 MB / 303.9 MB, free: 36.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.166e-05/0.2053, allocations: 28.84 kB / 303.9 MB, free: 36.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006655/0.2119, allocations: 3.756 MB / 307.7 MB, free: 35.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.212, allocations: 46.41 kB / 307.7 MB, free: 35.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.758e-05/0.2121, allocations: 109.3 kB / 307.8 MB, free: 35.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003747/0.2158, allocations: 0.8565 MB / 308.7 MB, free: 35.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.2175, allocations: 1.08 MB / 309.8 MB, free: 35.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.2214, allocations: 4.016 MB / 313.8 MB, free: 32.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.2238, allocations: 210.7 kB / 314 MB, free: 32.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/0.224, allocations: 249.4 kB / 314.2 MB, free: 32.18 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008809/0.2249, allocations: 491.3 kB / 314.7 MB, free: 31.76 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002428/0.2252, allocations: 146.4 kB / 314.9 MB, free: 31.62 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.2271, allocations: 1.164 MB / 316 MB, free: 30.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00159/0.2287, allocations: 0.8444 MB / 316.9 MB, free: 29.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.2287, allocations: 4 kB / 316.9 MB, free: 29.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.2287, allocations: 7.984 kB / 316.9 MB, free: 29.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.2333, allocations: 3.191 MB / 320.1 MB, free: 26.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/0.2333, allocations: 8 kB / 320.1 MB, free: 26.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004137/0.2337, allocations: 159.8 kB / 320.2 MB, free: 26.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003901/0.2341, allocations: 222 kB / 320.5 MB, free: 26.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.236, allocations: 0.7846 MB / 321.2 MB, free: 25.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-05/0.2361, allocations: 31.97 kB / 321.3 MB, free: 25.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.239, allocations: 3.732 MB / 325 MB, free: 21.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004035/0.2394, allocations: 1.339 MB / 326.3 MB, free: 19.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.2419, allocations: 1.939 MB / 328.3 MB, free: 17.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.2423, allocations: 28.62 kB / 328.3 MB, free: 17.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.2429, allocations: 23.94 kB / 328.3 MB, free: 17.92 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.2431, allocations: 80.42 kB / 328.4 MB, free: 17.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.2431, allocations: 34.16 kB / 328.4 MB, free: 17.81 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006785/0.2438, allocations: 0.7635 MB / 329.2 MB, free: 17.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2438, allocations: 0 / 329.2 MB, free: 17.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002836/0.2467, allocations: 0.871 MB / 330.1 MB, free: 16.15 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003589/0.247, allocations: 168.1 kB / 330.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003028/0.2501, allocations: 2.403 MB / 332.6 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.679e-05/0.2501, allocations: 71.88 kB / 332.7 MB, free: 13.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.2515, allocations: 1.13 MB / 333.8 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.2529, allocations: 1.646 MB / 335.5 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.2591, allocations: 5.063 MB / 340.6 MB, free: 5.414 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.2597, allocations: 0.7939 MB / 341.3 MB, free: 4.598 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008212/0.2605, allocations: 331.7 kB / 341.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004387/0.2609, allocations: 373.2 kB / 342 MB, free: 3.902 MB / 282.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2609, allocations: 0 / 342 MB, free: 3.902 MB / 282.7 MB Notification: Performance of Templates: time 0.03929/0.3002, allocations: 29.98 MB / 372 MB, free: 5.816 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1537346793338656]