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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.704/1.704, allocations: 289.9 MB / 297.4 MB, free: 6.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 172.8 kB / 366.7 MB, free: 1.703 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.862/1.862, allocations: 205.2 MB / 0.626 GB, free: 7.211 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008771/0.0008769, allocations: 88.48 kB / 0.74 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.22e-05/2.222e-05, allocations: 4 kB / 0.8598 GB, free: 13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8108/0.8108, allocations: 116.3 MB / 0.9734 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2226/1.033, allocations: 139.8 MB / 1.11 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004554/1.034, allocations: 99.91 kB / 1.11 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.005739/1.04, allocations: 1.503 MB / 1.111 GB, free: 8.781 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.443e-06/1.04, allocations: 4.656 kB / 1.111 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.417e-05/1.04, allocations: 0 / 1.111 GB, free: 8.777 MB / 0.7136 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.0007053/1.041, allocations: 436.5 kB / 1.112 GB, free: 8.297 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/1.041, allocations: 13.25 kB / 1.112 GB, free: 8.285 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/1.041, allocations: 8.719 kB / 1.112 GB, free: 8.277 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/1.041, allocations: 195.2 kB / 1.112 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/1.041, allocations: 0 / 1.112 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/1.041, allocations: 4 kB / 1.112 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001405/1.041, allocations: 37.91 kB / 1.112 GB, free: 8.012 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/1.041, allocations: 69.66 kB / 1.112 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/1.041, allocations: 0 / 1.112 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/1.041, allocations: 0 / 1.112 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/1.041, allocations: 5.188 kB / 1.112 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007034/1.042, allocations: 320.2 kB / 1.112 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/1.042, allocations: 51.72 kB / 1.113 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.039e-05/1.042, allocations: 29.58 kB / 1.113 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/1.042, allocations: 0.625 kB / 1.113 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/1.043, allocations: 85.75 kB / 1.113 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/1.043, allocations: 0 / 1.113 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002959/1.043, allocations: 93.61 kB / 1.113 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/1.043, allocations: 85.09 kB / 1.113 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/1.043, allocations: 119.8 kB / 1.113 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/1.043, allocations: 25.7 kB / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/1.043, allocations: 99.47 kB / 1.113 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/1.043, allocations: 27.59 kB / 1.113 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/1.043, allocations: 0 / 1.113 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001479/1.043, allocations: 329.5 kB / 1.113 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.297e-05/1.043, allocations: 24 kB / 1.113 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.235e-05/1.044, allocations: 31.98 kB / 1.113 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.487e-05/1.044, allocations: 15.98 kB / 1.113 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.044, allocations: 0 / 1.113 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001974/1.044, allocations: 120.5 kB / 1.114 GB, free: 6.41 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/1.044, allocations: 55.41 kB / 1.114 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.044, allocations: 0 / 1.114 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/1.044, allocations: 4 kB / 1.114 GB, free: 6.34 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/1.044, allocations: 19.97 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/1.044, allocations: 0 / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/1.044, allocations: 23.89 kB / 1.114 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/1.044, allocations: 12 kB / 1.114 GB, free: 6.285 MB / 0.7136 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 () * 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.0001273/1.044, allocations: 138.6 kB / 1.114 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001661/1.045, allocations: 99.77 kB / 1.114 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/1.045, allocations: 7.906 kB / 1.114 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/1.045, allocations: 16.61 kB / 1.114 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/1.045, allocations: 0 / 1.114 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.045, allocations: 0 / 1.114 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/1.045, allocations: 3.953 kB / 1.114 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003217/1.045, allocations: 339.1 kB / 1.114 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/1.045, allocations: 0 / 1.114 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.815e-05/1.045, allocations: 18.48 kB / 1.114 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/1.045, allocations: 0 / 1.114 GB, free: 5.617 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/1.045, allocations: 4 kB / 1.114 GB, free: 5.613 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/1.045, allocations: 0 / 1.114 GB, free: 5.613 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/1.045, allocations: 3.953 kB / 1.114 GB, free: 5.609 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/1.045, allocations: 211.3 kB / 1.114 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/1.045, allocations: 81.02 kB / 1.115 GB, free: 5.289 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/1.045, allocations: 4 kB / 1.115 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/1.046, allocations: 17.67 kB / 1.115 GB, free: 5.27 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/1.046, allocations: 19.97 kB / 1.115 GB, free: 5.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/1.046, allocations: 15.88 kB / 1.115 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.638e-05/1.046, allocations: 95.28 kB / 1.115 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.4e-07/1.046, allocations: 4 kB / 1.115 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002633/1.046, allocations: 19.94 kB / 1.115 GB, free: 5.117 MB / 0.7136 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) * 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.00059/1.047, allocations: 0.7374 MB / 1.115 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002589/1.047, allocations: 178.7 kB / 1.116 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/1.047, allocations: 0 / 1.116 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/1.047, allocations: 95.39 kB / 1.116 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/1.047, allocations: 4 kB / 1.116 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005219/1.048, allocations: 163 kB / 1.116 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/1.048, allocations: 0.6963 MB / 1.117 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.087e-05/1.048, allocations: 15.36 kB / 1.117 GB, free: 3.121 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/1.048, allocations: 25.31 kB / 1.117 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/1.048, allocations: 0 / 1.117 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/1.069, allocations: 1.742 MB / 1.118 GB, free: 1.41 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/1.07, allocations: 164.9 kB / 1.118 GB, free: 1.223 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.782, allocations: 2.109 kB / 1.118 GB, free: 1.223 MB / 0.7136 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --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)