Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_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.006594/0.006595, allocations: 99.66 kB / 15.73 MB, free: 5.949 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.001569/0.001569, allocations: 193.1 kB / 16.67 MB, free: 5.875 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.254/2.254, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 62.09 kB / 0.9504 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.226, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002564/0.2286, allocations: 1.523 MB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007445/0.2293, allocations: 452.3 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.903e-05/0.2294, allocations: 0 / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.2295, allocations: 4.047 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.344e-05/0.2296, allocations: 19.84 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.2298, allocations: 31.91 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.2299, allocations: 87.66 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.963e-05/0.2301, allocations: 20.16 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.2302, allocations: 47.84 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.993e-05/0.2303, allocations: 35.83 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.2303, allocations: 8 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.451e-05/0.2303, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.326e-05/0.2304, allocations: 15.92 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.239e-05/0.2304, allocations: 39.78 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.2306, allocations: 70.61 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2306, allocations: 3.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2306, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2306, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 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.0006587/0.2313, allocations: 447.4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.2313, allocations: 8.031 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.2314, allocations: 38.75 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.2314, allocations: 4.938 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.2316, allocations: 197.7 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.2316, allocations: 4.375 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.2316, allocations: 8.375 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.2319, allocations: 97.52 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2319, allocations: 3.984 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.2319, allocations: 0 / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.232, allocations: 4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.2322, allocations: 71.88 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005333/0.2328, allocations: 340.6 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.2331, allocations: 82.52 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.2333, allocations: 44.95 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.2333, allocations: 4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.2336, allocations: 111.3 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/0.2336, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006068/0.2342, allocations: 211.2 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.2343, allocations: 89.09 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2344, allocations: 134 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.2344, allocations: 29.7 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.2345, allocations: 92.14 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.2345, allocations: 19.7 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.2345, allocations: 25.72 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.455e-05/0.2346, allocations: 326.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.2348, allocations: 47.95 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.235, allocations: 55.91 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.2353, allocations: 161.9 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2353, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004308/0.2358, allocations: 212.9 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.2358, allocations: 59.41 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2358, allocations: 4 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2359, allocations: 4 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.236, allocations: 11.98 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.236, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.2362, allocations: 24.12 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.2362, allocations: 4 kB / 1.093 GB, free: 12.39 MB / 0.8575 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.2363, allocations: 147.5 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/0.2363, allocations: 19.84 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.2364, allocations: 12.7 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2364, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2364, allocations: 3.984 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2364, allocations: 7.938 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005478/0.237, allocations: 428.1 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.237, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.217e-05/0.2371, allocations: 15.98 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.2371, allocations: 7.938 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2371, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2371, allocations: 3.938 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2371, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004302/0.2375, allocations: 269 kB / 1.093 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.906e-05/0.2376, allocations: 93 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.2376, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.2378, allocations: 19.92 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.126e-05/0.2379, allocations: 27.95 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.2379, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.999e-05/0.238, allocations: 105.7 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.238, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002407/0.2382, allocations: 16 kB / 1.094 GB, free: 11.12 MB / 0.8575 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.0006839/0.2389, allocations: 0.8082 MB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004308/0.2393, allocations: 214.7 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2394, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.2396, allocations: 115.3 kB / 1.095 GB, free: 9.922 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.2399, allocations: 19.92 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002109/0.242, allocations: 1.704 MB / 1.097 GB, free: 8.102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.2422, allocations: 0.6926 MB / 1.097 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.402e-05/0.2423, allocations: 15.92 kB / 1.097 GB, free: 7.367 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.523e-05/0.2423, allocations: 19.44 kB / 1.097 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.2423, allocations: 7.875 kB / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.2601, allocations: 2.543 MB / 1.1 GB, free: 4.953 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.42, allocations: 11.62 kB / 1.1 GB, free: 4.945 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches