Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_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.007715/0.007715, allocations: 99.44 kB / 15.73 MB, free: 6.062 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.001967/0.001967, allocations: 197 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.543/2.543, allocations: 469.4 MB / 0.7422 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 67.89 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6646/0.6659, allocations: 159.1 MB / 1.22 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002371/0.6683, allocations: 1.519 MB / 1.221 GB, free: 0.7852 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0006794/0.669, allocations: 450.9 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.374e-05/0.6691, allocations: 0 / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.806e-05/0.6692, allocations: 7.938 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.721e-05/0.6692, allocations: 19.81 kB / 1.222 GB, free: 320 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.6694, allocations: 27.95 kB / 1.222 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.6695, allocations: 91.69 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.6697, allocations: 20.19 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.6698, allocations: 35.91 kB / 1.222 GB, free: 144 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.236e-05/0.6698, allocations: 39.77 kB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.6699, allocations: 8 kB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.423e-05/0.6699, allocations: 4 kB / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.004e-05/0.6699, allocations: 19.92 kB / 1.222 GB, free: 72 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.412e-05/0.67, allocations: 31.8 kB / 1.222 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.6701, allocations: 78.38 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.6702, allocations: 0 / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6702, allocations: 4 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.177e-06/0.6702, allocations: 0 / 1.222 GB, free: 15.96 MB / 0.9512 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.0006374/0.6708, allocations: 447.5 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.6708, allocations: 8.625 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.6709, allocations: 42.73 kB / 1.222 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.6709, allocations: 8.891 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.6711, allocations: 192.2 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.6711, allocations: 4.312 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.6711, allocations: 8.375 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.6714, allocations: 101.6 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.6714, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.6715, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.6715, allocations: 0 / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.6718, allocations: 75.92 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005276/0.6723, allocations: 340.6 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.6726, allocations: 78.52 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.6728, allocations: 56.94 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.6728, allocations: 4 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.6731, allocations: 107.4 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.6731, allocations: 0 / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0006212/0.6737, allocations: 207.2 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.6738, allocations: 77.11 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.519e-05/0.6739, allocations: 136.2 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.6739, allocations: 25.7 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.247e-05/0.674, allocations: 100.1 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.674, allocations: 27.77 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.6741, allocations: 29.64 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.6742, allocations: 322.8 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.6744, allocations: 51.95 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.6745, allocations: 51.89 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.6749, allocations: 169.9 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6749, allocations: 0 / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004447/0.6753, allocations: 212.9 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.6754, allocations: 63.39 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.6754, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.6754, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.6756, allocations: 19.98 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.6756, allocations: 0 / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.6757, allocations: 23.88 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.6757, allocations: 4 kB / 1.225 GB, free: 12.72 MB / 0.9512 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 0.0001062/0.6759, allocations: 151.5 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.6759, allocations: 7.953 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.074e-05/0.6759, allocations: 16.72 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.6759, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.6759, allocations: 0 / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.6759, allocations: 3.938 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005697/0.6765, allocations: 432.2 kB / 1.225 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6765, allocations: 0 / 1.225 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.506e-05/0.6766, allocations: 19.91 kB / 1.225 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.6766, allocations: 0 / 1.225 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.6767, allocations: 4 kB / 1.225 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.6767, allocations: 3.938 kB / 1.225 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.6767, allocations: 288 / 1.225 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004479/0.6771, allocations: 269.1 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.6772, allocations: 81.06 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.6772, allocations: 7.938 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.6774, allocations: 19.91 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.6775, allocations: 19.98 kB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.6775, allocations: 4 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.48e-05/0.6776, allocations: 99.25 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6776, allocations: 0 / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002492/0.6778, allocations: 27.94 kB / 1.226 GB, free: 11.45 MB / 0.9512 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.0007096/0.6785, allocations: 0.8097 MB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004455/0.679, allocations: 230.6 kB / 1.227 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.679, allocations: 0 / 1.227 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.6792, allocations: 111.4 kB / 1.227 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.6795, allocations: 7.938 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.6817, allocations: 1.722 MB / 1.229 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.6819, allocations: 0.6963 MB / 1.229 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.533e-05/0.682, allocations: 11.98 kB / 1.229 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.6821, allocations: 27.42 kB / 1.23 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of SimCode: time 3.01e-07/0.6821, allocations: 0 / 1.23 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.6988, allocations: 2.547 MB / 1.232 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/8.097, allocations: 7.688 kB / 1.232 GB, free: 5.258 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches