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.425/1.425, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001319/0.001319, allocations: 192 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.17/2.17, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.001252/0.001252, allocations: 87.23 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003856, allocations: 9.5 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3118, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.5112, allocations: 133.3 MB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.5115, allocations: 91.92 kB / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004676/0.5162, allocations: 1.524 MB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5162, allocations: 4 kB / 1.032 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.5162, allocations: 0 / 1.032 GB, free: 8.797 MB / 0.6823 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.0006166/0.5168, allocations: 454.3 kB / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5169, allocations: 8.031 kB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.5169, allocations: 38.55 kB / 1.032 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.517, allocations: 7.906 kB / 1.032 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.5172, allocations: 187 kB / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.5172, allocations: 11.94 kB / 1.033 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.5173, allocations: 4 kB / 1.033 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.5176, allocations: 101.6 kB / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.5176, allocations: 0 / 1.033 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.5176, allocations: 7.984 kB / 1.033 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5176, allocations: 4 kB / 1.033 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.5179, allocations: 87.92 kB / 1.033 GB, free: 7.789 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006041/0.5185, allocations: 344.6 kB / 1.033 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.5188, allocations: 98.52 kB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.5189, allocations: 0 / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.5191, allocations: 119.5 kB / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 4.208e-06/0.5192, allocations: 0 / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0006279/0.5198, allocations: 235.1 kB / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.5199, allocations: 85.11 kB / 1.034 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.52, allocations: 118.2 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.52, allocations: 29.7 kB / 1.034 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.5201, allocations: 100.7 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.5201, allocations: 15.81 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.716e-06/0.5201, allocations: 4 kB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.5203, allocations: 322.8 kB / 1.034 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.5204, allocations: 59.89 kB / 1.034 GB, free: 6.16 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.5206, allocations: 51.97 kB / 1.034 GB, free: 6.109 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.5208, allocations: 107.4 kB / 1.034 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5208, allocations: 0 / 1.034 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004331/0.5212, allocations: 229.1 kB / 1.035 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.862e-05/0.5213, allocations: 59.39 kB / 1.035 GB, free: 5.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5213, allocations: 4.094 kB / 1.035 GB, free: 5.676 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.5213, allocations: 3.938 kB / 1.035 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.5215, allocations: 15.98 kB / 1.035 GB, free: 5.656 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.5215, allocations: 3.953 kB / 1.035 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.5216, allocations: 31.83 kB / 1.035 GB, free: 5.621 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.5217, allocations: 11.98 kB / 1.035 GB, free: 5.609 MB / 0.6823 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 0.0001218/0.5218, allocations: 144.2 kB / 1.035 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.5218, allocations: 7.906 kB / 1.035 GB, free: 5.445 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.5218, allocations: 8.719 kB / 1.035 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5219, allocations: 3.984 kB / 1.035 GB, free: 5.434 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5219, allocations: 7.938 kB / 1.035 GB, free: 5.426 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.5219, allocations: 7.953 kB / 1.035 GB, free: 5.418 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.5225, allocations: 440.5 kB / 1.035 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5225, allocations: 7.938 kB / 1.035 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.186e-05/0.5226, allocations: 23.98 kB / 1.035 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5226, allocations: 0 / 1.035 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.5226, allocations: 0 / 1.035 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5226, allocations: 3.953 kB / 1.035 GB, free: 4.891 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5226, allocations: 4 kB / 1.035 GB, free: 4.887 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.5231, allocations: 285 kB / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.5231, allocations: 81.02 kB / 1.036 GB, free: 4.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.5232, allocations: 4 kB / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.5233, allocations: 27.97 kB / 1.036 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.5234, allocations: 23.92 kB / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.5234, allocations: 4 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.757e-05/0.5235, allocations: 101 kB / 1.036 GB, free: 4.332 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5235, allocations: 0 / 1.036 GB, free: 4.332 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002312/0.5238, allocations: 20 kB / 1.036 GB, free: 4.312 MB / 0.6823 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.0007597/0.5245, allocations: 0.8194 MB / 1.037 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004465/0.525, allocations: 234.7 kB / 1.037 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.525, allocations: 0 / 1.037 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.5252, allocations: 123.3 kB / 1.037 GB, free: 3.074 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.5255, allocations: 18.98 kB / 1.037 GB, free: 3.059 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.5269, allocations: 0.7271 MB / 1.038 GB, free: 2.277 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.5271, allocations: 0.6928 MB / 1.038 GB, free: 1.559 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.089e-05/0.5272, allocations: 11.98 kB / 1.038 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.5273, allocations: 27.36 kB / 1.038 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.5273, allocations: 0 / 1.038 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.542, allocations: 2.126 MB / 1.041 GB, free: 15.61 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.5423, allocations: 215.9 kB / 1.041 GB, free: 15.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.341, allocations: 0 / 1.041 GB, free: 15.37 MB / 0.698 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)