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.001453/0.001453, allocations: 106.4 kB / 16.45 MB, free: 6.453 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.001519/0.001519, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.319/1.319, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002332/0.002332, allocations: 285.2 kB / 309.1 MB, free: 3.938 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.12/1.12, allocations: 180.9 MB / 0.5333 GB, free: 13.77 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 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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.002655/0.002655, allocations: 108.6 kB / 0.7342 GB, free: 28.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1405, allocations: 95.34 MB / 0.8273 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002472/0.143, allocations: 1.498 MB / 0.8288 GB, free: 8.375 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0008474/0.1438, allocations: 0.5393 MB / 0.8293 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.303e-05/0.1439, allocations: 0 / 0.8293 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 8.048e-05/0.144, allocations: 7.875 kB / 0.8293 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.258e-05/0.144, allocations: 11.86 kB / 0.8293 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000211/0.1442, allocations: 43.89 kB / 0.8294 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.1444, allocations: 107.7 kB / 0.8295 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.173e-05/0.1444, allocations: 8.188 kB / 0.8295 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.1446, allocations: 55.83 kB / 0.8295 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.8e-05/0.1447, allocations: 43.83 kB / 0.8296 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.1447, allocations: 8 kB / 0.8296 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 3.89e-05/0.1447, allocations: 15.98 kB / 0.8296 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.1448, allocations: 15.92 kB / 0.8296 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.229e-05/0.1448, allocations: 35.86 kB / 0.8297 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.145, allocations: 91.84 kB / 0.8297 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.145, allocations: 7.938 kB / 0.8297 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.212e-06/0.145, allocations: 0 / 0.8297 GB, free: 7.387 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.145, allocations: 0 / 0.8297 GB, free: 7.387 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.0006683/0.1456, allocations: 458.5 kB / 0.8302 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1457, allocations: 8.031 kB / 0.8302 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.389e-05/0.1457, allocations: 38.75 kB / 0.8302 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.1459, allocations: 16.88 kB / 0.8302 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.1461, allocations: 197 kB / 0.8304 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1461, allocations: 8.375 kB / 0.8304 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.1461, allocations: 4.375 kB / 0.8304 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.1464, allocations: 121.5 kB / 0.8306 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.1464, allocations: 0 / 0.8306 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1464, allocations: 0 / 0.8306 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1464, allocations: 0 / 0.8306 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.1467, allocations: 95.86 kB / 0.8307 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.1472, allocations: 332.7 kB / 0.831 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.1475, allocations: 94.52 kB / 0.8311 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.1477, allocations: 64.94 kB / 0.8311 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.1477, allocations: 4 kB / 0.8311 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002853/0.148, allocations: 127.2 kB / 0.8312 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.148, allocations: 0 / 0.8312 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of matching and sorting (n=6): time 0.0006961/0.1487, allocations: 275.4 kB / 0.8315 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.1488, allocations: 93.03 kB / 0.8316 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.1489, allocations: 128.5 kB / 0.8317 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.1489, allocations: 33.7 kB / 0.8318 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.952e-05/0.149, allocations: 92.09 kB / 0.8318 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.149, allocations: 23.83 kB / 0.8319 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.927e-05/0.1491, allocations: 29.66 kB / 0.8319 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1492, allocations: 334.7 kB / 0.8322 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.1494, allocations: 64.02 kB / 0.8323 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1496, allocations: 71.94 kB / 0.8323 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003411/0.1499, allocations: 173.9 kB / 0.8325 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1499, allocations: 0 / 0.8325 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004977/0.1504, allocations: 268.9 kB / 0.8328 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.31e-05/0.1505, allocations: 67.39 kB / 0.8328 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1505, allocations: 0 / 0.8328 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.1505, allocations: 0 / 0.8328 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1506, allocations: 15.98 kB / 0.8328 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1506, allocations: 0 / 0.8328 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.1507, allocations: 19.97 kB / 0.8329 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.1508, allocations: 11.94 kB / 0.8329 GB, free: 3.879 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.0001236/0.1509, allocations: 156.2 kB / 0.833 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.106e-05/0.1509, allocations: 7.953 kB / 0.833 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.1509, allocations: 12.72 kB / 0.833 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1509, allocations: 0 / 0.833 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1509, allocations: 0 / 0.833 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.151, allocations: 96 / 0.833 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.1511, allocations: 209.5 kB / 0.8332 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1511, allocations: 0 / 0.8332 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-05/0.1512, allocations: 15.98 kB / 0.8333 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.1512, allocations: 3.984 kB / 0.8333 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1512, allocations: 4 kB / 0.8333 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1512, allocations: 0 / 0.8333 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1512, allocations: 0 / 0.8333 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004958/0.1517, allocations: 250.6 kB / 0.8335 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1518, allocations: 85 kB / 0.8336 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.1518, allocations: 8 kB / 0.8336 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.1519, allocations: 19.97 kB / 0.8336 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.152, allocations: 35.95 kB / 0.8336 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.152, allocations: 8.062 kB / 0.8337 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.792e-05/0.1521, allocations: 105.9 kB / 0.8338 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1521, allocations: 0 / 0.8338 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002009/0.1523, allocations: 28 kB / 0.8338 GB, free: 2.84 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.0007885/0.1531, allocations: 0.7937 MB / 0.8346 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004945/0.1536, allocations: 258.6 kB / 0.8348 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.1536, allocations: 0 / 0.8348 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002462/0.1538, allocations: 127.4 kB / 0.8349 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.154, allocations: 15.98 kB / 0.8349 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.1563, allocations: 1.751 MB / 0.8366 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1566, allocations: 0.6924 MB / 0.8373 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.671e-05/0.1567, allocations: 11.92 kB / 0.8373 GB, free: 15 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.1567, allocations: 31.42 kB / 0.8374 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/0.1567, allocations: 3.938 kB / 0.8374 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02492/0.1817, allocations: 3.075 MB / 0.8404 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.503, allocations: 2.484 kB / 0.8404 GB, free: 12.02 MB / 0.5919 GB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 11.222264959011227] Failed to read output from testmodel.py, exit status != 0: 7.566370185930282 7.579591036 7.432042919 Calling exit ...