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.0009843/0.0009843, allocations: 83.73 kB / 21.97 MB, free: 2.598 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.0009079/0.0009079, allocations: 162.7 kB / 25.33 MB, free: 9.207 MB / 18.57 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.8258/0.8258, allocations: 158.6 MB / 187.2 MB, free: 2.918 MB / 170.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.703e-06/1.703e-06, allocations: 0 / 251.1 MB, free: 7.379 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.305e-05, allocations: 6.312 kB / 251.1 MB, free: 7.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008916/0.008939, allocations: 7.28 MB / 258.3 MB, free: 52 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00523/0.01417, allocations: 3.169 MB / 261.5 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004364/0.01461, allocations: 39.81 kB / 261.5 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001953/0.01656, allocations: 1.105 MB / 262.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002413/0.01897, allocations: 1.459 MB / 264.1 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.01973, allocations: 0.491 MB / 264.6 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003187/0.02292, allocations: 2.957 MB / 267.6 MB, free: 6.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.02476, allocations: 1.64 MB / 269.2 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.0264, allocations: 1.329 MB / 270.5 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001413/0.02782, allocations: 1.422 MB / 271.9 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002744/0.02809, allocations: 183.9 kB / 272.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.02923, allocations: 0.9788 MB / 273.1 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008121/0.03004, allocations: 1.196 MB / 274.3 MB, free: 16 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008154/0.03086, allocations: 0.7358 MB / 275 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.03401, allocations: 3.008 MB / 278 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.03402, allocations: 4 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.03402, allocations: 3.938 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001078/0.03413, allocations: 0 / 278.1 MB, free: 12.25 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.005604/0.03973, allocations: 3.383 MB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.03979, allocations: 15.98 kB / 281.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004275/0.04407, allocations: 2.125 MB / 283.6 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.04566, allocations: 1.277 MB / 284.9 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.01e-05/0.04574, allocations: 135.4 kB / 285 MB, free: 5.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000422/0.04617, allocations: 247.6 kB / 285.2 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.05094, allocations: 4.072 MB / 289.3 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.296e-05/0.05099, allocations: 31.7 kB / 289.3 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.05117, allocations: 87.89 kB / 289.4 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001234/0.0524, allocations: 1.359 MB / 290.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00423/0.05663, allocations: 2.422 MB / 293.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01726/0.07389, allocations: 28.6 MB / 321.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003031/0.07692, allocations: 1.42 MB / 323.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.07739, allocations: 368.1 kB / 323.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003061/0.08046, allocations: 2.587 MB / 326.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.08049, allocations: 49.83 kB / 326.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 2.826e-06/0.08049, allocations: 0 / 326.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01268/0.09317, allocations: 7.371 MB / 333.6 MB, free: 2.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009087/0.09408, allocations: 2.027 MB / 335.6 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.09638, allocations: 2.472 MB / 338.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.99e-05/0.09645, allocations: 41.7 kB / 338.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.09762, allocations: 2.291 MB / 340.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.09801, allocations: 0.543 MB / 341 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009215/0.09893, allocations: 0.9889 MB / 341.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.0991, allocations: 0.5356 MB / 342.5 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000937/0.1, allocations: 0.5437 MB / 343 MB, free: 9.152 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002878/0.1029, allocations: 4.701 MB / 347.7 MB, free: 2.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1295/0.2325, allocations: 5.799 MB / 353.5 MB, free: 85.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.646e-05/0.2325, allocations: 28.09 kB / 353.6 MB, free: 85.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009306/0.2418, allocations: 5.711 MB / 359.3 MB, free: 84.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.2419, allocations: 44.97 kB / 359.3 MB, free: 84.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004963/0.2468, allocations: 2.327 MB / 361.6 MB, free: 84.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005917/0.2528, allocations: 2.136 MB / 363.8 MB, free: 84.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.2544, allocations: 1.013 MB / 364.8 MB, free: 83.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005391/0.2598, allocations: 5.862 MB / 370.6 MB, free: 78.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/0.2617, allocations: 395.3 kB / 371 MB, free: 78.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002272/0.2619, allocations: 282.4 kB / 371.3 MB, free: 77.81 MB / 330.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.0007476/0.2627, allocations: 0.5201 MB / 371.8 MB, free: 77.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002537/0.2629, allocations: 251 kB / 372.1 MB, free: 77.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.2656, allocations: 1.706 MB / 373.8 MB, free: 75.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00241/0.268, allocations: 1.406 MB / 375.2 MB, free: 74.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.268, allocations: 4 kB / 375.2 MB, free: 74.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.268, allocations: 8.578 kB / 375.2 MB, free: 74.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005791/0.2738, allocations: 4.811 MB / 380 MB, free: 70.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.2738, allocations: 8.094 kB / 380 MB, free: 70.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.2743, allocations: 174.6 kB / 380.2 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/0.2765, allocations: 0.9855 MB / 381.2 MB, free: 69.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/0.2765, allocations: 23.98 kB / 381.2 MB, free: 69.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/0.28, allocations: 5.333 MB / 386.5 MB, free: 64.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003935/0.2804, allocations: 1.904 MB / 388.4 MB, free: 62.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.2837, allocations: 2.692 MB / 391.1 MB, free: 59.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.284, allocations: 229.1 kB / 391.3 MB, free: 59.31 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.2841, allocations: 20 kB / 391.4 MB, free: 59.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005988/0.2847, allocations: 147.8 kB / 391.5 MB, free: 59.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.2849, allocations: 84.42 kB / 391.6 MB, free: 59.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.166e-05/0.2849, allocations: 43.81 kB / 391.6 MB, free: 59.03 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008264/0.2857, allocations: 1.054 MB / 392.7 MB, free: 57.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2857, allocations: 0 / 392.7 MB, free: 57.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0021/0.2878, allocations: 0.8699 MB / 393.6 MB, free: 57.09 MB / 330.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.0003191/0.2882, allocations: 183.9 kB / 393.7 MB, free: 56.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003133/0.2913, allocations: 2.897 MB / 396.6 MB, free: 54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2913, allocations: 0 / 396.6 MB, free: 54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.2925, allocations: 1.174 MB / 397.8 MB, free: 52.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.2934, allocations: 251.7 kB / 398.1 MB, free: 52.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004958/0.2984, allocations: 5.225 MB / 403.3 MB, free: 47.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.2989, allocations: 0.792 MB / 404.1 MB, free: 46.45 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001369/0.3002, allocations: 1.203 MB / 405.3 MB, free: 45.24 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.3005, allocations: 160.4 kB / 405.4 MB, free: 45.08 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3005, allocations: 0 / 405.4 MB, free: 45.08 MB / 330.7 MB Notification: Performance of Templates: time 0.0342/0.3347, allocations: 29.89 MB / 435.3 MB, free: 15.2 MB / 330.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.751650085207075]