Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_10_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.001604/0.001604, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 197.8 kB / 16.54 MB, free: 6.672 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.481/2.481, allocations: 437.1 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.91 kB / 0.8694 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.49, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002376/0.4924, allocations: 1.522 MB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006367/0.4931, allocations: 447 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.5e-05/0.4931, allocations: 3.938 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.052e-05/0.4932, allocations: 11.92 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.38e-05/0.4933, allocations: 15.86 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.4935, allocations: 27.91 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.4936, allocations: 87.77 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.165e-05/0.4937, allocations: 12.19 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.4938, allocations: 55.77 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.09e-05/0.4939, allocations: 39.83 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.4939, allocations: 4 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.907e-05/0.4939, allocations: 8 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.816e-05/0.494, allocations: 15.94 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.494, allocations: 35.78 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.4941, allocations: 66.03 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.4942, allocations: 0 / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4942, allocations: 0 / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.4942, allocations: 0 / 1.02 GB, free: 112 kB / 0.7637 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.0006021/0.4948, allocations: 454.5 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4948, allocations: 16.02 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.383e-05/0.4949, allocations: 34.75 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/0.4949, allocations: 12.78 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.495, allocations: 183.8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.4951, allocations: 8.375 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.4951, allocations: 8.359 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.4954, allocations: 93.58 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.4954, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.4954, allocations: 8 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4954, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.4957, allocations: 75.86 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.4962, allocations: 332.6 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002837/0.4965, allocations: 86.55 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.4966, allocations: 56.94 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.4967, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.4969, allocations: 99.34 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.4969, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005759/0.4975, allocations: 215.1 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.4976, allocations: 85.11 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.178e-05/0.4977, allocations: 130.1 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.4977, allocations: 29.7 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.88e-05/0.4978, allocations: 100 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.4978, allocations: 15.75 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.4978, allocations: 29.7 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.4979, allocations: 330.6 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.4981, allocations: 51.97 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.4983, allocations: 47.95 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.4986, allocations: 169.8 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4986, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004183/0.499, allocations: 208.9 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.4991, allocations: 65.11 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4991, allocations: 0 / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.4991, allocations: 3.938 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4992, allocations: 15.98 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.4992, allocations: 0 / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.4994, allocations: 23.83 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.4994, allocations: 7.984 kB / 1.023 GB, free: 12.87 MB / 0.7794 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 9.262e-05/0.4995, allocations: 147.5 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.4995, allocations: 7.906 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.555e-05/0.4995, allocations: 12.7 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4995, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.4996, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4996, allocations: 7.922 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005095/0.5001, allocations: 432.1 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5001, allocations: 4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.025e-05/0.5002, allocations: 20.27 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.5002, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.5002, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.5002, allocations: 7.875 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5002, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.5006, allocations: 261.5 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.724e-05/0.5007, allocations: 92.95 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.5007, allocations: 3.938 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.5009, allocations: 23.91 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.194e-05/0.501, allocations: 19.97 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.501, allocations: 8 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.115e-05/0.501, allocations: 96.81 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.501, allocations: 0 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002344/0.5013, allocations: 20 kB / 1.024 GB, free: 11.6 MB / 0.7794 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.0006313/0.5019, allocations: 0.8039 MB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004156/0.5023, allocations: 234.6 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5024, allocations: 0 / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.5026, allocations: 115.3 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.5028, allocations: 13.47 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.5048, allocations: 1.697 MB / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.505, allocations: 0.6935 MB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.417e-05/0.505, allocations: 11.98 kB / 1.027 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.878e-05/0.5051, allocations: 27.38 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5051, allocations: 0 / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.5226, allocations: 2.501 MB / 1.03 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.851/7.374, allocations: 14.3 kB / 1.03 GB, free: 5.453 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches