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.001268/0.001268, 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.001221/0.001221, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.178/2.178, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4947/0.496, allocations: 140.4 MB / 0.9497 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002259/0.4983, allocations: 1.66 MB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005019/0.4988, allocations: 452.5 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.4988, allocations: 1.25 kB / 0.9518 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.47e-05/0.4989, allocations: 3.938 kB / 0.9518 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.399e-05/0.4989, allocations: 18.7 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.4991, allocations: 26.31 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.333e-05/0.4992, allocations: 84.53 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.806e-05/0.4993, allocations: 35.8 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.019e-05/0.4994, allocations: 36.73 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.228e-05/0.4994, allocations: 37.89 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.4995, allocations: 7.969 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.616e-05/0.4995, allocations: 6.188 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.038e-05/0.4995, allocations: 14.22 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.998e-05/0.4996, allocations: 44.31 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.748e-05/0.4996, allocations: 83.52 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.4997, allocations: 1.094 kB / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4997, allocations: 0 / 0.9522 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.4997, allocations: 0 / 0.9522 GB, free: 7.188 MB / 0.7169 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.000384/0.5001, allocations: 391.6 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.5001, allocations: 9.625 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.277e-05/0.5001, allocations: 32 kB / 0.9526 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.5002, allocations: 13.19 kB / 0.9526 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.211e-05/0.5002, allocations: 189.2 kB / 0.9528 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.5003, allocations: 11.09 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.5003, allocations: 2.625 kB / 0.9528 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.5004, allocations: 92 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.5005, allocations: 0 / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.5005, allocations: 1.219 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.5005, allocations: 1.375 kB / 0.9529 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.5006, allocations: 55.22 kB / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003429/0.501, allocations: 327.3 kB / 0.9532 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.5011, allocations: 53.59 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.133e-05/0.5012, allocations: 33.67 kB / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.5012, allocations: 1.125 kB / 0.9533 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.146e-05/0.5012, allocations: 35.7 kB / 0.9534 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.5012, allocations: 0 / 0.9534 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002935/0.5015, allocations: 103.5 kB / 0.9535 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.247e-05/0.5016, allocations: 77.11 kB / 0.9535 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.724e-05/0.5016, allocations: 129.2 kB / 0.9537 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.5017, allocations: 31.11 kB / 0.9537 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.994e-05/0.5017, allocations: 99 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.5017, allocations: 9.312 kB / 0.9538 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.5017, allocations: 23.36 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.415e-05/0.5018, allocations: 320.8 kB / 0.9541 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.551e-05/0.5019, allocations: 31.72 kB / 0.9541 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.255e-05/0.5019, allocations: 37.48 kB / 0.9542 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.5021, allocations: 47.77 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.5021, allocations: 1.25 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001743/0.5023, allocations: 91.08 kB / 0.9543 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.5023, allocations: 7.969 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-06/0.5023, allocations: 1.406 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.5023, allocations: 0 / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.5024, allocations: 11.17 kB / 0.9543 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.5024, allocations: 0 / 0.9543 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.667e-05/0.5025, allocations: 23.17 kB / 0.9544 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.5025, allocations: 1.344 kB / 0.9544 GB, free: 5.043 MB / 0.7169 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.261e-05/0.5026, allocations: 114.4 kB / 0.9545 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.959e-05/0.5026, allocations: 11.28 kB / 0.9545 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.505e-05/0.5026, allocations: 14.95 kB / 0.9545 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5026, allocations: 192 / 0.9545 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5026, allocations: 4 kB / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.5026, allocations: 5.344 kB / 0.9545 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.5028, allocations: 187.7 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.5028, allocations: 0 / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.792e-05/0.5029, allocations: 6.75 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.5029, allocations: 1.312 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.5029, allocations: 7.984 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.5029, allocations: 9.344 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.5029, allocations: 0 / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.5031, allocations: 179.1 kB / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.5031, allocations: 78.67 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.5031, allocations: 1.438 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.5032, allocations: 10.89 kB / 0.955 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.5033, allocations: 15.52 kB / 0.955 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.5033, allocations: 5.406 kB / 0.955 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.698e-05/0.5033, allocations: 95.98 kB / 0.9551 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5033, allocations: 0 / 0.9551 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000223/0.5036, allocations: 18.91 kB / 0.9551 GB, free: 4.301 MB / 0.7169 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.0003147/0.5039, allocations: 0.7112 MB / 0.9558 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000185/0.5041, allocations: 51.25 kB / 0.9558 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5041, allocations: 5.469 kB / 0.9558 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.826e-05/0.5042, allocations: 31.61 kB / 0.9559 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.5044, allocations: 7.125 kB / 0.9559 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.5055, allocations: 1.431 MB / 0.9573 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.626e-05/0.5056, allocations: 0.6941 MB / 0.958 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.673e-05/0.5057, allocations: 10.08 kB / 0.958 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.5057, allocations: 25.22 kB / 0.958 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5057, allocations: 0 / 0.958 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.5197, allocations: 2.039 MB / 0.96 GB, free: 476 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.659/7.178, allocations: 8.516 kB / 0.96 GB, free: 468 kB / 0.7169 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