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.001309/0.001309, allocations: 80.67 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001365/0.001365, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 14.72 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.409/1.409, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] 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.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.",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.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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.822e-05/1.946e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.006875/0.006895, allocations: 6.599 MB / 325.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006525/0.01342, allocations: 3.079 MB / 328.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008753/0.01429, allocations: 41.19 kB / 328.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002329/0.01662, allocations: 1.058 MB / 329.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003409/0.02003, allocations: 1.445 MB / 331.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.02112, allocations: 494.8 kB / 331.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003853/0.02498, allocations: 2.956 MB / 334.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.02706, allocations: 1.585 MB / 336.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.02898, allocations: 1.323 MB / 337.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002221/0.0312, allocations: 1.404 MB / 338.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003709/0.03157, allocations: 176 kB / 339.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.03369, allocations: 0.9788 MB / 340.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001337/0.03503, allocations: 1.18 MB / 341.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.03616, allocations: 0.728 MB / 342 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005757/0.04192, allocations: 4.415 MB / 346.4 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.04192, allocations: 0 / 346.4 MB, free: 148 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04193, allocations: 4 kB / 346.4 MB, free: 144 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.288e-05/0.042, allocations: 0 / 346.4 MB, free: 144 kB / 302.1 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.006852/0.04885, allocations: 3.084 MB / 349.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.0489, allocations: 12.92 kB / 349.5 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007351/0.05625, allocations: 1.867 MB / 351.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002813/0.05906, allocations: 1.317 MB / 352.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.05919, allocations: 135.4 kB / 352.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000699/0.05989, allocations: 259.7 kB / 353 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/0.07142, allocations: 6.697 MB / 359.7 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/0.07154, allocations: 31.69 kB / 359.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002719/0.07181, allocations: 83.89 kB / 359.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002362/0.07417, allocations: 1.367 MB / 361.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/0.08687, allocations: 6.048 MB / 367.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.1195, allocations: 24.16 MB / 391.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007201/0.1267, allocations: 2.188 MB / 393.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.1282, allocations: 0.9848 MB / 394.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005285/0.1334, allocations: 2.817 MB / 397.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.1335, allocations: 47.06 kB / 397.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.855e-06/0.1335, allocations: 3.938 kB / 397.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02815/0.1616, allocations: 10.3 MB / 407.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001445/0.1631, allocations: 1.541 MB / 409.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003631/0.1667, allocations: 2.688 MB / 412 MB, free: 12.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.1668, allocations: 41.7 kB / 412 MB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.1684, allocations: 2.163 MB / 414.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005446/0.169, allocations: 0.5234 MB / 414.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/0.1703, allocations: 0.9133 MB / 415.6 MB, free: 9.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1704, allocations: 349.9 kB / 416 MB, free: 8.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002721/0.1732, allocations: 1.68 MB / 417.7 MB, free: 7.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00526/0.1784, allocations: 4.491 MB / 422.2 MB, free: 1.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008397/0.1868, allocations: 6.577 MB / 428.7 MB, free: 9.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-05/0.1869, allocations: 28 kB / 428.8 MB, free: 9.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02121/0.2081, allocations: 8.042 MB / 436.8 MB, free: 1.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.028e-05/0.2082, allocations: 50.66 kB / 436.8 MB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01271/0.2209, allocations: 3.515 MB / 440.4 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01316/0.234, allocations: 2.584 MB / 442.9 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.2374, allocations: 1.018 MB / 444 MB, free: 10 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.2536, allocations: 9.363 MB / 453.3 MB, free: 444 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003813/0.2574, allocations: 403.5 kB / 453.7 MB, free: 40 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005037/0.2579, allocations: 284 kB / 454 MB, free: 15.76 MB / 430.1 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.002194/0.2601, allocations: 1.421 MB / 455.4 MB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004052/0.2605, allocations: 222.5 kB / 455.6 MB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007325/0.2678, allocations: 2.806 MB / 458.4 MB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006701/0.2745, allocations: 2.497 MB / 460.9 MB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.2745, allocations: 4 kB / 460.9 MB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.2745, allocations: 3.984 kB / 460.9 MB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0141/0.2886, allocations: 6.238 MB / 467.2 MB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.2886, allocations: 0 / 467.2 MB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008643/0.2895, allocations: 175.7 kB / 467.4 MB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007974/0.2975, allocations: 1.442 MB / 468.8 MB, free: 0.8086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002482/0.2977, allocations: 31.92 kB / 468.8 MB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1839/0.4816, allocations: 7.609 MB / 476.4 MB, free: 125.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007911/0.4824, allocations: 1.413 MB / 477.9 MB, free: 123.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009266/0.4917, allocations: 4.818 MB / 482.7 MB, free: 122.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008415/0.4925, allocations: 224.9 kB / 482.9 MB, free: 122.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002775/0.4928, allocations: 35.16 kB / 482.9 MB, free: 122.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.4942, allocations: 148.8 kB / 483.1 MB, free: 122.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.4945, allocations: 88.7 kB / 483.2 MB, free: 122.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.4947, allocations: 40.55 kB / 483.2 MB, free: 122.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002634/0.4973, allocations: 1.546 MB / 484.7 MB, free: 121.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4973, allocations: 1.125 kB / 484.7 MB, free: 121.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004517/0.5018, allocations: 0.868 MB / 485.6 MB, free: 121.5 MB / 430.1 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.0005037/0.5023, allocations: 181.2 kB / 485.8 MB, free: 121.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007355/0.5097, allocations: 4.217 MB / 490 MB, free: 119.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.5097, allocations: 2.938 kB / 490 MB, free: 119.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00285/0.5125, allocations: 1.586 MB / 491.6 MB, free: 119.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.5142, allocations: 234.5 kB / 491.8 MB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/0.5224, allocations: 6.439 MB / 498.3 MB, free: 116.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/0.5241, allocations: 1.724 MB / 500 MB, free: 115.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002463/0.5266, allocations: 1.386 MB / 0.4896 GB, free: 115.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/0.527, allocations: 158.8 kB / 0.4898 GB, free: 115.7 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.527, allocations: 4 kB / 0.4898 GB, free: 115.7 MB / 430.1 MB Notification: Performance of Templates: time 0.04357/0.5706, allocations: 28.18 MB / 0.5173 GB, free: 87.97 MB / 430.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.948703903704882]