Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009523/0.0009523, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001374/0.001374, allocations: 158 kB / 24.99 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9831/0.9831, allocations: 177.1 MB / 205.3 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 273.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.678e-05/1.876e-05, allocations: 2.312 kB / 273.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008876/0.008895, allocations: 7.233 MB / 280.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006127/0.01502, allocations: 3.175 MB / 283.5 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006971/0.01572, allocations: 39.81 kB / 283.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.01715, allocations: 1.101 MB / 284.6 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.01917, allocations: 1.427 MB / 286 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006642/0.01983, allocations: 490.9 kB / 286.5 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002371/0.0222, allocations: 3.019 MB / 289.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1125/0.1347, allocations: 1.622 MB / 291.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001953/0.1366, allocations: 1.316 MB / 292.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.1385, allocations: 1.42 MB / 293.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004042/0.1389, allocations: 175 kB / 294.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.1403, allocations: 0.9628 MB / 295 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009101/0.1412, allocations: 1.179 MB / 296.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007915/0.142, allocations: 0.7169 MB / 296.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003133/0.1452, allocations: 2.968 MB / 299.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1452, allocations: 1.281 kB / 299.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1452, allocations: 0 / 299.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.406e-05/0.1452, allocations: 0 / 299.9 MB, free: 14.46 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.003823/0.149, allocations: 3.354 MB / 303.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1491, allocations: 9.375 kB / 303.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003943/0.153, allocations: 2.182 MB / 305.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.1542, allocations: 1.229 MB / 306.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.744e-05/0.1543, allocations: 135.5 kB / 306.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000397/0.1547, allocations: 253.3 kB / 307 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003781/0.1585, allocations: 4.065 MB / 311.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.868e-05/0.1585, allocations: 38.25 kB / 311.2 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/0.1587, allocations: 84.95 kB / 311.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/0.1598, allocations: 1.366 MB / 312.6 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003686/0.1635, allocations: 2.431 MB / 315 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/0.1795, allocations: 28.59 MB / 343.6 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003175/0.1827, allocations: 1.433 MB / 345.1 MB, free: 7.348 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/0.1832, allocations: 380.8 kB / 345.4 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002785/0.1859, allocations: 2.558 MB / 348 MB, free: 4.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.186, allocations: 53 kB / 348 MB, free: 4.336 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 3.377e-06/0.186, allocations: 0 / 348 MB, free: 4.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01295/0.1989, allocations: 7.348 MB / 355.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009159/0.1998, allocations: 2.035 MB / 357.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.2021, allocations: 2.444 MB / 359.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.215e-05/0.2022, allocations: 44.75 kB / 359.9 MB, free: 8.223 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.2033, allocations: 2.297 MB / 362.2 MB, free: 5.934 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.2037, allocations: 0.544 MB / 362.7 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009239/0.2046, allocations: 0.9961 MB / 363.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2048, allocations: 0.5238 MB / 364.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000928/0.2057, allocations: 0.5398 MB / 364.8 MB, free: 3.309 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.2086, allocations: 4.712 MB / 369.5 MB, free: 12.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00437/0.2129, allocations: 5.79 MB / 375.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.139e-05/0.213, allocations: 35.81 kB / 375.3 MB, free: 5.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01/0.223, allocations: 5.778 MB / 381.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.223, allocations: 48 kB / 381.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005512/0.2285, allocations: 2.398 MB / 383.6 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006224/0.2348, allocations: 2.231 MB / 385.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/0.2369, allocations: 1.018 MB / 386.8 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006358/0.2432, allocations: 5.892 MB / 392.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/0.2456, allocations: 381.5 kB / 393.1 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003411/0.246, allocations: 288 kB / 393.4 MB, free: 2.715 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.0009249/0.2469, allocations: 0.5223 MB / 393.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/0.2472, allocations: 254.4 kB / 394.1 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.2475, allocations: 263.7 kB / 394.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002764/0.2503, allocations: 1.409 MB / 395.8 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.2503, allocations: 4 kB / 395.8 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.2503, allocations: 3.984 kB / 395.8 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006907/0.2572, allocations: 4.802 MB / 400.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.2572, allocations: 4 kB / 400.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/0.2577, allocations: 178.7 kB / 400.8 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002463/0.2601, allocations: 0.9865 MB / 401.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.561e-05/0.2602, allocations: 27.98 kB / 401.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004641/0.2649, allocations: 5.315 MB / 407.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006886/0.2655, allocations: 1.909 MB / 409 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.2694, allocations: 2.694 MB / 411.7 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.2697, allocations: 218.3 kB / 411.9 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.2699, allocations: 24 kB / 412 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006714/0.2706, allocations: 147.8 kB / 412.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.2708, allocations: 81.73 kB / 412.2 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.548e-05/0.2708, allocations: 39.98 kB / 412.2 MB, free: 15.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001226/0.2721, allocations: 1.026 MB / 413.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2721, allocations: 0 / 413.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002791/0.2748, allocations: 0.8616 MB / 414.1 MB, free: 13.41 MB / 378.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.0003346/0.2752, allocations: 182 kB / 414.3 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003999/0.2792, allocations: 2.884 MB / 417.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2792, allocations: 4 kB / 417.2 MB, free: 10.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.2807, allocations: 1.173 MB / 418.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009766/0.2817, allocations: 251.7 kB / 418.6 MB, free: 8.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.2881, allocations: 5.215 MB / 423.8 MB, free: 3.555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/0.2889, allocations: 0.7919 MB / 424.6 MB, free: 2.738 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001694/0.2906, allocations: 1.211 MB / 425.8 MB, free: 1.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002983/0.2909, allocations: 160.5 kB / 426 MB, free: 1.363 MB / 378.7 MB Notification: Performance of SimCode: time 1.703e-06/0.2909, allocations: 4 kB / 426 MB, free: 1.359 MB / 378.7 MB Notification: Performance of Templates: time 0.1338/0.4246, allocations: 28.7 MB / 454.7 MB, free: 136.6 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7128064080607146]