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.004245/0.004245, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.001245/0.001245, allocations: 170.6 kB / 25.6 MB, free: 8.926 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.9874/0.9874, allocations: 158.6 MB / 187.5 MB, free: 2.805 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.583e-06/1.583e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.701e-05/2.859e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007407/0.007436, allocations: 7.069 MB / 258.5 MB, free: 128 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005767/0.0132, allocations: 3.141 MB / 261.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.01439, allocations: 39.81 kB / 261.7 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001822/0.01622, allocations: 1.082 MB / 262.8 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003226/0.01944, allocations: 1.455 MB / 264.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009415/0.02038, allocations: 498.8 kB / 264.8 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003507/0.02389, allocations: 2.975 MB / 267.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002141/0.02603, allocations: 1.636 MB / 269.4 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.02844, allocations: 1.337 MB / 270.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.03018, allocations: 1.43 MB / 272.1 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003407/0.03052, allocations: 172 kB / 272.3 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.03212, allocations: 0.9827 MB / 273.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000836/0.03295, allocations: 1.192 MB / 274.5 MB, free: 140 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008412/0.03379, allocations: 0.7319 MB / 275.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003594/0.03739, allocations: 3.016 MB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.03739, allocations: 0 / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.0374, allocations: 4 kB / 278.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.269e-05/0.03747, allocations: 0 / 278.2 MB, free: 12.37 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.00394/0.04141, allocations: 3.214 MB / 281.4 MB, free: 9.105 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.04146, allocations: 11.98 kB / 281.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/0.04441, allocations: 1.177 MB / 282.6 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.04583, allocations: 1.144 MB / 283.8 MB, free: 6.738 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-05/0.04592, allocations: 135.4 kB / 283.9 MB, free: 6.605 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004232/0.04634, allocations: 255.6 kB / 284.2 MB, free: 6.355 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004571/0.05091, allocations: 3.72 MB / 287.9 MB, free: 1.996 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.552e-05/0.05096, allocations: 35.7 kB / 287.9 MB, free: 1.961 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.05113, allocations: 87.89 kB / 288 MB, free: 1.875 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001071/0.0522, allocations: 1.187 MB / 289.2 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003169/0.05537, allocations: 1.995 MB / 291.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02073/0.07609, allocations: 28.22 MB / 319.4 MB, free: 1.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003059/0.07915, allocations: 1.26 MB / 320.7 MB, free: 228 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004127/0.07956, allocations: 316 kB / 321 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003168/0.08273, allocations: 2.434 MB / 323.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.08277, allocations: 53.83 kB / 323.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 2.675e-06/0.08278, allocations: 0 / 323.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01143/0.0942, allocations: 4.726 MB / 328.2 MB, free: 8.574 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009114/0.09511, allocations: 1.996 MB / 330.2 MB, free: 6.422 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002389/0.0975, allocations: 2.463 MB / 332.6 MB, free: 3.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.09763, allocations: 49.8 kB / 332.7 MB, free: 3.863 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/0.09913, allocations: 2.314 MB / 335 MB, free: 1.523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004637/0.09959, allocations: 0.5468 MB / 335.5 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000909/0.1005, allocations: 1.004 MB / 336.5 MB, free: 15.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1007, allocations: 0.5354 MB / 337.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000744/0.1014, allocations: 0.4929 MB / 337.6 MB, free: 14.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003079/0.1045, allocations: 4.673 MB / 342.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004466/0.109, allocations: 5.704 MB / 348 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.789e-05/0.109, allocations: 28 kB / 348 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.148/0.257, allocations: 4.32 MB / 352.3 MB, free: 83.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.639e-05/0.257, allocations: 47.91 kB / 352.3 MB, free: 83.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004016/0.2611, allocations: 1.181 MB / 353.5 MB, free: 83.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004161/0.2652, allocations: 0.8568 MB / 354.4 MB, free: 83.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.2669, allocations: 0.9711 MB / 355.4 MB, free: 83.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004716/0.2716, allocations: 5.205 MB / 360.6 MB, free: 79.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.2742, allocations: 213.4 kB / 360.8 MB, free: 79.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003103/0.2745, allocations: 251.8 kB / 361 MB, free: 79.95 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.0008777/0.2754, allocations: 0.5253 MB / 361.5 MB, free: 79.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.2756, allocations: 250.3 kB / 361.8 MB, free: 79.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/0.2779, allocations: 1.284 MB / 363.1 MB, free: 79.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001894/0.2798, allocations: 0.9556 MB / 364 MB, free: 79.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.2798, allocations: 7.031 kB / 364 MB, free: 79.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.2798, allocations: 9.906 kB / 364 MB, free: 79.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005172/0.285, allocations: 3.719 MB / 367.8 MB, free: 78.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.285, allocations: 0 / 367.8 MB, free: 78.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.2853, allocations: 137.4 kB / 367.9 MB, free: 78.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.2872, allocations: 0.6605 MB / 368.6 MB, free: 77.95 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.665e-05/0.2873, allocations: 31.53 kB / 368.6 MB, free: 77.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.2904, allocations: 4.936 MB / 373.5 MB, free: 73.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004254/0.2908, allocations: 1.871 MB / 375.4 MB, free: 71.24 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/0.2936, allocations: 2.197 MB / 377.6 MB, free: 69.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.2939, allocations: 212.8 kB / 377.8 MB, free: 68.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.2941, allocations: 32.88 kB / 377.8 MB, free: 68.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/0.2946, allocations: 16.12 kB / 377.8 MB, free: 68.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.2948, allocations: 86.98 kB / 377.9 MB, free: 68.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-05/0.2948, allocations: 32.5 kB / 378 MB, free: 68.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007503/0.2956, allocations: 0.98 MB / 378.9 MB, free: 68.03 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2956, allocations: 0 / 378.9 MB, free: 68.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002528/0.2981, allocations: 0.8698 MB / 379.8 MB, free: 67.25 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.0003123/0.2984, allocations: 188 kB / 380 MB, free: 67.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.3013, allocations: 2.591 MB / 382.6 MB, free: 64.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3013, allocations: 0 / 382.6 MB, free: 64.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.3024, allocations: 0.9605 MB / 383.5 MB, free: 63.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009585/0.3033, allocations: 259.2 kB / 383.8 MB, free: 63.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.309, allocations: 5.195 MB / 389 MB, free: 58.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.3096, allocations: 0.7882 MB / 389.8 MB, free: 57.26 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008052/0.3104, allocations: 337.9 kB / 390.1 MB, free: 56.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004849/0.3108, allocations: 406.1 kB / 390.5 MB, free: 56.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.342e-06/0.3108, allocations: 0 / 390.5 MB, free: 56.52 MB / 330.7 MB Notification: Performance of Templates: time 0.0363/0.3471, allocations: 31.11 MB / 421.6 MB, free: 25.5 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.7863580039702356]