Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.336/1.336, allocations: 252 MB / 267 MB, free: 10.95 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009607/0.0009607, allocations: 182.5 kB / 326.6 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.4 MB / 0.5777 GB, free: 20.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007489/0.0007489, allocations: 95.27 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002946, allocations: 8.438 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1804, allocations: 106.3 MB / 0.9003 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001598/0.1821, allocations: 1.231 MB / 0.9015 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007311/0.1828, allocations: 479.7 kB / 0.902 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.556e-05/0.1829, allocations: 0 / 0.902 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.531e-05/0.183, allocations: 3.938 kB / 0.902 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.71e-05/0.1831, allocations: 7.938 kB / 0.902 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.1833, allocations: 35.89 kB / 0.902 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.107e-05/0.1834, allocations: 71.77 kB / 0.9021 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.1835, allocations: 8.188 kB / 0.9021 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.1836, allocations: 35.84 kB / 0.9021 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.783e-05/0.1837, allocations: 31.89 kB / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.1837, allocations: 4 kB / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.714e-05/0.1838, allocations: 4 kB / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.1838, allocations: 19.86 kB / 0.9022 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.304e-05/0.1839, allocations: 33.7 kB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.348e-05/0.184, allocations: 47.91 kB / 0.9023 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.184, allocations: 0 / 0.9023 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.194e-06/0.184, allocations: 0 / 0.9023 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.184, allocations: 3.938 kB / 0.9023 GB, free: 61.78 MB / 0.6042 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.0006231/0.1846, allocations: 450.7 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1847, allocations: 8.031 kB / 0.9027 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.854e-05/0.1847, allocations: 38.56 kB / 0.9027 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.1848, allocations: 15.86 kB / 0.9027 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.1849, allocations: 181.2 kB / 0.9029 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1849, allocations: 0 / 0.9029 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.185, allocations: 7.984 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.1853, allocations: 105.6 kB / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1853, allocations: 0 / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.1853, allocations: 4 kB / 0.903 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1853, allocations: 0 / 0.903 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.1856, allocations: 91.92 kB / 0.9031 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004986/0.1861, allocations: 340.6 kB / 0.9034 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.1864, allocations: 94.52 kB / 0.9035 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1866, allocations: 64.94 kB / 0.9036 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.1866, allocations: 0 / 0.9036 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.1869, allocations: 111.3 kB / 0.9037 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.1869, allocations: 0 / 0.9037 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0005902/0.1875, allocations: 243.2 kB / 0.9039 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.1876, allocations: 81.11 kB / 0.904 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.608e-05/0.1877, allocations: 130.1 kB / 0.9041 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1877, allocations: 29.7 kB / 0.9042 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.831e-05/0.1877, allocations: 96.03 kB / 0.9043 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.1877, allocations: 19.75 kB / 0.9043 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-06/0.1878, allocations: 0 / 0.9043 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.1878, allocations: 326.8 kB / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.188, allocations: 59.95 kB / 0.9046 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.1881, allocations: 51.97 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.1883, allocations: 119.4 kB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1883, allocations: 0 / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004/0.1887, allocations: 224.9 kB / 0.905 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.1888, allocations: 57.59 kB / 0.9051 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1888, allocations: 3.953 kB / 0.9051 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.1888, allocations: 7.938 kB / 0.9051 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.1889, allocations: 15.98 kB / 0.9051 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.189, allocations: 0 / 0.9051 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1891, allocations: 39.86 kB / 0.9051 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.1891, allocations: 4 kB / 0.9051 GB, free: 58.53 MB / 0.6042 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.097e-05/0.1892, allocations: 139.5 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.662e-05/0.1892, allocations: 11.91 kB / 0.9053 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.1893, allocations: 12.7 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1893, allocations: 3.953 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1893, allocations: 0 / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1893, allocations: 4 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004764/0.1898, allocations: 452.1 kB / 0.9057 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1898, allocations: 0 / 0.9057 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.059e-05/0.1899, allocations: 23.98 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1899, allocations: 3.953 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.1899, allocations: 0 / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1899, allocations: 0 / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1899, allocations: 0 / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003949/0.1903, allocations: 285.1 kB / 0.906 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.1904, allocations: 85.02 kB / 0.9061 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.1904, allocations: 15.88 kB / 0.9061 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.1906, allocations: 19.98 kB / 0.9062 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.1907, allocations: 23.97 kB / 0.9062 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.1907, allocations: 4 kB / 0.9062 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.28e-05/0.1907, allocations: 104.5 kB / 0.9063 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1907, allocations: 0 / 0.9063 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002203/0.191, allocations: 20 kB / 0.9063 GB, free: 57.23 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005813/0.1916, allocations: 0.8157 MB / 0.9071 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004088/0.192, allocations: 242.5 kB / 0.9073 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.192, allocations: 0 / 0.9073 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1922, allocations: 119.9 kB / 0.9074 GB, free: 55.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.1925, allocations: 22.94 kB / 0.9075 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.1937, allocations: 0.7186 MB / 0.9082 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.1939, allocations: 0.6887 MB / 0.9088 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.072e-05/0.1939, allocations: 11.98 kB / 0.9088 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.194, allocations: 27.42 kB / 0.9089 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of SimCode: time 8.02e-07/0.194, allocations: 0 / 0.9089 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01133/0.2053, allocations: 2.152 MB / 0.911 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001236/0.2055, allocations: 224 kB / 0.9112 GB, free: 52.28 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.501/1.706, allocations: 1.625 kB / 0.9112 GB, free: 52.28 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)