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.001007/0.001007, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.0008622/0.0008622, allocations: 153 kB / 24.81 MB, free: 9.324 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.9335/0.9335, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.894e-06/1.894e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/2.665e-05, allocations: 2.312 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01076/0.01078, allocations: 7.058 MB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007694/0.01848, allocations: 3.148 MB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.02029, allocations: 43.81 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.02303, allocations: 1.082 MB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004145/0.02717, allocations: 1.466 MB / 281.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.02836, allocations: 494.8 kB / 281.7 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00408/0.03244, allocations: 2.964 MB / 284.7 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002621/0.03506, allocations: 1.636 MB / 286.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002901/0.03796, allocations: 1.333 MB / 287.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00271/0.04067, allocations: 1.426 MB / 289.1 MB, free: 1.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006808/0.04136, allocations: 176 kB / 289.2 MB, free: 1.285 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00246/0.04381, allocations: 0.971 MB / 290.2 MB, free: 320 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1238/0.1676, allocations: 1.193 MB / 291.4 MB, free: 18.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.169, allocations: 0.732 MB / 292.1 MB, free: 18.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004922/0.174, allocations: 3.02 MB / 295.1 MB, free: 18.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.174, allocations: 0.5 kB / 295.1 MB, free: 18.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.174, allocations: 0.7188 kB / 295.1 MB, free: 18.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001536/0.1741, allocations: 0 / 295.1 MB, free: 18.36 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.00632/0.1804, allocations: 3.204 MB / 298.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1805, allocations: 11.61 kB / 298.4 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003564/0.184, allocations: 1.175 MB / 299.5 MB, free: 16.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.186, allocations: 1.136 MB / 300.7 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.768e-05/0.186, allocations: 131.8 kB / 300.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004561/0.1865, allocations: 255 kB / 301 MB, free: 16.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.1913, allocations: 3.723 MB / 304.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.677e-05/0.1913, allocations: 29.33 kB / 304.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.1915, allocations: 84.95 kB / 304.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0011/0.1926, allocations: 1.197 MB / 306.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003533/0.1962, allocations: 1.979 MB / 308.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/0.2131, allocations: 28.21 MB / 336.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.2162, allocations: 1.276 MB / 337.5 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003887/0.2166, allocations: 314.9 kB / 337.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003392/0.22, allocations: 2.426 MB / 340.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.22, allocations: 57.83 kB / 340.3 MB, free: 1.129 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 4.228e-06/0.22, allocations: 0 / 340.3 MB, free: 1.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.01095/0.2309, allocations: 4.703 MB / 345 MB, free: 12.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001167/0.2321, allocations: 2.014 MB / 347 MB, free: 10.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00233/0.2344, allocations: 2.439 MB / 349.5 MB, free: 8.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.2345, allocations: 41.7 kB / 349.5 MB, free: 8.125 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.2356, allocations: 2.316 MB / 351.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.2361, allocations: 0.5555 MB / 352.4 MB, free: 5.387 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009131/0.237, allocations: 1.007 MB / 353.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004002/0.2374, allocations: 0.5268 MB / 353.9 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008198/0.2382, allocations: 0.4969 MB / 354.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.2407, allocations: 4.677 MB / 359.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004255/0.245, allocations: 5.701 MB / 364.8 MB, free: 5.629 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-05/0.245, allocations: 32 kB / 364.8 MB, free: 5.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.008355/0.2534, allocations: 4.329 MB / 369.2 MB, free: 1.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/0.2534, allocations: 48 kB / 369.2 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003963/0.2574, allocations: 1.171 MB / 370.4 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004354/0.2618, allocations: 0.8614 MB / 371.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/0.264, allocations: 0.9747 MB / 372.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005363/0.2693, allocations: 5.216 MB / 377.4 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/0.2722, allocations: 210.4 kB / 377.6 MB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000462/0.2727, allocations: 251.9 kB / 377.9 MB, free: 8.352 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.001242/0.2739, allocations: 0.5329 MB / 378.4 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005956/0.2745, allocations: 250.5 kB / 378.7 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.2774, allocations: 1.281 MB / 379.9 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00206/0.2795, allocations: 0.9554 MB / 380.9 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.2795, allocations: 8 kB / 380.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.2795, allocations: 3.984 kB / 380.9 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00767/0.2872, allocations: 3.692 MB / 384.6 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.2872, allocations: 4 kB / 384.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.2876, allocations: 143.8 kB / 384.7 MB, free: 1.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.2897, allocations: 0.6636 MB / 385.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.05e-05/0.2898, allocations: 31.97 kB / 385.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004341/0.2941, allocations: 4.94 MB / 390.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007035/0.2948, allocations: 1.874 MB / 392.3 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/0.2986, allocations: 2.188 MB / 394.4 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007782/0.2994, allocations: 218.3 kB / 394.7 MB, free: 7.121 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/0.2996, allocations: 20 kB / 394.7 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.3002, allocations: 23.98 kB / 394.7 MB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.3004, allocations: 92.36 kB / 394.8 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-05/0.3004, allocations: 35.91 kB / 394.8 MB, free: 6.953 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.3016, allocations: 0.9597 MB / 395.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3016, allocations: 0 / 395.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003133/0.3047, allocations: 0.8788 MB / 396.7 MB, free: 5.098 MB / 346.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.0003929/0.3051, allocations: 186 kB / 396.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003635/0.3088, allocations: 2.581 MB / 399.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3088, allocations: 0 / 399.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3101, allocations: 0.9644 MB / 400.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.3112, allocations: 258.3 kB / 400.6 MB, free: 1.035 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007669/0.3189, allocations: 5.19 MB / 405.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000727/0.3196, allocations: 0.788 MB / 406.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009402/0.3206, allocations: 337.8 kB / 406.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005449/0.3211, allocations: 414.1 kB / 407.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.502e-06/0.3211, allocations: 0 / 407.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.1481/0.4692, allocations: 30.9 MB / 438.3 MB, free: 121.2 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.6808349937200546]