Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.002041/0.002041, allocations: 92.62 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002105/0.002105, allocations: 149.5 kB / 24.26 MB, free: 176 kB / 18.57 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.511/1.511, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.995e-06/2.995e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.1e-05/4.399e-05, allocations: 6.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01435/0.01439, allocations: 9.397 MB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008803/0.02319, allocations: 3.697 MB / 280.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.0247, allocations: 71.62 kB / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005242/0.02994, allocations: 2.32 MB / 282.8 MB, free: 7.148 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005382/0.03532, allocations: 1.956 MB / 284.8 MB, free: 5.184 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.03722, allocations: 0.803 MB / 285.6 MB, free: 4.379 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1265/0.1637, allocations: 4.854 MB / 290.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004384/0.1681, allocations: 3.035 MB / 293.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004709/0.1728, allocations: 2.291 MB / 295.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004544/0.1774, allocations: 2.391 MB / 298.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001236/0.1786, allocations: 300.6 kB / 298.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.1818, allocations: 0.897 MB / 299.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00279/0.1845, allocations: 1.959 MB / 301.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002635/0.1872, allocations: 1.223 MB / 302.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006921/0.1941, allocations: 6.483 MB / 309 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1941, allocations: 0 / 309 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1941, allocations: 3.531 kB / 309 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002445/0.1943, allocations: 0 / 309 MB, free: 11.66 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01053/0.2049, allocations: 4.706 MB / 313.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2049, allocations: 9.125 kB / 313.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008503/0.2134, allocations: 2.552 MB / 316.3 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004248/0.2177, allocations: 2.188 MB / 318.5 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.2178, allocations: 219 kB / 318.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009052/0.2187, allocations: 299.9 kB / 319 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01738/0.2361, allocations: 9.692 MB / 328.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.2363, allocations: 47.11 kB / 328.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/0.2367, allocations: 144.8 kB / 328.8 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003342/0.24, allocations: 1.921 MB / 330.8 MB, free: 8.109 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.2578, allocations: 7.635 MB / 338.4 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05422/0.312, allocations: 35.5 MB / 373.9 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007614/0.3196, allocations: 2.43 MB / 376.3 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.3213, allocations: 0.8014 MB / 377.1 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007253/0.3286, allocations: 2.96 MB / 380.1 MB, free: 6.297 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/0.3286, allocations: 57.77 kB / 380.1 MB, free: 6.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=134): time 7.735e-06/0.3286, allocations: 3.984 kB / 380.2 MB, free: 6.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=152): time 0.02791/0.3565, allocations: 9.544 MB / 389.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.3566, allocations: 145.5 kB / 389.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007426/0.3641, allocations: 3.843 MB / 393.7 MB, free: 8.633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.3643, allocations: 45.7 kB / 393.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003459/0.3678, allocations: 3.203 MB / 396.9 MB, free: 5.395 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/0.369, allocations: 0.6283 MB / 397.6 MB, free: 4.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003243/0.3723, allocations: 1.163 MB / 398.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3724, allocations: 301.1 kB / 399 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003535/0.376, allocations: 1.6 MB / 400.6 MB, free: 1.699 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008191/0.3841, allocations: 5.372 MB / 406 MB, free: 10.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.3955, allocations: 7.561 MB / 413.5 MB, free: 1.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001588/0.3957, allocations: 40 kB / 413.6 MB, free: 1.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01582/0.4115, allocations: 7.005 MB / 420.6 MB, free: 10.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.4117, allocations: 64 kB / 420.7 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000238/0.412, allocations: 132 kB / 420.8 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.4122, allocations: 176.7 kB / 421 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0049/0.4171, allocations: 1.404 MB / 422.4 MB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003058/0.4174, allocations: 263 kB / 422.6 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004834/0.4222, allocations: 387.5 kB / 423 MB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009694/0.4232, allocations: 375.1 kB / 423.4 MB, free: 7.293 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004177/0.4274, allocations: 1.978 MB / 425.3 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009524/0.4283, allocations: 361.8 kB / 425.7 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.431, allocations: 1.211 MB / 426.9 MB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.741e-05/0.4311, allocations: 18.81 kB / 426.9 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.4311, allocations: 4 kB / 426.9 MB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.4311, allocations: 7.969 kB / 426.9 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1577/0.5888, allocations: 4.648 MB / 431.6 MB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/0.5888, allocations: 19.73 kB / 431.6 MB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.5899, allocations: 276.7 kB / 431.9 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.945e-05/0.59, allocations: 27.66 kB / 431.9 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.5901, allocations: 49.02 kB / 431.9 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.405e-05/0.5901, allocations: 37.34 kB / 432 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.382e-05/0.5901, allocations: 32.41 kB / 432 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004394/0.5945, allocations: 3.208 MB / 435.2 MB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.5957, allocations: 333.3 kB / 435.5 MB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000399/0.5961, allocations: 60.42 kB / 435.6 MB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.5976, allocations: 108.4 kB / 435.7 MB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.5978, allocations: 150.1 kB / 435.9 MB, free: 118.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.598, allocations: 68.02 kB / 435.9 MB, free: 118.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004194/0.6022, allocations: 2.242 MB / 438.2 MB, free: 117.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6022, allocations: 1.5 kB / 438.2 MB, free: 117.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005533/0.6077, allocations: 0.9644 MB / 439.1 MB, free: 117.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005988/0.6083, allocations: 225.7 kB / 439.4 MB, free: 117.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005925/0.6142, allocations: 3.554 MB / 442.9 MB, free: 116.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.527e-05/0.6142, allocations: 1.656 kB / 442.9 MB, free: 116.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.6152, allocations: 0.694 MB / 443.6 MB, free: 116.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.618, allocations: 416.7 kB / 444 MB, free: 115.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.6297, allocations: 8.585 MB / 452.6 MB, free: 111.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002875/0.6326, allocations: 2.56 MB / 455.2 MB, free: 110.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003279/0.6358, allocations: 1.738 MB / 456.9 MB, free: 110.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/0.6363, allocations: 220.1 kB / 457.1 MB, free: 110.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6363, allocations: 0 / 457.1 MB, free: 110.7 MB / 378.7 MB Notification: Performance of Templates: time 0.04218/0.6785, allocations: 20.83 MB / 477.9 MB, free: 92.2 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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: 6.016635228996165]