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.001023/0.001023, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009821/0.0009821, allocations: 146.9 kB / 24.89 MB, free: 8.742 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.9063/0.9063, allocations: 173.4 MB / 201.5 MB, free: 8.781 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.102e-06/1.102e-06, allocations: 0 / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177e-05/1.287e-05, allocations: 2.312 kB / 268.5 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00526/0.005273, allocations: 7.078 MB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003554/0.008826, allocations: 3.252 MB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003857/0.009212, allocations: 39.81 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.01046, allocations: 1.097 MB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.01204, allocations: 1.462 MB / 281.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005175/0.01256, allocations: 498.8 kB / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.01446, allocations: 2.964 MB / 284.8 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.01555, allocations: 1.679 MB / 286.5 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009662/0.01651, allocations: 1.329 MB / 287.9 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001111/0.01762, allocations: 1.364 MB / 289.2 MB, free: 1.184 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.0178, allocations: 176 kB / 289.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009809/0.01878, allocations: 0.9787 MB / 290.4 MB, free: 32 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.11/0.1288, allocations: 1.187 MB / 291.6 MB, free: 19.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.1301, allocations: 0.7343 MB / 292.3 MB, free: 19.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003846/0.134, allocations: 3.018 MB / 295.3 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.134, allocations: 1.719 kB / 295.3 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.134, allocations: 0 / 295.3 MB, free: 18.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.826e-05/0.1341, allocations: 1.938 kB / 295.3 MB, free: 18.92 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.004291/0.1383, allocations: 2.772 MB / 298.1 MB, free: 17.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1384, allocations: 10.17 kB / 298.1 MB, free: 17.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002681/0.1411, allocations: 0.8826 MB / 299 MB, free: 17.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.1424, allocations: 1.046 MB / 300 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.51e-05/0.1425, allocations: 129.4 kB / 300.2 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/0.1429, allocations: 249.7 kB / 300.4 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003414/0.1463, allocations: 3.265 MB / 303.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.125e-05/0.1464, allocations: 25.25 kB / 303.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/0.1466, allocations: 92.5 kB / 303.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001029/0.1476, allocations: 1.195 MB / 305 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/0.1506, allocations: 1.861 MB / 306.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/0.1616, allocations: 20.14 MB / 327 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.1637, allocations: 1.082 MB / 328 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.164, allocations: 247.4 kB / 328.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002673/0.1667, allocations: 2.221 MB / 330.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.1667, allocations: 57.23 kB / 330.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 2.535e-06/0.1667, allocations: 0 / 330.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.00855/0.1753, allocations: 3.964 MB / 334.5 MB, free: 7.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007132/0.176, allocations: 1.474 MB / 336 MB, free: 5.738 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.1777, allocations: 2.165 MB / 338.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.087e-05/0.1778, allocations: 48.38 kB / 338.2 MB, free: 3.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008454/0.1786, allocations: 2.074 MB / 340.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/0.1789, allocations: 0.5222 MB / 340.8 MB, free: 1.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008658/0.1798, allocations: 0.8524 MB / 341.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1799, allocations: 353.8 kB / 342 MB, free: 324 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009718/0.1808, allocations: 0.6283 MB / 342.6 MB, free: 15.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001901/0.1827, allocations: 3.311 MB / 346 MB, free: 11.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/0.1857, allocations: 4.399 MB / 350.4 MB, free: 5.586 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.214e-05/0.1857, allocations: 28 kB / 350.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006427/0.1922, allocations: 3.764 MB / 354.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.1922, allocations: 52.06 kB / 354.2 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003686/0.1959, allocations: 1.075 MB / 355.3 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00417/0.2001, allocations: 0.8464 MB / 356.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.2017, allocations: 0.9747 MB / 357.1 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004597/0.2063, allocations: 4.037 MB / 361.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.2082, allocations: 219 kB / 361.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/0.2085, allocations: 240 kB / 361.6 MB, free: 10.18 MB / 314.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.001032/0.2095, allocations: 499.1 kB / 362.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.2097, allocations: 143.8 kB / 362.2 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00219/0.2119, allocations: 1.161 MB / 363.4 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001782/0.2137, allocations: 0.8437 MB / 364.2 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.2137, allocations: 11.56 kB / 364.2 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.2137, allocations: 7.984 kB / 364.2 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/0.2186, allocations: 3.197 MB / 367.4 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2186, allocations: 0 / 367.4 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.219, allocations: 143.8 kB / 367.6 MB, free: 4.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.221, allocations: 0.771 MB / 368.3 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-05/0.2211, allocations: 31.97 kB / 368.4 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/0.2245, allocations: 3.768 MB / 372.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004886/0.225, allocations: 1.334 MB / 373.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.2277, allocations: 1.931 MB / 375.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.2279, allocations: 202.4 kB / 375.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.2281, allocations: 31.98 kB / 375.6 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/0.2286, allocations: 20 kB / 375.6 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.2287, allocations: 88.36 kB / 375.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.987e-05/0.2288, allocations: 31.98 kB / 375.8 MB, free: 11.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006396/0.2294, allocations: 0.7412 MB / 376.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2294, allocations: 0 / 376.5 MB, free: 10.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002514/0.2319, allocations: 0.8749 MB / 377.4 MB, free: 10.02 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.0003789/0.2323, allocations: 166.6 kB / 377.5 MB, free: 9.852 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002832/0.2352, allocations: 2.306 MB / 379.8 MB, free: 7.531 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.713e-05/0.2353, allocations: 59.94 kB / 379.9 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.2363, allocations: 0.7929 MB / 380.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.2373, allocations: 384.3 kB / 381.1 MB, free: 6.262 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.2427, allocations: 4.948 MB / 386 MB, free: 1.227 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006526/0.2434, allocations: 0.7882 MB / 386.8 MB, free: 424 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007162/0.2441, allocations: 337.8 kB / 387.1 MB, free: 80 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005068/0.2446, allocations: 373.2 kB / 387.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2446, allocations: 4 kB / 387.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of Templates: time 0.03703/0.2816, allocations: 30.78 MB / 418.3 MB, free: 1.082 MB / 362.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.4081437652930617]