Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 210.6 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.279/3.279, allocations: 0.4892 GB / 0.7943 GB, free: 35.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 70.81 kB / 1.153 GB, free: 25.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3383, allocations: 176.1 MB / 1.325 GB, free: 2.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003254/0.3415, allocations: 1.684 MB / 1.327 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3426, allocations: 498.8 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.932e-05/0.3427, allocations: 4 kB / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.624e-05/0.3427, allocations: 7.875 kB / 1.327 GB, free: 196 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.531e-05/0.3428, allocations: 11.86 kB / 1.327 GB, free: 184 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.3431, allocations: 51.88 kB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.3432, allocations: 91.66 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.3433, allocations: 24.34 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.3435, allocations: 47.97 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.637e-05/0.3436, allocations: 27.84 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.3436, allocations: 8 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.3437, allocations: 12 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.637e-05/0.3437, allocations: 19.92 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.3438, allocations: 31.84 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.3439, allocations: 99.5 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3439, allocations: 4 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3439, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.344, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 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.0005567/0.3445, allocations: 321.9 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3446, allocations: 8.031 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.3446, allocations: 34.75 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.3448, allocations: 28.86 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.3451, allocations: 142.4 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.3451, allocations: 384 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.3451, allocations: 4.375 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.3454, allocations: 121.1 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3454, allocations: 0 / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3454, allocations: 4 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3454, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.3456, allocations: 51.95 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.346, allocations: 287.7 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.3462, allocations: 46.56 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.262e-05/0.3463, allocations: 28.94 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.3463, allocations: 4.031 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.3463, allocations: 30.56 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.333e-06/0.3463, allocations: 4 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.000351/0.3467, allocations: 105.6 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.3467, allocations: 77.11 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.3469, allocations: 139.6 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.3469, allocations: 25.7 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.143e-05/0.347, allocations: 108 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.347, allocations: 15.91 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.347, allocations: 17.7 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.3472, allocations: 318.8 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.548e-05/0.3472, allocations: 27.98 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.3473, allocations: 67.34 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.3475, allocations: 44.83 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3475, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002045/0.3477, allocations: 89.56 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3477, allocations: 4 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.3477, allocations: 0 / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.3477, allocations: 0 / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.3478, allocations: 12.17 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3478, allocations: 7.969 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.67e-05/0.3479, allocations: 19.92 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.3479, allocations: 0 / 1.33 GB, free: 13.38 MB / 1.029 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.777e-05/0.348, allocations: 117.8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.3481, allocations: 7.953 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.321e-05/0.3481, allocations: 12.33 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3481, allocations: 0 / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.3481, allocations: 0 / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3481, allocations: 7.938 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.3483, allocations: 156.7 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.3483, allocations: 4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.3484, allocations: 7.984 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3484, allocations: 0 / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3484, allocations: 7.938 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3484, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3484, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.3487, allocations: 187.5 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.942e-05/0.3487, allocations: 7.953 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.3487, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.3488, allocations: 15.98 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.3489, allocations: 15.91 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.3489, allocations: 4 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.949e-05/0.349, allocations: 101.3 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.349, allocations: 0 / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002356/0.3492, allocations: 12 kB / 1.33 GB, free: 12.65 MB / 1.029 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.0006028/0.3498, allocations: 0.7163 MB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002414/0.3501, allocations: 59.91 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3501, allocations: 0 / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.92e-05/0.3501, allocations: 23.98 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.3504, allocations: 9.828 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.3522, allocations: 1.457 MB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.637e-05/0.3523, allocations: 79.81 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.674e-05/0.3523, allocations: 4 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.341e-05/0.3524, allocations: 27.42 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of SimCode: time 7.81e-07/0.3524, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03033/0.3827, allocations: 2.695 MB / 1.335 GB, free: 7.609 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.48, allocations: 6.641 kB / 1.335 GB, free: 7.605 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable chiSwi.TSet in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.TSet from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! Error: Could not read variable chiSwi.chiCHWST in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.chiCHWST from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! Error: Could not read variable chiSwi.y in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv. Warning: Get data of variable chiSwi.y from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.36455979803577]