Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_11_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.007272/0.007272, allocations: 100.5 kB / 15.73 MB, free: 6.012 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.002021/0.002021, allocations: 191.9 kB / 16.67 MB, free: 5.934 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.587/2.587, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 71.88 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.582/0.5837, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002331/0.586, allocations: 1.511 MB / 1.222 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0006968/0.5867, allocations: 458.9 kB / 1.222 GB, free: 72 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.5868, allocations: 0 / 1.222 GB, free: 72 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.679e-05/0.5869, allocations: 3.938 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.906e-05/0.5869, allocations: 23.78 kB / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001642/0.5871, allocations: 27.97 kB / 1.222 GB, free: 16 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.5873, allocations: 91.7 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.473e-05/0.5874, allocations: 12.19 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.5875, allocations: 39.89 kB / 1.222 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.802e-05/0.5876, allocations: 35.84 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.5876, allocations: 8 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.5876, allocations: 11.94 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.305e-05/0.5877, allocations: 15.92 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.33e-05/0.5877, allocations: 35.84 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.5878, allocations: 70.39 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.5879, allocations: 0 / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5879, allocations: 0 / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.5879, allocations: 0 / 1.222 GB, free: 15.7 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.0006253/0.5885, allocations: 451.5 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.5885, allocations: 8.031 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.5886, allocations: 46.73 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.113e-05/0.5886, allocations: 8.891 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.5888, allocations: 194.7 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.5888, allocations: 384 / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.5888, allocations: 12.31 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.5891, allocations: 97.56 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.5891, allocations: 4 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.5891, allocations: 0 / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.5891, allocations: 7.984 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.5894, allocations: 75.92 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.5899, allocations: 336.6 kB / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.5902, allocations: 82.52 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.5904, allocations: 52.94 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.5904, allocations: 0 / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.5906, allocations: 107.4 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.5906, allocations: 0 / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0005659/0.5912, allocations: 211.2 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.5913, allocations: 81.11 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.5914, allocations: 130.1 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.5914, allocations: 33.64 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.5915, allocations: 96.08 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.5915, allocations: 23.84 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.5916, allocations: 29.7 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.5917, allocations: 330.7 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.5919, allocations: 43.97 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.592, allocations: 47.95 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.5923, allocations: 170 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.5923, allocations: 3.984 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004043/0.5928, allocations: 208.9 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.5928, allocations: 63.39 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.5928, allocations: 0 / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.5928, allocations: 4 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.5929, allocations: 11.98 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.593, allocations: 4 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.5931, allocations: 23.88 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.5931, allocations: 7.984 kB / 1.225 GB, free: 12.45 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.000107/0.5932, allocations: 148 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.5932, allocations: 11.95 kB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.849e-05/0.5933, allocations: 8.719 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.5933, allocations: 0 / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.5933, allocations: 3.984 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.5933, allocations: 7.938 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005359/0.5938, allocations: 428.2 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5939, allocations: 0 / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.836e-05/0.5939, allocations: 11.98 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.5939, allocations: 0 / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.594, allocations: 7.938 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.594, allocations: 3.938 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.594, allocations: 4 kB / 1.226 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/0.5944, allocations: 265.1 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.642e-05/0.5945, allocations: 85.06 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.5945, allocations: 4 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.5946, allocations: 19.91 kB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.068e-05/0.5947, allocations: 31.97 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.5947, allocations: 3.984 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.932e-05/0.5948, allocations: 106.4 kB / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5948, allocations: 4.094 kB / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002158/0.595, allocations: 23.88 kB / 1.226 GB, free: 11.17 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.0006938/0.5957, allocations: 0.7999 MB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004114/0.5962, allocations: 223.2 kB / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.5962, allocations: 0 / 1.227 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.5964, allocations: 115.4 kB / 1.228 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.5966, allocations: 17.59 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.5987, allocations: 1.723 MB / 1.229 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.599, allocations: 0.6963 MB / 1.23 GB, free: 7.422 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.77e-05/0.599, allocations: 11.98 kB / 1.23 GB, free: 7.41 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.279e-05/0.5991, allocations: 23.42 kB / 1.23 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of SimCode: time 2.1e-07/0.5991, allocations: 0 / 1.23 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.729/2.328, allocations: 2.524 MB / 1.232 GB, free: 5.016 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.51/18.84, allocations: 16.47 kB / 1.232 GB, free: 5.004 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches