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.004611/0.004611, allocations: 97.19 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 193.1 kB / 16.67 MB, free: 5.969 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.196/1.196, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001977, allocations: 287.1 kB / 290.8 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8687/0.8687, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 99.84 kB / 0.6809 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1332, allocations: 86.96 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002182/0.1354, allocations: 1.474 MB / 0.7673 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006885/0.1362, allocations: 458.9 kB / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.702e-05/0.1362, allocations: 0 / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 7.759e-05/0.1363, allocations: 7.875 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.412e-05/0.1364, allocations: 23.84 kB / 0.7678 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.1365, allocations: 23.97 kB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001439/0.1367, allocations: 111.7 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.173e-05/0.1368, allocations: 20.16 kB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.1369, allocations: 47.89 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.137, allocations: 43.77 kB / 0.768 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.1371, allocations: 12 kB / 0.768 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.1371, allocations: 8 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.1371, allocations: 11.98 kB / 0.768 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.1372, allocations: 39.8 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.1373, allocations: 83.97 kB / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1373, allocations: 0 / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1373, allocations: 0 / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.1374, allocations: 0 / 0.7682 GB, free: 6.602 MB / 0.5606 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.0006075/0.138, allocations: 450.5 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.138, allocations: 16.03 kB / 0.7686 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.1381, allocations: 38.75 kB / 0.7686 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.1381, allocations: 12.88 kB / 0.7687 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.1383, allocations: 184.3 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.1383, allocations: 12.36 kB / 0.7688 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.913e-05/0.1383, allocations: 4.375 kB / 0.7688 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.1386, allocations: 125.5 kB / 0.769 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.1386, allocations: 0 / 0.769 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1387, allocations: 0 / 0.769 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1387, allocations: 8 kB / 0.769 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.139, allocations: 83.92 kB / 0.7691 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004917/0.1395, allocations: 328.7 kB / 0.7694 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.1398, allocations: 110.5 kB / 0.7695 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.14, allocations: 73.39 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.14, allocations: 4 kB / 0.7695 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.1403, allocations: 123.3 kB / 0.7697 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.1403, allocations: 4 kB / 0.7697 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0006506/0.141, allocations: 275.2 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.141, allocations: 85.09 kB / 0.77 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.59e-05/0.1411, allocations: 127.7 kB / 0.7701 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1411, allocations: 29.7 kB / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.1412, allocations: 104 kB / 0.7703 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.1412, allocations: 19.91 kB / 0.7703 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-05/0.1413, allocations: 29.7 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.1414, allocations: 322.8 kB / 0.7706 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.1416, allocations: 68.03 kB / 0.7707 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.1417, allocations: 63.94 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.1421, allocations: 186 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1421, allocations: 3.938 kB / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004586/0.1425, allocations: 260.9 kB / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.1426, allocations: 63.41 kB / 0.7712 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.1426, allocations: 0 / 0.7712 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.1426, allocations: 0 / 0.7712 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.1427, allocations: 24.22 kB / 0.7713 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1427, allocations: 0 / 0.7713 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.1429, allocations: 23.98 kB / 0.7713 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.1429, allocations: 7.938 kB / 0.7713 GB, free: 3.098 MB / 0.5606 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.0001059/0.143, allocations: 164.1 kB / 0.7714 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.1431, allocations: 7.953 kB / 0.7714 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.635e-05/0.1431, allocations: 16.34 kB / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1431, allocations: 4 kB / 0.7715 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1431, allocations: 4 kB / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1431, allocations: 0 / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.1432, allocations: 193.5 kB / 0.7717 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1433, allocations: 0 / 0.7717 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.509e-05/0.1433, allocations: 11.98 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1434, allocations: 0 / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.1434, allocations: 4 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1434, allocations: 0 / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1434, allocations: 3.938 kB / 0.7717 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004676/0.1439, allocations: 254.6 kB / 0.7719 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.731e-05/0.1439, allocations: 81.06 kB / 0.772 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.1439, allocations: 8 kB / 0.772 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.1441, allocations: 19.97 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.1442, allocations: 39.95 kB / 0.7721 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.1442, allocations: 4 kB / 0.7721 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.459e-05/0.1443, allocations: 104 kB / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1443, allocations: 0 / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001981/0.1445, allocations: 24 kB / 0.7722 GB, free: 2.066 MB / 0.5606 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.0006808/0.1452, allocations: 0.7781 MB / 0.7729 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004571/0.1456, allocations: 266.6 kB / 0.7732 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1456, allocations: 4 kB / 0.7732 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002312/0.1459, allocations: 139.4 kB / 0.7733 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.1461, allocations: 26.36 kB / 0.7734 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2566/0.4027, allocations: 1.751 MB / 0.7751 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.679e-05/0.4028, allocations: 0.6911 MB / 0.7757 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.777e-05/0.4029, allocations: 11.42 kB / 0.7758 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.153e-05/0.4029, allocations: 25.98 kB / 0.7758 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of SimCode: time 4.9e-07/0.4029, allocations: 0 / 0.7758 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.4213, allocations: 3.014 MB / 0.7787 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.686/7.107, allocations: 13.56 kB / 0.7787 GB, free: 13.07 MB / 0.5606 GB (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)