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.001385/0.001385, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001474/0.001474, allocations: 188.2 kB / 16.25 MB, free: 6.633 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.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.468/2.468, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 0.8689 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5817/0.583, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002501/0.5855, allocations: 1.577 MB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006423/0.5862, allocations: 462.9 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.657e-05/0.5862, allocations: 4 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.484e-05/0.5863, allocations: 3.938 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.886e-05/0.5864, allocations: 7.875 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002101/0.5866, allocations: 23.97 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.5868, allocations: 91.7 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.5869, allocations: 16.17 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.587, allocations: 39.91 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.924e-05/0.5871, allocations: 35.84 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.5871, allocations: 11.98 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.719e-05/0.5872, allocations: 8 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.576e-05/0.5872, allocations: 15.92 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.962e-05/0.5873, allocations: 35.8 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.5874, allocations: 74.02 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.5874, allocations: 0 / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5874, allocations: 0 / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.5874, allocations: 0 / 1.019 GB, free: 340 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.0006633/0.5881, allocations: 448.2 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.5881, allocations: 19.97 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.709e-05/0.5882, allocations: 30.75 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.5882, allocations: 12.78 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.5884, allocations: 184.3 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.5884, allocations: 8.375 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.5884, allocations: 4.375 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.5887, allocations: 97.5 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.5887, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.5888, allocations: 4 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.5888, allocations: 4 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.589, allocations: 67.94 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.5896, allocations: 336.7 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.5899, allocations: 90.45 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.59, allocations: 52.94 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.59, allocations: 3.984 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.5903, allocations: 107.3 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.5904, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005976/0.591, allocations: 211.1 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.591, allocations: 81.11 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.5911, allocations: 130.1 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.5912, allocations: 33.64 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.5912, allocations: 104 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.5912, allocations: 15.75 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.251e-05/0.5913, allocations: 29.7 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.5914, allocations: 318.8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.5916, allocations: 47.95 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.5917, allocations: 51.95 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.592, allocations: 174 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.592, allocations: 4 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003923/0.5924, allocations: 212.9 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.5925, allocations: 59.41 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.5925, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.5925, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.5926, allocations: 19.97 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.5926, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.5928, allocations: 19.83 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.5928, allocations: 8 kB / 1.022 GB, free: 13.09 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.885e-05/0.5929, allocations: 147.5 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.5929, allocations: 7.906 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.593, allocations: 16.72 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.593, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.593, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.593, allocations: 3.938 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.5935, allocations: 424.2 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.5935, allocations: 4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.023e-05/0.5936, allocations: 15.98 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.5936, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.5936, allocations: 11.98 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.5936, allocations: 7.938 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5936, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.594, allocations: 273.4 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.5941, allocations: 84.95 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.5941, allocations: 8 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.5943, allocations: 19.92 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.992e-05/0.5944, allocations: 19.97 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.5944, allocations: 4 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.378e-05/0.5944, allocations: 105.3 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5945, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002343/0.5947, allocations: 20 kB / 1.023 GB, free: 11.82 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.0006428/0.5953, allocations: 0.8078 MB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003999/0.5957, allocations: 230.6 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5958, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.596, allocations: 115.3 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.5962, allocations: 12.69 kB / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.5981, allocations: 1.71 MB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.5984, allocations: 0.6924 MB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.655e-05/0.5984, allocations: 15.98 kB / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.5985, allocations: 27.42 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.5985, allocations: 0 / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.6271, allocations: 2.31 MB / 1.029 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/0.6274, allocations: 248.3 kB / 1.029 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.458, allocations: 0.8438 kB / 1.029 GB, free: 5.637 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