Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_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.004184/0.004184, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 195.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.132/2.132, allocations: 390.3 MB / 0.6648 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6428/0.644, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002268/0.6464, allocations: 1.525 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006438/0.647, allocations: 449.8 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.698e-05/0.6471, allocations: 1.156 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.749e-05/0.6472, allocations: 9 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.655e-05/0.6472, allocations: 11.28 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001775/0.6474, allocations: 34.69 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.6475, allocations: 90.33 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.975e-05/0.6476, allocations: 14.8 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.6477, allocations: 46.09 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.256e-05/0.6478, allocations: 36.39 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.6479, allocations: 5.531 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.534e-05/0.6479, allocations: 6.469 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.112e-05/0.6479, allocations: 19.05 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.332e-05/0.648, allocations: 32.11 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.6481, allocations: 71.11 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.6481, allocations: 1.062 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6481, allocations: 0 / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.6481, allocations: 0 / 1.09 GB, free: 3.723 MB / 0.8575 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.0005501/0.6487, allocations: 451.9 kB / 1.09 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.6487, allocations: 9.375 kB / 1.09 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.6488, allocations: 42.22 kB / 1.09 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.6488, allocations: 10.69 kB / 1.09 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.6489, allocations: 188.9 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.6489, allocations: 3.5 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.649, allocations: 5.422 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002706/0.6492, allocations: 101.6 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.6493, allocations: 0 / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.6493, allocations: 1.922 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.6493, allocations: 1.125 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.6496, allocations: 78.39 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004684/0.6501, allocations: 339.6 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.6503, allocations: 84.73 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.6505, allocations: 54.05 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.6505, allocations: 5.109 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.6508, allocations: 105.2 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.6508, allocations: 1.25 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006054/0.6514, allocations: 210.9 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.6515, allocations: 80.62 kB / 1.091 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.204e-05/0.6516, allocations: 138.3 kB / 1.092 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.6516, allocations: 26.8 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.523e-05/0.6516, allocations: 97.72 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.6516, allocations: 21.03 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.6517, allocations: 25.22 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.83e-05/0.6517, allocations: 323.8 kB / 1.092 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.6519, allocations: 49.92 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.6521, allocations: 50.23 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.6524, allocations: 170 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6524, allocations: 3.938 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004157/0.6528, allocations: 210.5 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.6529, allocations: 64.06 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.6529, allocations: 1.25 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.6529, allocations: 0 / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.653, allocations: 23.7 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.653, allocations: 1.875 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.6532, allocations: 22.8 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.6532, allocations: 6.859 kB / 1.093 GB, free: 1.355 MB / 0.8575 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 7.332e-05/0.6533, allocations: 149.2 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.6533, allocations: 12.97 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.6533, allocations: 10.44 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.6533, allocations: 5.812 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.6533, allocations: 0.7188 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.6534, allocations: 5.391 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/0.6539, allocations: 429.2 kB / 1.093 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.6539, allocations: 0 / 1.093 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.297e-05/0.654, allocations: 18.44 kB / 1.093 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.654, allocations: 0.5625 kB / 1.093 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.654, allocations: 2.688 kB / 1.093 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.654, allocations: 3.938 kB / 1.093 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.654, allocations: 0.9062 kB / 1.093 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004037/0.6544, allocations: 267.8 kB / 1.093 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.791e-05/0.6545, allocations: 88.48 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.6545, allocations: 2.828 kB / 1.094 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.6547, allocations: 17.69 kB / 1.094 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.6548, allocations: 20 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.6548, allocations: 10.88 kB / 1.094 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.441e-05/0.6549, allocations: 101.9 kB / 1.094 GB, free: 16.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6549, allocations: 0 / 1.094 GB, free: 16.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002468/0.6551, allocations: 24.25 kB / 1.094 GB, free: 16.41 MB / 0.8731 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.0007049/0.6558, allocations: 0.8 MB / 1.095 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004493/0.6563, allocations: 230.5 kB / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6563, allocations: 0 / 1.095 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000219/0.6565, allocations: 109.9 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.6568, allocations: 15.14 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.659, allocations: 1.718 MB / 1.097 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.6592, allocations: 0.6917 MB / 1.097 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.847e-05/0.6593, allocations: 10.78 kB / 1.097 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.319e-05/0.6594, allocations: 26.03 kB / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.6594, allocations: 4 kB / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.6775, allocations: 2.524 MB / 1.1 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.212/7.89, allocations: 9.047 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches