Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001166/0.001166, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001179/0.001179, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9534/0.9534, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.266e-05/1.406e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005463/0.005477, allocations: 7.252 MB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.008773, allocations: 3.183 MB / 283.4 MB, free: 7.039 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003131/0.009086, allocations: 39.81 kB / 283.5 MB, free: 7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.01042, allocations: 1.109 MB / 284.6 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.01198, allocations: 1.427 MB / 286 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.01257, allocations: 494.9 kB / 286.5 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.01445, allocations: 3.023 MB / 289.5 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1014/0.1159, allocations: 1.626 MB / 291.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001937/0.1178, allocations: 1.32 MB / 292.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/0.1196, allocations: 1.417 MB / 293.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003847/0.12, allocations: 173.8 kB / 294 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.1215, allocations: 0.9628 MB / 295 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008257/0.1223, allocations: 1.177 MB / 296.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008505/0.1232, allocations: 0.7199 MB / 296.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.1261, allocations: 2.969 MB / 299.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1261, allocations: 0 / 299.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1261, allocations: 0 / 299.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.875e-05/0.1262, allocations: 1.5 kB / 299.9 MB, free: 14.7 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.003815/0.13, allocations: 3.35 MB / 303.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.13, allocations: 10 kB / 303.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005182/0.1352, allocations: 2.184 MB / 305.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.1367, allocations: 1.251 MB / 306.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.428e-05/0.1368, allocations: 138.7 kB / 306.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004773/0.1373, allocations: 253.4 kB / 307 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005018/0.1423, allocations: 4.068 MB / 311.1 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.592e-05/0.1424, allocations: 32.64 kB / 311.1 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002358/0.1426, allocations: 87.03 kB / 311.2 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001527/0.1441, allocations: 1.364 MB / 312.6 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004981/0.1491, allocations: 2.424 MB / 315 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01953/0.1686, allocations: 28.6 MB / 343.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004065/0.1727, allocations: 1.44 MB / 345.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006047/0.1733, allocations: 365.1 kB / 345.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003722/0.177, allocations: 2.564 MB / 348 MB, free: 4.223 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.1771, allocations: 53.83 kB / 348 MB, free: 4.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.996e-06/0.1771, allocations: 0 / 348 MB, free: 4.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01626/0.1933, allocations: 7.349 MB / 355.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008017/0.1941, allocations: 2.032 MB / 357.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/0.1961, allocations: 2.444 MB / 359.9 MB, free: 8.098 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/0.1961, allocations: 45.86 kB / 359.9 MB, free: 8.047 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.1974, allocations: 2.299 MB / 362.2 MB, free: 5.758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.1978, allocations: 0.5466 MB / 362.7 MB, free: 5.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008476/0.1986, allocations: 0.987 MB / 363.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1987, allocations: 0.5277 MB / 364.3 MB, free: 3.684 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008309/0.1996, allocations: 0.5477 MB / 364.8 MB, free: 3.129 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002778/0.2024, allocations: 4.701 MB / 369.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004047/0.2064, allocations: 5.8 MB / 375.3 MB, free: 4.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.063e-05/0.2064, allocations: 28 kB / 375.3 MB, free: 4.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009175/0.2156, allocations: 5.775 MB / 381.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.2157, allocations: 51.98 kB / 381.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005309/0.221, allocations: 2.391 MB / 383.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005884/0.2268, allocations: 2.235 MB / 385.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.2287, allocations: 1.02 MB / 386.8 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00576/0.2344, allocations: 5.896 MB / 392.7 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.2361, allocations: 383.6 kB / 393.1 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002544/0.2364, allocations: 283.9 kB / 393.4 MB, free: 2.566 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.0009517/0.2373, allocations: 0.5185 MB / 393.9 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.2376, allocations: 254.5 kB / 394.1 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.2378, allocations: 267.7 kB / 394.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002675/0.2405, allocations: 1.405 MB / 395.8 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.2405, allocations: 7.984 kB / 395.8 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.2405, allocations: 7.984 kB / 395.8 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006591/0.2471, allocations: 4.799 MB / 400.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.269e-06/0.2471, allocations: 0 / 400.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.2475, allocations: 175.7 kB / 400.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002367/0.2499, allocations: 0.9827 MB / 401.8 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.25, allocations: 38.94 kB / 401.8 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004148/0.2541, allocations: 5.314 MB / 407.1 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007995/0.2549, allocations: 1.913 MB / 409 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/0.2585, allocations: 2.696 MB / 411.7 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.2587, allocations: 214.5 kB / 411.9 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.2588, allocations: 27.98 kB / 412 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.2595, allocations: 139.8 kB / 412.1 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.2596, allocations: 80.48 kB / 412.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.2597, allocations: 43.27 kB / 412.2 MB, free: 15.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009565/0.2606, allocations: 1.026 MB / 413.2 MB, free: 14.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2606, allocations: 4 kB / 413.2 MB, free: 14.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002052/0.2627, allocations: 0.8553 MB / 414.1 MB, free: 13.27 MB / 378.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.0003034/0.263, allocations: 186 kB / 414.3 MB, free: 13.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.2665, allocations: 2.89 MB / 417.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2665, allocations: 0 / 417.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.2679, allocations: 1.166 MB / 418.3 MB, free: 8.953 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008876/0.2688, allocations: 253.8 kB / 418.6 MB, free: 8.711 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005442/0.2742, allocations: 5.22 MB / 423.8 MB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005998/0.2748, allocations: 0.7919 MB / 424.6 MB, free: 2.586 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001512/0.2763, allocations: 1.203 MB / 425.8 MB, free: 1.375 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.2766, allocations: 168.4 kB / 426 MB, free: 1.211 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2766, allocations: 0 / 426 MB, free: 1.211 MB / 378.7 MB Notification: Performance of Templates: time 0.1312/0.4078, allocations: 29.48 MB / 455.4 MB, free: 131.5 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.766721047926694]