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.001396/0.001396, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001563/0.001563, allocations: 219.8 kB / 22.26 MB, free: 5.125 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.28/1.28, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 179] 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.002354/0.002354, allocations: 278.2 kB / 312.7 MB, free: 2.812 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.067/1.067, allocations: 180.6 MB / 0.5369 GB, free: 13.06 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: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) [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.002633/0.002633, allocations: 96.06 kB / 0.7395 GB, free: 28.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1331, allocations: 95.39 MB / 0.8327 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002474/0.1355, allocations: 1.517 MB / 0.8342 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0008488/0.1364, allocations: 0.5315 MB / 0.8347 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-05/0.1364, allocations: 4 kB / 0.8347 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 7.355e-05/0.1365, allocations: 3.938 kB / 0.8347 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.773e-05/0.1366, allocations: 15.84 kB / 0.8347 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.1368, allocations: 43.89 kB / 0.8348 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.1369, allocations: 111.7 kB / 0.8349 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.655e-05/0.137, allocations: 12.19 kB / 0.8349 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.1372, allocations: 51.84 kB / 0.8349 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.1373, allocations: 43.83 kB / 0.835 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.1373, allocations: 8 kB / 0.835 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.116e-05/0.1373, allocations: 11.98 kB / 0.835 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.463e-05/0.1373, allocations: 19.92 kB / 0.835 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.843e-05/0.1374, allocations: 35.86 kB / 0.835 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.1376, allocations: 91.91 kB / 0.8351 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1376, allocations: 0 / 0.8351 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1376, allocations: 4 kB / 0.8351 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.1376, allocations: 3.938 kB / 0.8351 GB, free: 6.188 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.0006016/0.1382, allocations: 377.4 kB / 0.8355 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1382, allocations: 13.34 kB / 0.8355 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.1382, allocations: 38.75 kB / 0.8356 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.1384, allocations: 16.88 kB / 0.8356 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.1386, allocations: 134.4 kB / 0.8357 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1386, allocations: 12.38 kB / 0.8357 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.1386, allocations: 4.375 kB / 0.8357 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.1389, allocations: 121.5 kB / 0.8358 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.1389, allocations: 0 / 0.8358 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1389, allocations: 0 / 0.8358 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.1389, allocations: 0 / 0.8358 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/0.1392, allocations: 87.92 kB / 0.8359 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.1396, allocations: 315.7 kB / 0.8362 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/0.1399, allocations: 98.45 kB / 0.8363 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.1401, allocations: 72.92 kB / 0.8364 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.1401, allocations: 0 / 0.8364 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.1404, allocations: 123.3 kB / 0.8365 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.1404, allocations: 3.938 kB / 0.8365 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of matching and sorting (n=6): time 0.0006665/0.141, allocations: 275.2 kB / 0.8368 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.1411, allocations: 85.11 kB / 0.8368 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.1412, allocations: 128.5 kB / 0.837 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.1412, allocations: 33.7 kB / 0.837 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.818e-05/0.1413, allocations: 100.1 kB / 0.8371 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.1413, allocations: 15.84 kB / 0.8371 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.1414, allocations: 33.7 kB / 0.8371 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1415, allocations: 318.8 kB / 0.8374 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.1417, allocations: 71.94 kB / 0.8375 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.1418, allocations: 63.95 kB / 0.8376 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.1421, allocations: 181.8 kB / 0.8377 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1421, allocations: 4 kB / 0.8377 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000475/0.1426, allocations: 265.1 kB / 0.838 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.035e-05/0.1427, allocations: 69.38 kB / 0.8381 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.1427, allocations: 0 / 0.8381 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1427, allocations: 0 / 0.8381 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1428, allocations: 23.97 kB / 0.8381 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.1428, allocations: 0 / 0.8381 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.1429, allocations: 16.08 kB / 0.8381 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.1429, allocations: 19.88 kB / 0.8381 GB, free: 2.867 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.0001151/0.1431, allocations: 152.2 kB / 0.8383 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.1431, allocations: 7.953 kB / 0.8383 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.435e-05/0.1431, allocations: 20.7 kB / 0.8383 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1431, allocations: 0 / 0.8383 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1431, allocations: 0 / 0.8383 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1431, allocations: 0 / 0.8383 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.1433, allocations: 168.7 kB / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1433, allocations: 0 / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.1433, allocations: 19.97 kB / 0.8385 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1433, allocations: 0 / 0.8385 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1433, allocations: 4 kB / 0.8385 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1433, allocations: 0 / 0.8385 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1434, allocations: 4.094 kB / 0.8385 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004491/0.1438, allocations: 246.6 kB / 0.8387 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.408e-05/0.1438, allocations: 11.89 kB / 0.8387 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.1438, allocations: 11.98 kB / 0.8387 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.144, allocations: 15.98 kB / 0.8388 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.1441, allocations: 39.95 kB / 0.8388 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.1441, allocations: 4 kB / 0.8388 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.547e-05/0.1441, allocations: 107.2 kB / 0.8389 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1441, allocations: 0 / 0.8389 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001953/0.1443, allocations: 20 kB / 0.8389 GB, free: 1.961 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.0007454/0.1451, allocations: 0.7858 MB / 0.8397 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004451/0.1455, allocations: 254.8 kB / 0.8399 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1455, allocations: 0 / 0.8399 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.1458, allocations: 139.3 kB / 0.8401 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.1459, allocations: 12 kB / 0.8401 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.1481, allocations: 1.769 MB / 0.8418 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.1484, allocations: 0.6885 MB / 0.8425 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.422e-05/0.1484, allocations: 11.98 kB / 0.8425 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.1485, allocations: 23.44 kB / 0.8425 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of SimCode: time 3.4e-07/0.1485, allocations: 4 kB / 0.8425 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02848/0.177, allocations: 3.225 MB / 0.8457 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.724/9.901, allocations: 9.797 kB / 0.8457 GB, free: 11 MB / 0.5919 GB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.459542435128242] Failed to read output from testmodel.py, exit status != 0: 10.007313166046515 10.025054933 9.884270272 Calling exit ...