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.0009353/0.0009353, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009114/0.0009114, allocations: 142.5 kB / 24.97 MB, free: 8.359 MB / 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.9138/0.9138, allocations: 173.4 MB / 201.5 MB, free: 9.328 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.293e-06/1.293e-06, allocations: 0 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.703e-05, allocations: 6.25 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0062/0.006227, allocations: 7.25 MB / 275.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004482/0.01071, allocations: 3.167 MB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004757/0.01119, allocations: 43.81 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.01252, allocations: 1.097 MB / 279.6 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.01437, allocations: 1.455 MB / 281.1 MB, free: 9.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008896/0.01526, allocations: 0.491 MB / 281.6 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002139/0.0174, allocations: 2.959 MB / 284.5 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.0188, allocations: 1.632 MB / 286.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.01997, allocations: 1.333 MB / 287.5 MB, free: 3.191 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.02133, allocations: 1.418 MB / 288.9 MB, free: 1.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.0215, allocations: 176 kB / 289.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009801/0.02248, allocations: 0.9788 MB / 290.1 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1489/0.1714, allocations: 1.192 MB / 291.3 MB, free: 18.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007491/0.1788, allocations: 0.7301 MB / 292 MB, free: 18.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009978/0.1888, allocations: 3.016 MB / 295 MB, free: 18.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1888, allocations: 1.984 kB / 295 MB, free: 18.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1888, allocations: 0 / 295 MB, free: 18.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-05/0.1889, allocations: 0 / 295 MB, free: 18.48 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.01088/0.1998, allocations: 3.379 MB / 298.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1998, allocations: 11.98 kB / 298.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004587/0.2044, allocations: 2.131 MB / 300.5 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.2059, allocations: 1.221 MB / 301.8 MB, free: 16.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.417e-05/0.206, allocations: 131 kB / 301.9 MB, free: 16.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004549/0.2065, allocations: 259.5 kB / 302.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004102/0.2106, allocations: 4.06 MB / 306.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/0.2106, allocations: 30.12 kB / 306.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.2108, allocations: 85.83 kB / 306.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001089/0.2119, allocations: 1.37 MB / 307.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003769/0.2157, allocations: 2.421 MB / 310.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01494/0.2306, allocations: 28.58 MB / 338.7 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00315/0.2337, allocations: 1.417 MB / 340.1 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004921/0.2342, allocations: 374.8 kB / 340.5 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002861/0.2371, allocations: 2.571 MB / 343 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.2371, allocations: 52.47 kB / 343.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 3.156e-06/0.2371, allocations: 4 kB / 343.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.0127/0.2498, allocations: 7.328 MB / 350.4 MB, free: 6.352 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009121/0.2507, allocations: 2.035 MB / 352.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/0.2531, allocations: 2.449 MB / 354.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.2532, allocations: 43.81 kB / 355 MB, free: 1.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.2543, allocations: 2.306 MB / 357.3 MB, free: 15.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.2547, allocations: 0.5455 MB / 357.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009137/0.2556, allocations: 0.9919 MB / 358.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2558, allocations: 0.5238 MB / 359.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008982/0.2567, allocations: 0.5437 MB / 359.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002626/0.2593, allocations: 4.71 MB / 364.6 MB, free: 6.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004168/0.2634, allocations: 5.793 MB / 370.4 MB, free: 14.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.191e-05/0.2635, allocations: 32 kB / 370.4 MB, free: 14.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009205/0.2727, allocations: 5.716 MB / 376.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.2727, allocations: 48 kB / 376.2 MB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005259/0.278, allocations: 2.324 MB / 378.5 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005755/0.2837, allocations: 2.136 MB / 380.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.2854, allocations: 1.018 MB / 381.6 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00591/0.2913, allocations: 5.869 MB / 387.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.2932, allocations: 379.6 kB / 387.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003003/0.2935, allocations: 284 kB / 388.2 MB, free: 12.45 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.0009141/0.2944, allocations: 0.5232 MB / 388.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002872/0.2947, allocations: 254.5 kB / 388.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.2977, allocations: 1.707 MB / 390.6 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002693/0.3004, allocations: 1.405 MB / 392 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.3004, allocations: 4 kB / 392 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3004, allocations: 3.984 kB / 392 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00717/0.3076, allocations: 4.802 MB / 396.8 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3076, allocations: 4 kB / 396.9 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.308, allocations: 175.7 kB / 397 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/0.3104, allocations: 0.9912 MB / 398 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.656e-05/0.3104, allocations: 29.62 kB / 398 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004512/0.315, allocations: 5.322 MB / 403.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000642/0.3156, allocations: 1.897 MB / 405.3 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003948/0.3195, allocations: 2.706 MB / 408 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.3198, allocations: 214.4 kB / 408.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.32, allocations: 30.02 kB / 408.2 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.3206, allocations: 139.8 kB / 408.3 MB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.3208, allocations: 84.42 kB / 408.4 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.077e-05/0.3208, allocations: 39.98 kB / 408.5 MB, free: 7.578 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001056/0.3219, allocations: 1.03 MB / 409.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3219, allocations: 0 / 409.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002558/0.3245, allocations: 0.8784 MB / 410.4 MB, free: 5.656 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.000322/0.3248, allocations: 188.2 kB / 410.6 MB, free: 5.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003792/0.3286, allocations: 2.891 MB / 413.4 MB, free: 2.559 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3286, allocations: 0 / 413.4 MB, free: 2.559 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.33, allocations: 1.179 MB / 414.6 MB, free: 1.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009162/0.3309, allocations: 262.1 kB / 414.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.337, allocations: 5.215 MB / 420.1 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006274/0.3376, allocations: 0.788 MB / 420.9 MB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001533/0.3391, allocations: 1.195 MB / 422.1 MB, free: 9.754 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.3394, allocations: 168.4 kB / 422.2 MB, free: 9.59 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3394, allocations: 0 / 422.2 MB, free: 9.59 MB / 378.7 MB Notification: Performance of Templates: time 0.1287/0.4681, allocations: 28.88 MB / 451.1 MB, free: 121.4 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.8615107629448175]