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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 195.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 295 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9511/0.9511, allocations: 169.2 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 105.3 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1309, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.00262/0.1336, allocations: 1.468 MB / 0.6817 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006313/0.1342, allocations: 454.9 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.423e-05/0.1343, allocations: 8 kB / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.648e-05/0.1344, allocations: 3.938 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.368e-05/0.1344, allocations: 15.86 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.1346, allocations: 39.88 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.1348, allocations: 95.77 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.805e-05/0.1349, allocations: 20.45 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.135, allocations: 55.83 kB / 0.6824 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.281e-05/0.1351, allocations: 43.75 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.1351, allocations: 8 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.1351, allocations: 12 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.652e-05/0.1352, allocations: 7.938 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.491e-05/0.1352, allocations: 39.84 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.1354, allocations: 79.7 kB / 0.6826 GB, free: 14.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1354, allocations: 4 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1354, allocations: 0 / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.1354, allocations: 4 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB 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.0005824/0.136, allocations: 442.7 kB / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.136, allocations: 12.03 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.463e-05/0.1361, allocations: 34.75 kB / 0.683 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.1361, allocations: 12.84 kB / 0.683 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.1363, allocations: 192.1 kB / 0.6832 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1363, allocations: 8.375 kB / 0.6832 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.1363, allocations: 8.375 kB / 0.6832 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.1366, allocations: 109.6 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1366, allocations: 3.984 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1366, allocations: 8 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1366, allocations: 0 / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.1369, allocations: 87.92 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.1374, allocations: 340.6 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.1378, allocations: 106.5 kB / 0.6839 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.1379, allocations: 76.88 kB / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.138, allocations: 0 / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.1383, allocations: 119.3 kB / 0.6841 GB, free: 12.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.1383, allocations: 4 kB / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006884/0.139, allocations: 279.1 kB / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.139, allocations: 85.11 kB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.763e-05/0.1391, allocations: 132.1 kB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.1391, allocations: 29.7 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.839e-05/0.1392, allocations: 99.97 kB / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.1392, allocations: 15.81 kB / 0.6847 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.1393, allocations: 29.7 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.1394, allocations: 326.8 kB / 0.685 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.1396, allocations: 63.95 kB / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.1398, allocations: 67.94 kB / 0.6851 GB, free: 11.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.1401, allocations: 189.9 kB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1401, allocations: 0 / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004751/0.1406, allocations: 256.9 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.756e-05/0.1406, allocations: 67.39 kB / 0.6856 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1407, allocations: 0 / 0.6856 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.1407, allocations: 0 / 0.6856 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1408, allocations: 15.92 kB / 0.6856 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1408, allocations: 4 kB / 0.6856 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.141, allocations: 19.97 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.141, allocations: 15.94 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB 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 9.984e-05/0.1411, allocations: 148.8 kB / 0.6858 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.1411, allocations: 15.91 kB / 0.6858 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.1412, allocations: 8.375 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1412, allocations: 0 / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1412, allocations: 4 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1412, allocations: 3.984 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.1413, allocations: 197.5 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1413, allocations: 4 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.598e-05/0.1414, allocations: 15.98 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1414, allocations: 0 / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1414, allocations: 3.984 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1414, allocations: 256 / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1415, allocations: 11.94 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004537/0.1419, allocations: 250.5 kB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.142, allocations: 85.02 kB / 0.6864 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.142, allocations: 8 kB / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1421, allocations: 19.97 kB / 0.6864 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1423, allocations: 27.97 kB / 0.6864 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.1423, allocations: 11.98 kB / 0.6865 GB, free: 9.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.23e-05/0.1423, allocations: 103.1 kB / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1423, allocations: 0 / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002073/0.1426, allocations: 28 kB / 0.6866 GB, free: 9.719 MB / 494.1 MB 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.000702/0.1433, allocations: 0.7819 MB / 0.6873 GB, free: 8.902 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000464/0.1437, allocations: 266.7 kB / 0.6876 GB, free: 8.617 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1437, allocations: 0 / 0.6876 GB, free: 8.617 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.144, allocations: 147.3 kB / 0.6877 GB, free: 8.461 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.1442, allocations: 8.312 kB / 0.6877 GB, free: 8.453 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.1464, allocations: 1.743 MB / 0.6895 GB, free: 6.617 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1466, allocations: 0.6885 MB / 0.6901 GB, free: 5.902 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.282e-05/0.1467, allocations: 8 kB / 0.6901 GB, free: 5.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.918e-05/0.1467, allocations: 27.42 kB / 0.6902 GB, free: 5.867 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1468, allocations: 0 / 0.6902 GB, free: 5.867 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01748/0.1642, allocations: 2.981 MB / 0.6931 GB, free: 3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.026/7.19, allocations: 14.62 kB / 0.6931 GB, free: 2.988 MB / 494.1 MB (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)