Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_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.004606/0.004606, allocations: 104.2 kB / 15.73 MB, free: 6.043 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.001121/0.001121, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.159/2.159, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6511/0.6524, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002308/0.6547, allocations: 1.681 MB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005737/0.6553, allocations: 440.8 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.393e-05/0.6554, allocations: 1.031 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.955e-05/0.6554, allocations: 11.08 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.075e-05/0.6555, allocations: 14.17 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.6557, allocations: 36.52 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.6558, allocations: 85.3 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.6559, allocations: 22.45 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.947e-05/0.656, allocations: 33.36 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.6561, allocations: 41.53 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.6561, allocations: 7.438 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.475e-05/0.6561, allocations: 10.88 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.6561, allocations: 13.95 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.6562, allocations: 39.64 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.6563, allocations: 84.55 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.6563, allocations: 0.75 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.193e-06/0.6563, allocations: 0 / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.6563, allocations: 0.875 kB / 1.09 GB, free: 3.605 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.0004235/0.6567, allocations: 388.4 kB / 1.09 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.6568, allocations: 14.3 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.676e-05/0.6568, allocations: 34.02 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.6568, allocations: 9.219 kB / 1.09 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.083e-05/0.6569, allocations: 182.9 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.6569, allocations: 10.44 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.657, allocations: 3.938 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.6572, allocations: 92.47 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.6572, allocations: 1.578 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.6572, allocations: 4 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.6572, allocations: 2.156 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.6574, allocations: 54.47 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.6577, allocations: 326.8 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.6579, allocations: 55.77 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.922e-05/0.658, allocations: 29.61 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.658, allocations: 1.125 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.658, allocations: 32.2 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.658, allocations: 0 / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003198/0.6584, allocations: 109.1 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.6584, allocations: 78.88 kB / 1.091 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.837e-05/0.6585, allocations: 132.3 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.6585, allocations: 30.61 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.6585, allocations: 98.02 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.6585, allocations: 11.45 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.6586, allocations: 19.69 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.655e-05/0.6586, allocations: 323.6 kB / 1.092 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.119e-05/0.6587, allocations: 25.06 kB / 1.092 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.891e-05/0.6588, allocations: 37.52 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.6589, allocations: 48.14 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.659, allocations: 0 / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001835/0.6591, allocations: 84.58 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.6592, allocations: 9.312 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6592, allocations: 5.625 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.6592, allocations: 0 / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.926e-05/0.6593, allocations: 9.844 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.6593, allocations: 1.484 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.412e-05/0.6594, allocations: 22.33 kB / 1.092 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.6594, allocations: 1.703 kB / 1.092 GB, free: 1.609 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: 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 5.559e-05/0.6595, allocations: 114.8 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.6595, allocations: 11.53 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.6595, allocations: 11.53 kB / 1.092 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.6595, allocations: 1.062 kB / 1.092 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.6595, allocations: 4.844 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.6595, allocations: 4.734 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.6597, allocations: 187.2 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.6597, allocations: 0.5156 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.346e-05/0.6598, allocations: 10.16 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.6598, allocations: 0 / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.6598, allocations: 1.719 kB / 1.092 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.6598, allocations: 5.375 kB / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.6598, allocations: 0 / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002005/0.66, allocations: 186.5 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.66, allocations: 83.75 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.6601, allocations: 6.281 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.6602, allocations: 9.156 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.6602, allocations: 16.03 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.6602, allocations: 5.953 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.369e-05/0.6603, allocations: 97.05 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.41e-07/0.6603, allocations: 0 / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002312/0.6605, allocations: 19.53 kB / 1.093 GB, free: 0.9023 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: 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.0003867/0.6609, allocations: 0.7139 MB / 1.094 GB, free: 16.23 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002025/0.6611, allocations: 52.2 kB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6612, allocations: 0 / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.574e-05/0.6612, allocations: 28.42 kB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.6615, allocations: 12.28 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.6629, allocations: 1.438 MB / 1.095 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.6632, allocations: 0.6898 MB / 1.096 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.102e-05/0.6632, allocations: 7.984 kB / 1.096 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.6633, allocations: 21.02 kB / 1.096 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.6633, allocations: 0 / 1.096 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.6798, allocations: 2.078 MB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.019/7.699, allocations: 7.719 kB / 1.098 GB, free: 13.81 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches