Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 162.6 kB / 24.82 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9609/0.9609, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.861e-05, allocations: 2.312 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008463/0.008482, allocations: 7.045 MB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005838/0.01432, allocations: 3.152 MB / 283.5 MB, free: 6.965 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007101/0.01503, allocations: 39.88 kB / 283.6 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.0168, allocations: 1.082 MB / 284.7 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002467/0.01926, allocations: 1.427 MB / 286.1 MB, free: 4.406 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008442/0.02011, allocations: 498.8 kB / 286.6 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003085/0.02319, allocations: 3.023 MB / 289.6 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1471/0.1703, allocations: 1.634 MB / 291.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.1727, allocations: 1.315 MB / 292.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002289/0.175, allocations: 1.416 MB / 294 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005917/0.1756, allocations: 174.8 kB / 294.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.1772, allocations: 0.9645 MB / 295.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009804/0.1782, allocations: 1.179 MB / 296.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001528/0.1797, allocations: 0.7181 MB / 297 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00318/0.1829, allocations: 2.971 MB / 300 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1829, allocations: 1.125 kB / 300 MB, free: 14.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1829, allocations: 0 / 300 MB, free: 14.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001057/0.183, allocations: 0 / 300 MB, free: 14.71 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.004722/0.1877, allocations: 3.181 MB / 303.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1878, allocations: 14.14 kB / 303.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003076/0.1908, allocations: 1.216 MB / 304.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.192, allocations: 1.124 MB / 305.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.594e-05/0.1921, allocations: 133.4 kB / 305.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003665/0.1924, allocations: 257.1 kB / 305.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003346/0.1958, allocations: 3.73 MB / 309.6 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.218e-05/0.1958, allocations: 35.23 kB / 309.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.196, allocations: 86.61 kB / 309.7 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009168/0.1969, allocations: 1.191 MB / 310.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002931/0.1998, allocations: 1.982 MB / 312.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01499/0.2148, allocations: 28.23 MB / 341.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002699/0.2175, allocations: 1.277 MB / 342.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.2179, allocations: 318.5 kB / 342.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002741/0.2207, allocations: 2.426 MB / 345.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.2207, allocations: 49.11 kB / 345.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.465e-06/0.2207, allocations: 0 / 345.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.0106/0.2313, allocations: 4.731 MB / 349.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008676/0.2322, allocations: 2.007 MB / 351.9 MB, free: 0.875 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/0.2342, allocations: 2.433 MB / 354.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.088e-05/0.2343, allocations: 41.7 kB / 354.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.2356, allocations: 2.316 MB / 356.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004062/0.236, allocations: 0.5515 MB / 357.3 MB, free: 12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008817/0.2369, allocations: 1.005 MB / 358.3 MB, free: 11.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.237, allocations: 0.527 MB / 358.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007779/0.2378, allocations: 0.4968 MB / 359.3 MB, free: 10.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002781/0.2406, allocations: 4.673 MB / 364 MB, free: 3.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004363/0.245, allocations: 5.703 MB / 369.7 MB, free: 12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-05/0.245, allocations: 28 kB / 369.7 MB, free: 11.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01106/0.2561, allocations: 4.324 MB / 374 MB, free: 7.629 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.589e-05/0.2561, allocations: 52.06 kB / 374.1 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003966/0.2601, allocations: 1.179 MB / 375.3 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004034/0.2641, allocations: 0.8634 MB / 376.1 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.2657, allocations: 0.9669 MB / 377.1 MB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00501/0.2707, allocations: 5.223 MB / 382.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.2725, allocations: 215.8 kB / 382.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/0.2728, allocations: 244 kB / 382.8 MB, free: 14.65 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.0008648/0.2736, allocations: 0.5274 MB / 383.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.2739, allocations: 250.5 kB / 383.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.2742, allocations: 263.7 kB / 383.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001939/0.2761, allocations: 0.9525 MB / 384.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.2761, allocations: 11.94 kB / 384.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.2761, allocations: 8.016 kB / 384.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.2816, allocations: 3.694 MB / 388.5 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.2817, allocations: 4.094 kB / 388.5 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003998/0.2821, allocations: 147.8 kB / 388.6 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/0.284, allocations: 0.6633 MB / 389.3 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-05/0.284, allocations: 27.97 kB / 389.3 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.2877, allocations: 4.944 MB / 394.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008804/0.2886, allocations: 1.863 MB / 396.1 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.2914, allocations: 2.196 MB / 398.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.2917, allocations: 202.4 kB / 398.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.2918, allocations: 27.98 kB / 398.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.2923, allocations: 20 kB / 398.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.2924, allocations: 88.42 kB / 398.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/0.2925, allocations: 35.97 kB / 398.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008625/0.2934, allocations: 0.9673 MB / 399.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2934, allocations: 4 kB / 399.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002755/0.2961, allocations: 0.8437 MB / 400.5 MB, free: 12.37 MB / 362.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.0003231/0.2964, allocations: 182.8 kB / 400.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.2997, allocations: 2.582 MB / 403.2 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2997, allocations: 0 / 403.2 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3009, allocations: 0.9616 MB / 404.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000914/0.3018, allocations: 256 kB / 404.5 MB, free: 8.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/0.3078, allocations: 5.195 MB / 409.7 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006667/0.3085, allocations: 0.7919 MB / 410.4 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007346/0.3092, allocations: 331.3 kB / 410.8 MB, free: 1.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.3097, allocations: 410.1 kB / 411.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.3097, allocations: 0 / 411.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of Templates: time 0.1549/0.4646, allocations: 30.7 MB / 441.9 MB, free: 114.1 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6519669708795846]