Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.001801/0.001801, allocations: 105.4 kB / 15.7 MB, free: 24 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.001924/0.001924, allocations: 197.5 kB / 16.64 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.638/1.638, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 73.84 kB / 0.6718 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1995, allocations: 114.6 MB / 0.7836 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002514/0.2021, allocations: 1.519 MB / 0.7851 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007229/0.2028, allocations: 496.7 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.516e-05/0.2029, allocations: 0 / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.281e-05/0.203, allocations: 11.88 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.804e-05/0.203, allocations: 15.86 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.2032, allocations: 23.97 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.2034, allocations: 99.69 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.622e-05/0.2035, allocations: 12.19 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2036, allocations: 39.84 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.614e-05/0.2037, allocations: 43.83 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.2037, allocations: 4 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.2037, allocations: 8 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.225e-05/0.2038, allocations: 19.92 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.913e-05/0.2038, allocations: 27.86 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.2039, allocations: 75.98 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.204, allocations: 0 / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.204, allocations: 3.938 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.204, allocations: 0 / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006245/0.2046, allocations: 446.6 kB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2046, allocations: 12.03 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.2047, allocations: 38.73 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.2047, allocations: 8.844 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.2049, allocations: 188.1 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.2049, allocations: 8.375 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.2049, allocations: 4.375 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.2052, allocations: 93.56 kB / 0.7867 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.2052, allocations: 4 kB / 0.7867 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2052, allocations: 12 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.2052, allocations: 0 / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.2055, allocations: 75.86 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.206, allocations: 328.7 kB / 0.7871 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.2063, allocations: 86.52 kB / 0.7872 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.2065, allocations: 60.97 kB / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.2065, allocations: 0 / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.2068, allocations: 99.34 kB / 0.7874 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2068, allocations: 0 / 0.7874 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005905/0.2074, allocations: 207.2 kB / 0.7876 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2075, allocations: 81.11 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2076, allocations: 140.8 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.2076, allocations: 33.7 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.485e-05/0.2077, allocations: 100 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2077, allocations: 15.8 kB / 0.7879 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.2078, allocations: 29.7 kB / 0.788 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.848e-05/0.2079, allocations: 322.8 kB / 0.7883 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.208, allocations: 47.97 kB / 0.7883 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.2082, allocations: 51.95 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.2085, allocations: 170 kB / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.2085, allocations: 0 / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004127/0.209, allocations: 212.8 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.209, allocations: 64.33 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.209, allocations: 0 / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.209, allocations: 4 kB / 0.7888 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.2092, allocations: 15.98 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.2092, allocations: 3.938 kB / 0.7888 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.2093, allocations: 23.86 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2093, allocations: 7.984 kB / 0.7888 GB, free: 7.59 MB / 0.6075 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 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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.0001032/0.2095, allocations: 143.5 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.2095, allocations: 7.906 kB / 0.789 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.746e-05/0.2095, allocations: 12.72 kB / 0.789 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.2095, allocations: 7.984 kB / 0.789 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2095, allocations: 0 / 0.789 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2095, allocations: 3.938 kB / 0.789 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.2101, allocations: 428.5 kB / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.2101, allocations: 0 / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.371e-05/0.2102, allocations: 19.92 kB / 0.7894 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2102, allocations: 4 kB / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2102, allocations: 0 / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2102, allocations: 3.938 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2102, allocations: 4.078 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004275/0.2107, allocations: 265 kB / 0.7897 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.2107, allocations: 89.02 kB / 0.7898 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.2108, allocations: 4 kB / 0.7898 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.2109, allocations: 27.91 kB / 0.7898 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.345e-05/0.211, allocations: 15.98 kB / 0.7898 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.211, allocations: 11.98 kB / 0.7898 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.759e-05/0.2111, allocations: 95.27 kB / 0.7899 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2111, allocations: 0 / 0.7899 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002585/0.2114, allocations: 20 kB / 0.7899 GB, free: 6.328 MB / 0.6075 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,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0007194/0.2121, allocations: 0.8 MB / 0.7907 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004276/0.2125, allocations: 234.6 kB / 0.791 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2125, allocations: 4 kB / 0.791 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.2127, allocations: 103.4 kB / 0.7911 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.213, allocations: 19.88 kB / 0.7911 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.2152, allocations: 1.718 MB / 0.7928 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.2155, allocations: 0.6924 MB / 0.7934 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.303e-05/0.2155, allocations: 7.984 kB / 0.7934 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.2156, allocations: 27.42 kB / 0.7935 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.2156, allocations: 0 / 0.7935 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.2325, allocations: 2.526 MB / 0.7959 GB, free: 172 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.216/7.449, allocations: 3.984 kB / 0.7959 GB, free: 168 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)