Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_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.008108/0.008108, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002154/0.002154, allocations: 202.6 kB / 16.68 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.934/2.934, allocations: 482.4 MB / 0.7548 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002829/0.002829, allocations: 75.83 kB / 1.083 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3268, allocations: 162.2 MB / 1.241 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00285/0.3297, allocations: 1.667 MB / 1.243 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0007528/0.3305, allocations: 450.8 kB / 1.244 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.3305, allocations: 4 kB / 1.244 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.175e-05/0.3306, allocations: 7.922 kB / 1.244 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.3307, allocations: 19.73 kB / 1.244 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.3308, allocations: 23.97 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3309, allocations: 83.72 kB / 1.244 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.3311, allocations: 35.95 kB / 1.244 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.978e-05/0.3312, allocations: 35.86 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.342e-05/0.3313, allocations: 39.83 kB / 1.244 GB, free: 7.902 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.3313, allocations: 4 kB / 1.244 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.827e-05/0.3313, allocations: 8 kB / 1.244 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.3314, allocations: 19.92 kB / 1.244 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.897e-05/0.3314, allocations: 35.8 kB / 1.244 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.3316, allocations: 87.62 kB / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3316, allocations: 4 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3316, allocations: 0 / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.3316, allocations: 0 / 1.244 GB, free: 7.746 MB / 0.9981 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.0006051/0.3322, allocations: 395 kB / 1.244 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3323, allocations: 8.031 kB / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.3323, allocations: 42.69 kB / 1.244 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.3323, allocations: 8.891 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.3325, allocations: 180.3 kB / 1.245 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3325, allocations: 4.375 kB / 1.245 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.3326, allocations: 4.375 kB / 1.245 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.3328, allocations: 91.44 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3328, allocations: 4 kB / 1.245 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.3328, allocations: 4 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.3328, allocations: 0 / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.333, allocations: 51.97 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.3335, allocations: 320.7 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.3337, allocations: 54.55 kB / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.409e-05/0.3338, allocations: 24.94 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.3338, allocations: 8 kB / 1.245 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.3339, allocations: 30.66 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3339, allocations: 3.938 kB / 1.245 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0003534/0.3342, allocations: 101.6 kB / 1.245 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.3343, allocations: 81.09 kB / 1.245 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.3344, allocations: 141.2 kB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.3344, allocations: 29.7 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.086e-05/0.3345, allocations: 100.1 kB / 1.246 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.3345, allocations: 19.89 kB / 1.246 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.3346, allocations: 17.7 kB / 1.246 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3347, allocations: 326.8 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.61e-05/0.3348, allocations: 23.98 kB / 1.246 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.482e-05/0.3349, allocations: 41.7 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.3351, allocations: 52.89 kB / 1.246 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3351, allocations: 0 / 1.246 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001997/0.3353, allocations: 81.67 kB / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3353, allocations: 4 kB / 1.246 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3353, allocations: 0 / 1.246 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3353, allocations: 4 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.931e-05/0.3355, allocations: 12.02 kB / 1.246 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3355, allocations: 4 kB / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.57e-05/0.3356, allocations: 19.81 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3356, allocations: 4 kB / 1.246 GB, free: 5.242 MB / 0.9981 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 9.7e-05/0.3357, allocations: 121.7 kB / 1.246 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.3357, allocations: 7.953 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.3358, allocations: 12.23 kB / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3358, allocations: 0 / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3358, allocations: 4 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3358, allocations: 3.938 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.336, allocations: 189.6 kB / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.336, allocations: 0 / 1.246 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.3361, allocations: 8 kB / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3361, allocations: 0 / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3361, allocations: 3.984 kB / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3361, allocations: 0 / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3361, allocations: 0 / 1.246 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.3364, allocations: 183.4 kB / 1.247 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.3364, allocations: 81.11 kB / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.3365, allocations: 4 kB / 1.247 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3366, allocations: 15.92 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.54e-05/0.3366, allocations: 7.984 kB / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3366, allocations: 4 kB / 1.247 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.817e-05/0.3367, allocations: 103.3 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3367, allocations: 4 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002298/0.337, allocations: 15.95 kB / 1.247 GB, free: 4.383 MB / 0.9981 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.0005754/0.3375, allocations: 0.7215 MB / 1.248 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002219/0.3378, allocations: 59.91 kB / 1.248 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3378, allocations: 4 kB / 1.248 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.875e-05/0.3379, allocations: 24.27 kB / 1.248 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.3382, allocations: 7.938 kB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.3398, allocations: 1.429 MB / 1.249 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3401, allocations: 0.6963 MB / 1.25 GB, free: 1.312 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.184e-05/0.3402, allocations: 4.234 kB / 1.25 GB, free: 1.309 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.554e-05/0.3403, allocations: 30.67 kB / 1.25 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.3403, allocations: 0 / 1.25 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5191/0.8594, allocations: 2.068 MB / 1.252 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/8.433, allocations: 6.062 kB / 1.252 GB, free: 14.83 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches