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.0009304/0.0009304, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001383/0.002313, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.00085/0.00085, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001232/0.002082, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 1.067/1.067, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08446/1.151, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.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.483e-06/1.483e-06, allocations: 0 / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.179e-05/1.328e-05, allocations: 2.312 kB / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008314/0.008327, allocations: 7.164 MB / 246.7 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005501/0.01383, allocations: 3.26 MB / 250 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005687/0.0144, allocations: 43.75 kB / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.0156, allocations: 1.062 MB / 251.1 MB, free: 7.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002097/0.0177, allocations: 1.431 MB / 252.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.01832, allocations: 458.9 kB / 253 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.02046, allocations: 2.859 MB / 255.8 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.02171, allocations: 1.418 MB / 257.2 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.02284, allocations: 1.385 MB / 258.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.02403, allocations: 1.344 MB / 260 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002089/0.02424, allocations: 176 kB / 260.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.02532, allocations: 1.014 MB / 261.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006164/0.02594, allocations: 1.068 MB / 262.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005343/0.02647, allocations: 0.5958 MB / 262.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.02859, allocations: 2.774 MB / 265.6 MB, free: 9.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.0286, allocations: 4 kB / 265.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.02861, allocations: 0 / 265.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.304e-05/0.02866, allocations: 3.938 kB / 265.6 MB, free: 9 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.003216/0.03187, allocations: 3.364 MB / 269 MB, free: 5.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.952e-05/0.0319, allocations: 8.031 kB / 269 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.0342, allocations: 0.8864 MB / 269.9 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.03539, allocations: 1.028 MB / 270.9 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/0.03546, allocations: 135.4 kB / 271 MB, free: 3.488 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004792/0.03594, allocations: 247.6 kB / 271.3 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1188/0.1547, allocations: 3.259 MB / 274.5 MB, free: 21.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.1549, allocations: 28.44 kB / 274.5 MB, free: 21.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/0.1553, allocations: 87.11 kB / 274.6 MB, free: 21.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002028/0.1573, allocations: 1.2 MB / 275.8 MB, free: 21.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006242/0.1635, allocations: 1.839 MB / 277.7 MB, free: 21.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02463/0.1882, allocations: 20.11 MB / 297.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003586/0.1917, allocations: 1.065 MB / 298.8 MB, free: 6.887 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005225/0.1923, allocations: 252.8 kB / 299.1 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004415/0.1967, allocations: 2.214 MB / 301.3 MB, free: 5.629 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.1967, allocations: 48.97 kB / 301.4 MB, free: 5.582 MB / 266.7 MB Notification: Performance of pre-optimization done (n=112): time 4.449e-06/0.1967, allocations: 0 / 301.4 MB, free: 5.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.01251/0.2092, allocations: 3.976 MB / 305.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00064/0.2099, allocations: 1.487 MB / 306.8 MB, free: 2.281 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.2118, allocations: 2.163 MB / 309 MB, free: 488 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.2119, allocations: 41.7 kB / 309 MB, free: 440 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009358/0.2129, allocations: 2.076 MB / 311.1 MB, free: 14.46 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.2133, allocations: 0.5197 MB / 311.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007744/0.214, allocations: 0.852 MB / 312.5 MB, free: 13.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.2141, allocations: 361.3 kB / 312.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009044/0.215, allocations: 0.6244 MB / 313.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002164/0.2172, allocations: 3.311 MB / 316.8 MB, free: 7.504 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003455/0.2207, allocations: 4.391 MB / 321.2 MB, free: 1.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.29e-05/0.2207, allocations: 32.88 kB / 321.2 MB, free: 1.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006857/0.2276, allocations: 3.768 MB / 325 MB, free: 13.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.306e-05/0.2276, allocations: 51.94 kB / 325 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004516/0.2321, allocations: 1.077 MB / 326.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005515/0.2376, allocations: 0.8549 MB / 326.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002287/0.2399, allocations: 1.08 MB / 328 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005653/0.2456, allocations: 4.045 MB / 332.1 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.2477, allocations: 215.8 kB / 332.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.248, allocations: 246.7 kB / 332.5 MB, free: 6.16 MB / 298.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.0009036/0.2489, allocations: 488.2 kB / 333 MB, free: 5.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.2493, allocations: 151.7 kB / 333.1 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/0.2522, allocations: 1.163 MB / 334.3 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002267/0.2545, allocations: 0.8393 MB / 335.1 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.2545, allocations: 8 kB / 335.1 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.2545, allocations: 11.91 kB / 335.2 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006169/0.2607, allocations: 3.182 MB / 338.3 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.2607, allocations: 0 / 338.3 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00061/0.2613, allocations: 163.7 kB / 338.5 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.2616, allocations: 210.5 kB / 338.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/0.2642, allocations: 0.7713 MB / 339.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.2643, allocations: 33.81 kB / 339.5 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004375/0.2687, allocations: 3.781 MB / 343.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006381/0.2693, allocations: 1.33 MB / 344.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/0.2726, allocations: 1.942 MB / 346.6 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.2729, allocations: 31.98 kB / 346.6 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007187/0.2736, allocations: 16 kB / 346.6 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.2738, allocations: 84.42 kB / 346.7 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.064e-05/0.2739, allocations: 35.92 kB / 346.7 MB, free: 7.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007983/0.2747, allocations: 0.7451 MB / 347.5 MB, free: 6.676 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2747, allocations: 0 / 347.5 MB, free: 6.676 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003013/0.2777, allocations: 0.871 MB / 348.3 MB, free: 5.805 MB / 314.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.0003399/0.278, allocations: 175.5 kB / 348.5 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003617/0.2816, allocations: 2.314 MB / 350.8 MB, free: 3.289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001224/0.2818, allocations: 67.77 kB / 350.9 MB, free: 3.219 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.2831, allocations: 0.7782 MB / 351.7 MB, free: 2.406 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.2845, allocations: 0.5533 MB / 352.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00919/0.2937, allocations: 5.056 MB / 357.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.2948, allocations: 0.8054 MB / 358.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008197/0.2956, allocations: 337.8 kB / 358.4 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004987/0.2961, allocations: 373.2 kB / 358.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of SimCode: time 1.392e-06/0.2961, allocations: 0 / 358.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of Templates: time 0.03809/0.3342, allocations: 31.19 MB / 390 MB, free: 12.17 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 -ignoreHideResult -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.5956193413585424]