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.001251/0.001251, allocations: 85.95 kB / 23 MB, free: 1.5 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.0009781/0.0009781, allocations: 171.5 kB / 26.39 MB, free: 7.754 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 1.007/1.007, allocations: 158.6 MB / 188.3 MB, free: 2.816 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.232e-06/1.232e-06, allocations: 0 / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.562e-05, allocations: 2.312 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005891/0.005907, allocations: 7.069 MB / 259.3 MB, free: 124 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004186/0.01009, allocations: 3.137 MB / 262.5 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.01047, allocations: 39.81 kB / 262.5 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.01198, allocations: 1.086 MB / 263.6 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002627/0.01461, allocations: 1.459 MB / 265.1 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009186/0.01552, allocations: 494.7 kB / 265.5 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00344/0.01896, allocations: 2.971 MB / 268.5 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.02129, allocations: 1.644 MB / 270.1 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.02301, allocations: 1.333 MB / 271.5 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.02513, allocations: 1.434 MB / 272.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003431/0.02547, allocations: 172 kB / 273.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.02719, allocations: 0.9827 MB / 274.1 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.02837, allocations: 1.192 MB / 275.3 MB, free: 132 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.02946, allocations: 0.7359 MB / 276 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.03321, allocations: 3.016 MB / 279 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.03321, allocations: 0 / 279 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.03321, allocations: 3.938 kB / 279 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.817e-05/0.03327, allocations: 0 / 279 MB, free: 12.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.004095/0.03737, allocations: 3.206 MB / 282.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.03741, allocations: 11.98 kB / 282.2 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/0.04048, allocations: 1.177 MB / 283.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.04194, allocations: 1.148 MB / 284.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.895e-05/0.04203, allocations: 135.4 kB / 284.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004189/0.04245, allocations: 255.6 kB / 284.9 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004248/0.0467, allocations: 3.724 MB / 288.7 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.027e-05/0.04678, allocations: 31.69 kB / 288.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.04699, allocations: 87.89 kB / 288.8 MB, free: 1.863 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0012/0.04819, allocations: 1.191 MB / 290 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003798/0.05199, allocations: 1.98 MB / 292 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01894/0.07093, allocations: 28.22 MB / 320.2 MB, free: 1.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.07378, allocations: 1.268 MB / 321.4 MB, free: 220 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003862/0.07417, allocations: 320 kB / 321.8 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002801/0.07697, allocations: 2.43 MB / 324.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.07701, allocations: 53.83 kB / 324.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 3.376e-06/0.07701, allocations: 0 / 324.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.01092/0.08793, allocations: 4.715 MB / 329 MB, free: 8.574 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009948/0.08892, allocations: 2.012 MB / 331 MB, free: 6.406 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.09095, allocations: 2.459 MB / 333.4 MB, free: 3.906 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.795e-05/0.09102, allocations: 41.7 kB / 333.5 MB, free: 3.859 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.09215, allocations: 2.318 MB / 335.8 MB, free: 1.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.09251, allocations: 0.5429 MB / 336.3 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008869/0.0934, allocations: 1.008 MB / 337.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.09356, allocations: 0.5354 MB / 337.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007581/0.09432, allocations: 0.4968 MB / 338.4 MB, free: 14.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002787/0.09711, allocations: 4.677 MB / 343 MB, free: 8.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004123/0.1012, allocations: 5.703 MB / 348.7 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.841e-05/0.1013, allocations: 28 kB / 348.8 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.1501/0.2513, allocations: 4.328 MB / 353.1 MB, free: 83.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.476e-05/0.2514, allocations: 45.75 kB / 353.1 MB, free: 83.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004162/0.2555, allocations: 1.176 MB / 354.3 MB, free: 83.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004644/0.2602, allocations: 0.8457 MB / 355.2 MB, free: 83.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00201/0.2622, allocations: 0.981 MB / 356.1 MB, free: 83.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00474/0.2669, allocations: 5.204 MB / 361.4 MB, free: 79.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/0.2697, allocations: 213.5 kB / 361.6 MB, free: 79.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004095/0.2701, allocations: 251.4 kB / 361.8 MB, free: 79.94 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.0009622/0.2711, allocations: 0.5235 MB / 362.3 MB, free: 79.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000438/0.2715, allocations: 253.3 kB / 362.6 MB, free: 79.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003425/0.275, allocations: 1.278 MB / 363.9 MB, free: 79.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002863/0.2778, allocations: 0.956 MB / 364.8 MB, free: 79.46 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/0.2778, allocations: 5.062 kB / 364.8 MB, free: 79.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.2779, allocations: 3.844 kB / 364.8 MB, free: 79.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008979/0.2868, allocations: 3.708 MB / 368.5 MB, free: 78.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.2869, allocations: 4 kB / 368.5 MB, free: 78.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006049/0.2875, allocations: 143.6 kB / 368.7 MB, free: 78.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/0.2903, allocations: 0.6693 MB / 369.3 MB, free: 77.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.2905, allocations: 24.92 kB / 369.4 MB, free: 77.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00503/0.2955, allocations: 4.942 MB / 374.3 MB, free: 73.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005887/0.2961, allocations: 1.868 MB / 376.2 MB, free: 71.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003558/0.2996, allocations: 2.199 MB / 378.4 MB, free: 69.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005333/0.3002, allocations: 212.2 kB / 378.6 MB, free: 68.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/0.3004, allocations: 27.44 kB / 378.6 MB, free: 68.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.3011, allocations: 18.3 kB / 378.6 MB, free: 68.92 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.3013, allocations: 90.98 kB / 378.7 MB, free: 68.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.853e-05/0.3013, allocations: 27.36 kB / 378.7 MB, free: 68.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000913/0.3022, allocations: 0.9772 MB / 379.7 MB, free: 68.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3022, allocations: 4 kB / 379.7 MB, free: 68.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002941/0.3052, allocations: 0.8766 MB / 380.6 MB, free: 67.23 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.0003359/0.3055, allocations: 181.4 kB / 380.8 MB, free: 67.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003234/0.3087, allocations: 2.582 MB / 383.4 MB, free: 64.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3087, allocations: 0 / 383.4 MB, free: 64.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.3101, allocations: 0.966 MB / 384.3 MB, free: 63.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.3113, allocations: 255.3 kB / 384.6 MB, free: 63.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005806/0.3171, allocations: 5.202 MB / 389.8 MB, free: 58.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.3178, allocations: 0.7882 MB / 390.6 MB, free: 57.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008435/0.3186, allocations: 337.9 kB / 390.9 MB, free: 56.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.319, allocations: 406.1 kB / 391.3 MB, free: 56.49 MB / 330.7 MB Notification: Performance of SimCode: time 1.683e-06/0.319, allocations: 0 / 391.3 MB, free: 56.49 MB / 330.7 MB Notification: Performance of Templates: time 0.03782/0.3569, allocations: 31.81 MB / 423.1 MB, free: 24.7 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.826895572245121]