Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.0009684/0.0009684, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 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.0009579/0.0009579, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 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.9483/0.9483, allocations: 173.4 MB / 201.1 MB, free: 9.316 MB / 186.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.015e-05/3.193e-05, allocations: 2.312 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.006727/0.006759, allocations: 7.27 MB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004401/0.01116, allocations: 3.183 MB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004393/0.0116, allocations: 43.81 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001644/0.01324, allocations: 1.094 MB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.01597, allocations: 1.462 MB / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009232/0.01689, allocations: 498.8 kB / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003174/0.02007, allocations: 2.964 MB / 284.5 MB, free: 5.848 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001935/0.022, allocations: 1.636 MB / 286.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.02359, allocations: 1.325 MB / 287.5 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00173/0.02532, allocations: 1.422 MB / 288.9 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002841/0.02561, allocations: 172 kB / 289.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.02722, allocations: 0.9904 MB / 290 MB, free: 276 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1265/0.1538, allocations: 1.185 MB / 291.2 MB, free: 18.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.1551, allocations: 0.735 MB / 292 MB, free: 18.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003715/0.1588, allocations: 3.012 MB / 295 MB, free: 18.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1588, allocations: 0 / 295 MB, free: 18.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1589, allocations: 0 / 295 MB, free: 18.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001043/0.159, allocations: 1.156 kB / 295 MB, free: 18.75 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005379/0.1643, allocations: 3.376 MB / 298.4 MB, free: 17.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.1644, allocations: 10.25 kB / 298.4 MB, free: 17.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00446/0.1688, allocations: 2.134 MB / 300.5 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.1706, allocations: 1.222 MB / 301.7 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.527e-05/0.1707, allocations: 131.6 kB / 301.8 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004629/0.1712, allocations: 252.2 kB / 302.1 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00469/0.1759, allocations: 4.064 MB / 306.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.785e-05/0.1759, allocations: 33.48 kB / 306.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001914/0.1761, allocations: 88.48 kB / 306.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001185/0.1773, allocations: 1.362 MB / 307.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004034/0.1813, allocations: 2.425 MB / 310.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.1962, allocations: 28.59 MB / 338.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.1993, allocations: 1.411 MB / 340.1 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004852/0.1997, allocations: 377.2 kB / 340.4 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002967/0.2027, allocations: 2.566 MB / 343 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.2027, allocations: 57.02 kB / 343.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.585e-06/0.2027, allocations: 0 / 343.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01269/0.2154, allocations: 7.333 MB / 350.4 MB, free: 6.207 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009895/0.2164, allocations: 2.033 MB / 352.4 MB, free: 4.016 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.2188, allocations: 2.444 MB / 354.9 MB, free: 1.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.797e-05/0.2188, allocations: 44.83 kB / 354.9 MB, free: 1.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.22, allocations: 2.302 MB / 357.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/0.2204, allocations: 0.5414 MB / 357.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009573/0.2214, allocations: 0.9927 MB / 358.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2215, allocations: 0.5277 MB / 359.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008827/0.2224, allocations: 0.5508 MB / 359.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002824/0.2252, allocations: 4.704 MB / 364.5 MB, free: 5.977 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004267/0.2295, allocations: 5.799 MB / 370.3 MB, free: 14.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.573e-05/0.2295, allocations: 28 kB / 370.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009531/0.239, allocations: 5.713 MB / 376.1 MB, free: 8.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.2391, allocations: 44 kB / 376.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005404/0.2445, allocations: 2.329 MB / 378.4 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006174/0.2507, allocations: 2.132 MB / 380.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/0.2524, allocations: 1.018 MB / 381.6 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006271/0.2587, allocations: 5.877 MB / 387.5 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.2608, allocations: 383.2 kB / 387.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.2611, allocations: 276 kB / 388.1 MB, free: 12.28 MB / 346.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.0009942/0.262, allocations: 0.5274 MB / 388.6 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002859/0.2623, allocations: 249.8 kB / 388.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.2654, allocations: 1.709 MB / 390.6 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002657/0.268, allocations: 1.407 MB / 392 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.2681, allocations: 4 kB / 392 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2681, allocations: 3.984 kB / 392 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00725/0.2753, allocations: 4.799 MB / 396.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.2753, allocations: 4 kB / 396.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004551/0.2758, allocations: 171.7 kB / 397 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002471/0.2782, allocations: 0.9895 MB / 398 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.86e-05/0.2783, allocations: 35.59 kB / 398 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/0.283, allocations: 5.323 MB / 403.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007443/0.2838, allocations: 1.901 MB / 405.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/0.2877, allocations: 2.703 MB / 407.9 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.2881, allocations: 214.4 kB / 408.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.2882, allocations: 24.11 kB / 408.2 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007205/0.289, allocations: 143.8 kB / 408.3 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.2891, allocations: 88.36 kB / 408.4 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.2892, allocations: 39.98 kB / 408.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001333/0.2905, allocations: 1.03 MB / 409.5 MB, free: 6.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2905, allocations: 0 / 409.5 MB, free: 6.359 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002872/0.2934, allocations: 0.871 MB / 410.3 MB, free: 5.488 MB / 362.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.000426/0.2938, allocations: 188.8 kB / 410.5 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004013/0.2979, allocations: 2.882 MB / 413.4 MB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2979, allocations: 0 / 413.4 MB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.2994, allocations: 1.183 MB / 414.6 MB, free: 1.168 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.3005, allocations: 269.8 kB / 414.8 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006613/0.3071, allocations: 5.218 MB / 420.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000671/0.3078, allocations: 0.7841 MB / 420.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001652/0.3094, allocations: 1.199 MB / 422 MB, free: 9.586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.3097, allocations: 168.4 kB / 422.2 MB, free: 9.422 MB / 378.7 MB Notification: Performance of SimCode: time 2.915e-06/0.3097, allocations: 0 / 422.2 MB, free: 9.422 MB / 378.7 MB Notification: Performance of Templates: time 0.1437/0.4534, allocations: 28.88 MB / 451.1 MB, free: 117.2 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.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.916035470087081]