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.161/1.161, allocations: 251.5 MB / 266.7 MB, free: 11.03 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.0007963/0.0007963, allocations: 179.3 kB / 325.8 MB, free: 2.68 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.17/1.17, allocations: 205 MB / 0.576 GB, free: 20.99 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.000621/0.000621, allocations: 77.86 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002491, allocations: 11.62 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1262, allocations: 105.4 MB / 0.8962 GB, free: 68.07 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001106/0.1273, allocations: 1.258 MB / 0.8974 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005238/0.1279, allocations: 0.4963 MB / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.1279, allocations: 0 / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.454e-05/0.128, allocations: 4 kB / 0.8979 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.815e-05/0.128, allocations: 15.86 kB / 0.8979 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.1282, allocations: 27.97 kB / 0.898 GB, free: 66.25 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.045e-05/0.1283, allocations: 83.7 kB / 0.898 GB, free: 66.17 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.718e-05/0.1283, allocations: 20.17 kB / 0.8981 GB, free: 66.15 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.098e-05/0.1284, allocations: 27.91 kB / 0.8981 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.386e-05/0.1285, allocations: 35.78 kB / 0.8981 GB, free: 66.09 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.1285, allocations: 4 kB / 0.8981 GB, free: 66.08 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1285, allocations: 8 kB / 0.8981 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.1286, allocations: 15.91 kB / 0.8982 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.1286, allocations: 27.86 kB / 0.8982 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.403e-05/0.1287, allocations: 63.77 kB / 0.8982 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1287, allocations: 0 / 0.8982 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1287, allocations: 0 / 0.8982 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.805e-06/0.1287, allocations: 0 / 0.8982 GB, free: 65.97 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.0004469/0.1292, allocations: 446.6 kB / 0.8987 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.834e-05/0.1292, allocations: 12.03 kB / 0.8987 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.567e-05/0.1292, allocations: 38.69 kB / 0.8987 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.84e-05/0.1293, allocations: 8.844 kB / 0.8987 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.941e-05/0.1294, allocations: 184.3 kB / 0.8989 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.1294, allocations: 8.375 kB / 0.8989 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1294, allocations: 4.375 kB / 0.8989 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.1296, allocations: 109.5 kB / 0.899 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.1296, allocations: 0 / 0.899 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.1297, allocations: 4 kB / 0.899 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1297, allocations: 4 kB / 0.899 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.1299, allocations: 83.94 kB / 0.8991 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003744/0.1303, allocations: 344.5 kB / 0.8994 GB, free: 64.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.1305, allocations: 98.52 kB / 0.8995 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.1306, allocations: 56.95 kB / 0.8996 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.1307, allocations: 4 kB / 0.8996 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002179/0.1309, allocations: 119.3 kB / 0.8997 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.1309, allocations: 4 kB / 0.8997 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004654/0.1314, allocations: 231.4 kB / 0.8999 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.1314, allocations: 81.11 kB / 0.9 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.046e-05/0.1315, allocations: 131.9 kB / 0.9001 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.1315, allocations: 25.7 kB / 0.9001 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.698e-05/0.1315, allocations: 92.14 kB / 0.9002 GB, free: 63.69 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.1315, allocations: 27.64 kB / 0.9003 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.1316, allocations: 13.72 kB / 0.9003 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.1316, allocations: 330.8 kB / 0.9006 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.1317, allocations: 59.89 kB / 0.9006 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1319, allocations: 51.97 kB / 0.9007 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.1321, allocations: 190 kB / 0.9009 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1321, allocations: 0 / 0.9009 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003153/0.1324, allocations: 228.9 kB / 0.9011 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.1325, allocations: 58.06 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1325, allocations: 4.078 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.1325, allocations: 3.938 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.1326, allocations: 23.98 kB / 0.9012 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1326, allocations: 3.984 kB / 0.9012 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.1327, allocations: 27.91 kB / 0.9012 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.1328, allocations: 4 kB / 0.9012 GB, free: 62.62 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 (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 5.743e-05/0.1328, allocations: 147.5 kB / 0.9014 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.1328, allocations: 7.906 kB / 0.9014 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.1329, allocations: 20.7 kB / 0.9014 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.1329, allocations: 0 / 0.9014 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1329, allocations: 4 kB / 0.9014 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1329, allocations: 3.938 kB / 0.9014 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.1333, allocations: 444.2 kB / 0.9018 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1333, allocations: 0 / 0.9018 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.1334, allocations: 15.98 kB / 0.9018 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1334, allocations: 0 / 0.9018 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1334, allocations: 0 / 0.9018 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1334, allocations: 7.938 kB / 0.9018 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1334, allocations: 0 / 0.9018 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.1337, allocations: 293 kB / 0.9021 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.753e-05/0.1337, allocations: 88.95 kB / 0.9022 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.1338, allocations: 11.98 kB / 0.9022 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.1339, allocations: 19.92 kB / 0.9022 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.084e-05/0.134, allocations: 23.97 kB / 0.9023 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.134, allocations: 0 / 0.9023 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.335e-05/0.134, allocations: 104.8 kB / 0.9024 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.11e-07/0.134, allocations: 0 / 0.9024 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001889/0.1342, allocations: 20 kB / 0.9024 GB, free: 61.31 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 (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.0004323/0.1347, allocations: 0.8273 MB / 0.9032 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.135, allocations: 222.7 kB / 0.9034 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.135, allocations: 8 kB / 0.9034 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.1351, allocations: 119.3 kB / 0.9035 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.1354, allocations: 19.86 kB / 0.9035 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.1368, allocations: 1.755 MB / 0.9052 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.088e-05/0.1369, allocations: 0.6926 MB / 0.9059 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.557e-05/0.137, allocations: 11.98 kB / 0.9059 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.207e-05/0.137, allocations: 19.44 kB / 0.906 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.137, allocations: 0 / 0.906 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4255/0.5625, allocations: 2.162 MB / 0.9081 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001337/0.5627, allocations: 256 kB / 0.9083 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.305, allocations: 0 / 0.9083 GB, free: 55.25 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)