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.004542/0.004542, allocations: 100 kB / 15.73 MB, free: 6.008 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.001291/0.001291, allocations: 193 kB / 16.67 MB, free: 5.926 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.178/2.178, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.89 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6583/0.6596, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002459/0.6621, allocations: 1.677 MB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005867/0.6627, allocations: 446.3 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.6628, allocations: 0.8438 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.2e-05/0.6628, allocations: 9.656 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.933e-05/0.6629, allocations: 10.89 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.6631, allocations: 32.17 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.907e-05/0.6632, allocations: 84.48 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.6633, allocations: 24.05 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.158e-05/0.6634, allocations: 40.95 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.488e-05/0.6635, allocations: 42.91 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.6635, allocations: 7.375 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.429e-05/0.6635, allocations: 6.125 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.6635, allocations: 21.31 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.6636, allocations: 35.73 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.6637, allocations: 86.67 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.6637, allocations: 0 / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6637, allocations: 0.6094 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.6637, allocations: 1.375 kB / 1.09 GB, free: 3.59 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.0004353/0.6642, allocations: 387.8 kB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.6642, allocations: 10.3 kB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.605e-05/0.6642, allocations: 40.67 kB / 1.09 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.079e-05/0.6643, allocations: 10.97 kB / 1.09 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.437e-05/0.6644, allocations: 182.3 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.6644, allocations: 6.469 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.6644, allocations: 4.25 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.6646, allocations: 88.56 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.6646, allocations: 0 / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.6646, allocations: 5.766 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.6646, allocations: 5.188 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.6648, allocations: 51.44 kB / 1.091 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003833/0.6652, allocations: 321.5 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.6653, allocations: 59.81 kB / 1.091 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.776e-05/0.6654, allocations: 26.77 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.6654, allocations: 0 / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.6655, allocations: 36.62 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.6655, allocations: 1.312 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003285/0.6658, allocations: 97.11 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.6658, allocations: 85.05 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.821e-05/0.6659, allocations: 133 kB / 1.091 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.6659, allocations: 26.89 kB / 1.091 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.666, allocations: 98.78 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.666, allocations: 15.3 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.666, allocations: 20.16 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.774e-05/0.6661, allocations: 322.8 kB / 1.092 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.201e-05/0.6662, allocations: 29.16 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.853e-05/0.6663, allocations: 37.62 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.6664, allocations: 52 kB / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.6664, allocations: 0 / 1.092 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001925/0.6666, allocations: 92.92 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.6666, allocations: 5.656 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.6666, allocations: 4.594 kB / 1.092 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.6666, allocations: 4.609 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.6668, allocations: 9.859 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.6668, allocations: 1.203 kB / 1.092 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.407e-05/0.6669, allocations: 17.89 kB / 1.092 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.6669, allocations: 2.25 kB / 1.092 GB, free: 1.59 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.6e-05/0.6669, allocations: 114.6 kB / 1.092 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.667, allocations: 8.047 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.667, allocations: 19.56 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.667, allocations: 0.625 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.667, allocations: 0.6562 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.667, allocations: 4.734 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.6672, allocations: 183.9 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.6672, allocations: 0 / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.456e-05/0.6672, allocations: 10.08 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.6673, allocations: 0 / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.6673, allocations: 1.875 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.6673, allocations: 0.875 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.6673, allocations: 8.453 kB / 1.092 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002027/0.6675, allocations: 178.8 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.956e-05/0.6675, allocations: 83.59 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.6675, allocations: 6.203 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.6677, allocations: 9.828 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.6677, allocations: 8.453 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.6677, allocations: 10.16 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.547e-05/0.6678, allocations: 99.89 kB / 1.093 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6678, allocations: 0.6875 kB / 1.093 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002549/0.668, allocations: 10.28 kB / 1.093 GB, free: 0.8984 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.0003915/0.6684, allocations: 0.7179 MB / 1.094 GB, free: 16.22 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002012/0.6687, allocations: 56.09 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6687, allocations: 0.75 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.65e-05/0.6688, allocations: 28.59 kB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.669, allocations: 11.39 kB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.6704, allocations: 1.44 MB / 1.095 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.6706, allocations: 0.6935 MB / 1.096 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.308e-05/0.6707, allocations: 8.125 kB / 1.096 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.6707, allocations: 21.08 kB / 1.096 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/0.6707, allocations: 0 / 1.096 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.6869, allocations: 2.082 MB / 1.098 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.07/7.757, allocations: 6.703 kB / 1.098 GB, free: 13.79 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