Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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.001587/0.001587, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 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.002544/0.002544, allocations: 216.4 kB / 23.01 MB, free: 4.566 MB / 14.72 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 1.406/1.406, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002473/0.002473, allocations: 286.2 kB / 313.5 MB, free: 2.816 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.274/1.274, allocations: 180.6 MB / 0.5377 GB, free: 13.07 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) 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(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002853/0.002853, allocations: 106.4 kB / 0.7408 GB, free: 27.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1934, allocations: 95.38 MB / 0.8339 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002777/0.1961, allocations: 1.513 MB / 0.8354 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.1971, allocations: 0.5238 MB / 0.8359 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.938e-05/0.1971, allocations: 4 kB / 0.8359 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.1972, allocations: 11.86 kB / 0.8359 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.324e-05/0.1973, allocations: 15.86 kB / 0.8359 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.1976, allocations: 47.88 kB / 0.836 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.1978, allocations: 95.77 kB / 0.8361 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.339e-05/0.1978, allocations: 12.16 kB / 0.8361 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.198, allocations: 59.84 kB / 0.8362 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.1981, allocations: 39.83 kB / 0.8362 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.1982, allocations: 15.94 kB / 0.8362 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.66e-05/0.1982, allocations: 12 kB / 0.8362 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.1982, allocations: 15.92 kB / 0.8362 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.857e-05/0.1983, allocations: 47.78 kB / 0.8363 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.1985, allocations: 91.58 kB / 0.8364 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1985, allocations: 0 / 0.8364 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1985, allocations: 0 / 0.8364 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.1985, allocations: 0 / 0.8364 GB, free: 5.645 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007047/0.1992, allocations: 377.4 kB / 0.8367 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1992, allocations: 13.34 kB / 0.8367 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.1994, allocations: 20.88 kB / 0.8368 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.1996, allocations: 130.4 kB / 0.8369 GB, free: 5.051 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1996, allocations: 8.375 kB / 0.8369 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.1996, allocations: 8.359 kB / 0.8369 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.1999, allocations: 113.8 kB / 0.837 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1999, allocations: 4 kB / 0.837 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.2, allocations: 3.938 kB / 0.837 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.371e-06/0.2, allocations: 8 kB / 0.837 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00029/0.2003, allocations: 91.91 kB / 0.8371 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005602/0.2008, allocations: 303.8 kB / 0.8374 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.2011, allocations: 106.5 kB / 0.8375 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.2013, allocations: 60.94 kB / 0.8376 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.2013, allocations: 3.938 kB / 0.8376 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.2016, allocations: 123.3 kB / 0.8377 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.2016, allocations: 4 kB / 0.8377 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of matching and sorting (n=6): time 0.0007212/0.2023, allocations: 275.2 kB / 0.8379 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.2024, allocations: 85.11 kB / 0.838 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2025, allocations: 132.6 kB / 0.8382 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2026, allocations: 29.7 kB / 0.8382 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.2026, allocations: 104 kB / 0.8383 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.2027, allocations: 23.84 kB / 0.8383 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.84e-05/0.2027, allocations: 25.7 kB / 0.8383 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2029, allocations: 326.8 kB / 0.8386 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.203, allocations: 67.89 kB / 0.8387 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.2032, allocations: 63.95 kB / 0.8388 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.2036, allocations: 189.9 kB / 0.8389 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2036, allocations: 0 / 0.8389 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004969/0.2041, allocations: 260.9 kB / 0.8392 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.908e-05/0.2041, allocations: 67.39 kB / 0.8393 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.2041, allocations: 0 / 0.8393 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2041, allocations: 0 / 0.8393 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.2043, allocations: 11.98 kB / 0.8393 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2043, allocations: 8 kB / 0.8393 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.2044, allocations: 19.97 kB / 0.8393 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.2044, allocations: 8 kB / 0.8393 GB, free: 2.375 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001354/0.2046, allocations: 156.1 kB / 0.8395 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.001e-05/0.2046, allocations: 7.953 kB / 0.8395 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.2046, allocations: 16.7 kB / 0.8395 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2046, allocations: 3.938 kB / 0.8395 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2046, allocations: 4 kB / 0.8395 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2046, allocations: 0 / 0.8395 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.2048, allocations: 168.7 kB / 0.8396 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2048, allocations: 0 / 0.8396 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.28e-05/0.2049, allocations: 11.98 kB / 0.8397 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.2049, allocations: 0 / 0.8397 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2049, allocations: 4.25 kB / 0.8397 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.2049, allocations: 4 kB / 0.8397 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2049, allocations: 0 / 0.8397 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.2054, allocations: 254.6 kB / 0.8399 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.2054, allocations: 11.88 kB / 0.8399 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.2054, allocations: 4 kB / 0.8399 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.2056, allocations: 19.97 kB / 0.8399 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.2057, allocations: 35.97 kB / 0.84 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.2057, allocations: 7.984 kB / 0.84 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.424e-05/0.2058, allocations: 107.2 kB / 0.8401 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2058, allocations: 0 / 0.8401 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002087/0.206, allocations: 27.88 kB / 0.8401 GB, free: 1.457 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.000122/0.2061, allocations: 103.2 kB / 0.8402 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000514/0.2066, allocations: 250.7 kB / 0.8405 GB, free: 1.078 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2066, allocations: 7.938 kB / 0.8405 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.2069, allocations: 131.3 kB / 0.8406 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.2071, allocations: 15.94 kB / 0.8406 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005436/0.2076, allocations: 245.2 kB / 0.8408 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.208, allocations: 0.6924 MB / 0.8415 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.208, allocations: 11.44 kB / 0.8415 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of SimCode: time 3.4e-07/0.208, allocations: 0 / 0.8415 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of Templates: time 0.003473/0.2115, allocations: 1.464 MB / 0.8429 GB, free: 14.45 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.757514928933233] Failed to read output from testmodel.py, exit status != 0: 0.21966684889048338 0.23469547500000001 0.033292395 Calling exit ...