Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.ChillerSwitch,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.001132/0.001132, 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.001136/0.001136, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.479/2.479, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001304, allocations: 59.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5058/0.5071, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002793/0.5099, allocations: 1.671 MB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006893/0.5106, allocations: 447 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.086e-05/0.5107, allocations: 0 / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.5108, allocations: 11.86 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.202e-05/0.5109, allocations: 15.86 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.511, allocations: 27.91 kB / 1.02 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.5111, allocations: 83.72 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.5113, allocations: 27.89 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.9e-05/0.5114, allocations: 39.84 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.116e-05/0.5114, allocations: 35.84 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.5115, allocations: 8 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.5115, allocations: 11.94 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/0.5115, allocations: 11.92 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.5116, allocations: 39.78 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.5117, allocations: 82.09 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.5117, allocations: 4 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5117, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.317e-05/0.5117, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.7794 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.000506/0.5122, allocations: 388.6 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.5123, allocations: 12.03 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.553e-05/0.5123, allocations: 30.75 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.5124, allocations: 16.75 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.5125, allocations: 185.9 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.5125, allocations: 12.31 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.5125, allocations: 4.375 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.5127, allocations: 95.44 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.5127, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.5128, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.5128, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.5129, allocations: 47.97 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.5134, allocations: 336.6 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.5135, allocations: 46.56 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.991e-05/0.5136, allocations: 32.94 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.5136, allocations: 3.984 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.5137, allocations: 34.59 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.5137, allocations: 3.938 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003213/0.514, allocations: 97.66 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.514, allocations: 77.11 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/0.5141, allocations: 138 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.5142, allocations: 25.7 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.5142, allocations: 96.12 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.5142, allocations: 11.81 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.5143, allocations: 21.7 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.543e-05/0.5144, allocations: 318.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.978e-05/0.5145, allocations: 19.98 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.358e-05/0.5146, allocations: 49.62 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.5147, allocations: 52.95 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5147, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001958/0.5149, allocations: 89.58 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.5149, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.515, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.515, allocations: 4.031 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.5151, allocations: 11.98 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.5151, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.547e-05/0.5152, allocations: 19.86 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.5152, allocations: 3.938 kB / 1.022 GB, free: 13.49 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: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 7.366e-05/0.5153, allocations: 113.8 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.5153, allocations: 7.906 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.682e-05/0.5153, allocations: 16.17 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.5153, allocations: 8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5154, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.5154, allocations: 3.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.5155, allocations: 189.6 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.5155, allocations: 3.984 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.067e-05/0.5156, allocations: 4 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.5156, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.5156, allocations: 7.984 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5156, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5157, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.5159, allocations: 191.5 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.5159, allocations: 77.11 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.516, allocations: 7.938 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.5161, allocations: 7.984 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.5161, allocations: 11.98 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.5161, allocations: 8 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.416e-05/0.5162, allocations: 108.7 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5162, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002278/0.5164, allocations: 11.91 kB / 1.023 GB, free: 12.64 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004377/0.5169, allocations: 0.7086 MB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001971/0.5171, allocations: 63.91 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.5171, allocations: 0 / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.986e-05/0.5172, allocations: 23.98 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.5175, allocations: 17.09 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.5188, allocations: 1.426 MB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.519, allocations: 0.6885 MB / 1.026 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.032e-05/0.5191, allocations: 7.984 kB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.936e-05/0.5191, allocations: 23.44 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5191, allocations: 0 / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.5356, allocations: 2.034 MB / 1.028 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/7.34, allocations: 23.97 kB / 1.028 GB, free: 7.625 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches