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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001468/0.001468, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001745/0.001746, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.338/1.338, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.512/2.512, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.89 kB / 0.8687 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4867/0.4881, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002399/0.4905, allocations: 1.585 MB / 1.018 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006493/0.4912, allocations: 466.9 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/0.4912, allocations: 0 / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.921e-05/0.4913, allocations: 7.938 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.329e-05/0.4914, allocations: 7.922 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001592/0.4915, allocations: 31.91 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.947e-05/0.4916, allocations: 75.77 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.511e-05/0.4917, allocations: 16.19 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.548e-05/0.4918, allocations: 35.84 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.702e-05/0.4919, allocations: 39.83 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.4919, allocations: 4 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.645e-05/0.492, allocations: 4 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/0.492, allocations: 15.92 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.664e-05/0.4921, allocations: 31.8 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.4922, allocations: 70.02 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.4922, allocations: 0 / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.81e-07/0.4922, allocations: 0 / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.4922, allocations: 0 / 1.019 GB, free: 440 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.0005988/0.4928, allocations: 446.7 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.4928, allocations: 12.03 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.4929, allocations: 38.67 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.4929, allocations: 8.844 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.4931, allocations: 180.3 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.4931, allocations: 12.31 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.4931, allocations: 4.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.4934, allocations: 97.56 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.4934, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.4934, allocations: 8 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.4934, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.4937, allocations: 71.92 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004931/0.4942, allocations: 340.5 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.4945, allocations: 82.52 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.4947, allocations: 52.94 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.4947, allocations: 4 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002612/0.4949, allocations: 103.4 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.495, allocations: 3.938 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005836/0.4955, allocations: 211.2 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.4956, allocations: 85.11 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.724e-05/0.4957, allocations: 132.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.4957, allocations: 29.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.4958, allocations: 96.03 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.4958, allocations: 27.67 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.126e-05/0.4959, allocations: 29.7 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.496, allocations: 322.8 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.4961, allocations: 51.97 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.4963, allocations: 47.95 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.4966, allocations: 166 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4966, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004166/0.497, allocations: 216.9 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.4971, allocations: 63.39 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.4971, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.4971, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.4972, allocations: 15.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.4972, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.4974, allocations: 27.83 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.4974, allocations: 4 kB / 1.022 GB, free: 13.2 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 0.0001027/0.4975, allocations: 155.5 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.829e-05/0.4975, allocations: 7.906 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.4976, allocations: 8.719 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4976, allocations: 4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.4976, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.4976, allocations: 7.922 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005236/0.4981, allocations: 424.2 kB / 1.022 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4981, allocations: 4 kB / 1.022 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.109e-05/0.4982, allocations: 23.92 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4982, allocations: 0 / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.4983, allocations: 0 / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.4983, allocations: 3.938 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4983, allocations: 0 / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.4987, allocations: 265.1 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.4987, allocations: 88.95 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.4987, allocations: 7.938 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.4989, allocations: 23.91 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.615e-05/0.499, allocations: 19.97 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.499, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.153e-05/0.4991, allocations: 103.3 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4991, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002369/0.4993, allocations: 16 kB / 1.023 GB, free: 11.93 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.0006636/0.5, allocations: 0.8135 MB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003924/0.5004, allocations: 227.2 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5004, allocations: 4 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.5006, allocations: 107.4 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.5009, allocations: 18.75 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.5029, allocations: 1.718 MB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.5031, allocations: 0.6926 MB / 1.026 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.948e-05/0.5032, allocations: 11.98 kB / 1.027 GB, free: 8.168 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.5033, allocations: 19.44 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5033, allocations: 0 / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01113/0.5144, allocations: 2.236 MB / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/0.5146, allocations: 239 kB / 1.029 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.256, allocations: 2.672 kB / 1.029 GB, free: 5.809 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 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.mat","/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