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.001342/0.001342, allocations: 70.73 kB / 21.24 MB, free: 0.5391 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.001462/0.001462, allocations: 154.7 kB / 24.49 MB, free: 3.719 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.413/1.413, allocations: 173.4 MB / 201.1 MB, free: 12.68 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.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 0.001582/0.001582, allocations: 47.67 kB / 319.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.09225, allocations: 52.17 MB / 371.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01198/0.1042, allocations: 9.396 MB / 381 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007249/0.1115, allocations: 3.674 MB / 384.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000671/0.1122, allocations: 75.62 kB / 384.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004116/0.1163, allocations: 2.196 MB / 386.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003646/0.1199, allocations: 1.883 MB / 388.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.1213, allocations: 0.7136 MB / 389.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004996/0.1263, allocations: 4.23 MB / 393.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002818/0.1291, allocations: 2.447 MB / 396.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.1309, allocations: 1.503 MB / 397.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.1337, allocations: 2.141 MB / 399.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005124/0.1342, allocations: 292 kB / 400.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.1358, allocations: 0.8542 MB / 401 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001752/0.1376, allocations: 1.854 MB / 402.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00173/0.1393, allocations: 1.561 MB / 404.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00674/0.1461, allocations: 6.485 MB / 410.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1461, allocations: 0 / 410.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1461, allocations: 0 / 410.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.015e-05/0.1462, allocations: 0 / 410.9 MB, free: 15.87 MB / 382.1 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.007491/0.1536, allocations: 4.649 MB / 415.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1537, allocations: 8.031 kB / 415.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007756/0.1614, allocations: 2.088 MB / 417.6 MB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004356/0.1658, allocations: 2.249 MB / 419.9 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.166, allocations: 221.6 kB / 420.1 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004894/0.1665, allocations: 295.8 kB / 420.4 MB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/0.1816, allocations: 9.688 MB / 430.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/0.1817, allocations: 43.64 kB / 430.1 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.182, allocations: 147.9 kB / 430.2 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002961/0.185, allocations: 1.919 MB / 432.2 MB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01532/0.2003, allocations: 7.641 MB / 439.8 MB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2254/0.4257, allocations: 35.34 MB / 475.1 MB, free: 63.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006374/0.4321, allocations: 2.415 MB / 477.6 MB, free: 63.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.4333, allocations: 0.7977 MB / 478.4 MB, free: 63.15 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004988/0.4383, allocations: 2.858 MB / 481.2 MB, free: 62.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.4384, allocations: 50.02 kB / 481.3 MB, free: 62.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.657e-06/0.4384, allocations: 2.312 kB / 481.3 MB, free: 62.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.01875/0.4571, allocations: 9.422 MB / 490.7 MB, free: 59.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.4572, allocations: 150.6 kB / 490.8 MB, free: 59.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00373/0.4609, allocations: 3.694 MB / 494.5 MB, free: 58.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.203e-05/0.461, allocations: 51.53 kB / 494.6 MB, free: 58.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.4621, allocations: 3.238 MB / 497.8 MB, free: 55.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/0.4625, allocations: 0.6335 MB / 498.5 MB, free: 55.31 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009858/0.4635, allocations: 1.171 MB / 499.6 MB, free: 54.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.014e-05/0.4635, allocations: 305.8 kB / 499.9 MB, free: 54.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.4655, allocations: 1.597 MB / 0.4898 GB, free: 53.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003015/0.4685, allocations: 5.373 MB / 0.495 GB, free: 48.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005452/0.474, allocations: 7.574 MB / 0.5024 GB, free: 39.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.976e-05/0.4741, allocations: 40 kB / 0.5025 GB, free: 39.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008627/0.4827, allocations: 6.68 MB / 0.509 GB, free: 32.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.561e-05/0.4828, allocations: 64 kB / 0.509 GB, free: 32.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.694e-05/0.4828, allocations: 132 kB / 0.5092 GB, free: 32.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001151/0.483, allocations: 180 kB / 0.5093 GB, free: 32.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.4863, allocations: 1.4 MB / 0.5107 GB, free: 30.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001208/0.4864, allocations: 260.5 kB / 0.5109 GB, free: 30.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.4897, allocations: 335.7 kB / 0.5113 GB, free: 30.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002971/0.49, allocations: 371.6 kB / 0.5116 GB, free: 29.91 MB / 430.1 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.002112/0.4921, allocations: 1.978 MB / 0.5136 GB, free: 27.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003675/0.4925, allocations: 317.8 kB / 0.5139 GB, free: 27.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.494, allocations: 1.215 MB / 0.515 GB, free: 26.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.494, allocations: 16 kB / 0.5151 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.435e-06/0.494, allocations: 0 / 0.5151 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.4941, allocations: 15.86 kB / 0.5151 GB, free: 26.35 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/0.5, allocations: 4.613 MB / 0.5196 GB, free: 21.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.5, allocations: 16 kB / 0.5196 GB, free: 21.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008499/0.5009, allocations: 275.5 kB / 0.5199 GB, free: 21.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-05/0.5009, allocations: 27.98 kB / 0.5199 GB, free: 21.18 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.361e-05/0.5009, allocations: 48 kB / 0.5199 GB, free: 21.13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.71e-05/0.5009, allocations: 35.86 kB / 0.52 GB, free: 21.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/0.501, allocations: 27.88 kB / 0.52 GB, free: 21.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.5035, allocations: 3.197 MB / 0.5231 GB, free: 17.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004516/0.504, allocations: 309.8 kB / 0.5234 GB, free: 17.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/0.5042, allocations: 51.98 kB / 0.5235 GB, free: 17.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.5053, allocations: 74.75 kB / 0.5235 GB, free: 17.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.5054, allocations: 151.3 kB / 0.5237 GB, free: 17.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.626e-05/0.5055, allocations: 71.92 kB / 0.5237 GB, free: 16.97 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.5078, allocations: 2.119 MB / 0.5258 GB, free: 14.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5078, allocations: 0 / 0.5258 GB, free: 14.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003904/0.5117, allocations: 0.8669 MB / 0.5267 GB, free: 14 MB / 430.1 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.0003149/0.512, allocations: 202.3 kB / 0.5269 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004551/0.5165, allocations: 3.557 MB / 0.5303 GB, free: 10.26 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.5165, allocations: 0 / 0.5303 GB, free: 10.26 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007216/0.5173, allocations: 0.6917 MB / 0.531 GB, free: 9.574 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.5193, allocations: 389.4 kB / 0.5314 GB, free: 9.203 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/0.5289, allocations: 8.587 MB / 0.5398 GB, free: 348 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003319/0.5322, allocations: 2.556 MB / 0.5423 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004119/0.5363, allocations: 1.731 MB / 0.5439 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004336/0.5367, allocations: 216.5 kB / 0.5441 GB, free: 11.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5367, allocations: 0 / 0.5441 GB, free: 11.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04851/0.5853, allocations: 19.3 MB / 0.563 GB, free: 9.051 MB / 462.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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: 5.93335596495308]