Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0008407/0.0008407, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0008905/0.0008905, allocations: 146 kB / 25.59 MB, free: 8.918 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.9387/0.9387, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.142e-05, allocations: 4.844 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008207/0.008229, allocations: 10.1 MB / 279.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006474/0.0147, allocations: 3.778 MB / 283.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.01587, allocations: 75.62 kB / 283.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.01828, allocations: 2.359 MB / 285.5 MB, free: 9.406 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003244/0.02152, allocations: 1.96 MB / 287.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.02288, allocations: 0.7952 MB / 288.3 MB, free: 6.641 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004401/0.02728, allocations: 4.862 MB / 293.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003981/0.03126, allocations: 3.052 MB / 296.2 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003857/0.03512, allocations: 2.362 MB / 298.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003065/0.03819, allocations: 2.35 MB / 300.9 MB, free: 9.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007998/0.03899, allocations: 296 kB / 301.2 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.04049, allocations: 0.8893 MB / 302.1 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00174/0.04223, allocations: 1.96 MB / 304 MB, free: 6.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.04373, allocations: 1.211 MB / 305.2 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00475/0.04848, allocations: 4.284 MB / 309.5 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.04848, allocations: 0 / 309.5 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.04849, allocations: 0 / 309.5 MB, free: 1.281 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.04863, allocations: 0 / 309.5 MB, free: 1.281 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.005862/0.05449, allocations: 4.816 MB / 314.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.05453, allocations: 15.97 kB / 314.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/0.05814, allocations: 1.52 MB / 315.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003132/0.06127, allocations: 1.816 MB / 317.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.06141, allocations: 225.6 kB / 317.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003872/0.0618, allocations: 295.8 kB / 318.2 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009111/0.07091, allocations: 5.492 MB / 323.7 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.07101, allocations: 47.58 kB / 323.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.0713, allocations: 147.8 kB / 323.9 MB, free: 1.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001563/0.07286, allocations: 1.72 MB / 325.6 MB, free: 24 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/0.07815, allocations: 2.341 MB / 328 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1699/0.248, allocations: 43.69 MB / 371.6 MB, free: 47.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004201/0.2522, allocations: 1.607 MB / 373.3 MB, free: 47.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.2527, allocations: 329.8 kB / 373.6 MB, free: 47.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003715/0.2564, allocations: 2.575 MB / 376.1 MB, free: 46.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.2565, allocations: 50.48 kB / 376.2 MB, free: 46.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 4.218e-06/0.2565, allocations: 0 / 376.2 MB, free: 46.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.009792/0.2663, allocations: 4.858 MB / 381.1 MB, free: 45.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.2663, allocations: 148.7 kB / 381.2 MB, free: 45.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.2689, allocations: 3.427 MB / 384.6 MB, free: 45.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.269, allocations: 49.45 kB / 384.7 MB, free: 45.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.2702, allocations: 3.399 MB / 388.1 MB, free: 43.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.2706, allocations: 0.6459 MB / 388.7 MB, free: 42.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008775/0.2715, allocations: 1.282 MB / 390 MB, free: 42.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.2715, allocations: 481.2 kB / 390.5 MB, free: 41.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007789/0.2723, allocations: 0.4925 MB / 391 MB, free: 41.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00219/0.2745, allocations: 6.134 MB / 397.1 MB, free: 32.8 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003899/0.2784, allocations: 7.289 MB / 404.4 MB, free: 23.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.666e-05/0.2785, allocations: 40 kB / 404.4 MB, free: 23.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.00481/0.2833, allocations: 4.621 MB / 409 MB, free: 18.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.2833, allocations: 66.03 kB / 409.1 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.123e-05/0.2834, allocations: 139.9 kB / 409.3 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.567e-05/0.2835, allocations: 176 kB / 409.4 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00198/0.2855, allocations: 1.365 MB / 410.8 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.678e-05/0.2856, allocations: 266.9 kB / 411 MB, free: 16.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/0.2881, allocations: 259.8 kB / 411.3 MB, free: 16.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.2884, allocations: 324 kB / 411.6 MB, free: 16.27 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (747): * Single equations (assignments): 744 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001017/0.2894, allocations: 0.6569 MB / 412.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/0.2898, allocations: 357.8 kB / 412.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006568/0.2905, allocations: 0.7152 MB / 413.3 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.2905, allocations: 16 kB / 413.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2905, allocations: 0 / 413.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.2905, allocations: 11.97 kB / 413.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004725/0.2952, allocations: 4.832 MB / 418.2 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.2952, allocations: 22.77 kB / 418.2 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.2957, allocations: 259.6 kB / 418.5 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.2957, allocations: 24 kB / 418.5 MB, free: 9 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.2958, allocations: 55.94 kB / 418.6 MB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-05/0.2958, allocations: 35.86 kB / 418.6 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.2958, allocations: 27.88 kB / 418.6 MB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.2971, allocations: 2.384 MB / 421 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.2975, allocations: 329.6 kB / 421.3 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.2977, allocations: 55.92 kB / 421.4 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005933/0.2983, allocations: 43.98 kB / 421.4 MB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.2984, allocations: 151.3 kB / 421.6 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.2984, allocations: 56 kB / 421.6 MB, free: 5.516 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009216/0.2993, allocations: 1.369 MB / 423 MB, free: 4.156 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2994, allocations: 0 / 423 MB, free: 4.156 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00317/0.3025, allocations: 0.9686 MB / 424 MB, free: 3.188 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (141): * Single equations (assignments): 138 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003753/0.3029, allocations: 222.6 kB / 424.2 MB, free: 2.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.3058, allocations: 2.391 MB / 426.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.3058, allocations: 8.062 kB / 426.6 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.3061, allocations: 429.4 kB / 427 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.3077, allocations: 422.8 kB / 427.4 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009631/0.3174, allocations: 7.47 MB / 434.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.3186, allocations: 1.164 MB / 436 MB, free: 6.703 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001366/0.32, allocations: 493.2 kB / 436.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006734/0.3207, allocations: 0.5645 MB / 437.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.923e-06/0.3207, allocations: 0 / 437.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of Templates: time 0.04182/0.3625, allocations: 24.06 MB / 461.1 MB, free: 14.12 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.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.752616543788463]