Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0007842/0.0007842, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.000881/0.000881, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8766/0.8766, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.639/1.639, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.499e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001864/0.001879, allocations: 1.683 MB / 0.9521 GB, free: 1.801 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0006063/0.002485, allocations: 0.4947 MB / 0.9526 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.355e-05/0.002538, allocations: 4 kB / 0.9526 GB, free: 1.297 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.399e-05/0.002572, allocations: 7.875 kB / 0.9526 GB, free: 1.289 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.809e-05/0.002641, allocations: 15.84 kB / 0.9526 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.002853, allocations: 51.77 kB / 0.9527 GB, free: 1.223 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.002969, allocations: 83.7 kB / 0.9528 GB, free: 1.141 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.774e-05/0.003067, allocations: 20.22 kB / 0.9528 GB, free: 1.117 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.003194, allocations: 55.88 kB / 0.9529 GB, free: 1.062 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 6.275e-05/0.003257, allocations: 31.91 kB / 0.9529 GB, free: 1.031 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.003274, allocations: 12 kB / 0.9529 GB, free: 1.02 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 3.771e-05/0.003312, allocations: 8 kB / 0.9529 GB, free: 1.012 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.00333, allocations: 23.91 kB / 0.9529 GB, free: 0.9883 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.003354, allocations: 15.94 kB / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.003482, allocations: 99.61 kB / 0.953 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003484, allocations: 4 kB / 0.953 GB, free: 0.8711 MB / 0.9011 GB Notification: Performance of FrontEnd: time 6.92e-07/0.003485, allocations: 3.938 kB / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.003488, allocations: 0 / 0.953 GB, free: 0.8672 MB / 0.9011 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.0003927/0.003881, allocations: 321.9 kB / 0.9533 GB, free: 0.5234 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.003917, allocations: 12.03 kB / 0.9534 GB, free: 0.5117 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.943e-05/0.003947, allocations: 34.75 kB / 0.9534 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.004073, allocations: 28.86 kB / 0.9534 GB, free: 452 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.004236, allocations: 137.6 kB / 0.9536 GB, free: 288 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.004246, allocations: 4.375 kB / 0.9536 GB, free: 284 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.004256, allocations: 4.375 kB / 0.9536 GB, free: 280 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.004412, allocations: 117.6 kB / 0.9537 GB, free: 144 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.004418, allocations: 192 / 0.9537 GB, free: 144 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.004429, allocations: 8.125 kB / 0.9537 GB, free: 136 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.004434, allocations: 3.938 kB / 0.9537 GB, free: 132 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.207e-05/0.004526, allocations: 51.95 kB / 0.9537 GB, free: 80 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.004868, allocations: 283.8 kB / 0.954 GB, free: 15.76 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 9.019e-05/0.004958, allocations: 42.56 kB / 0.954 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.005003, allocations: 28.94 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.005019, allocations: 8 kB / 0.9541 GB, free: 15.67 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.005039, allocations: 38.58 kB / 0.9541 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=4): time 1.964e-06/0.005041, allocations: 3.984 kB / 0.9541 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of matching and sorting (n=4): time 0.0002198/0.00526, allocations: 97.61 kB / 0.9542 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.005294, allocations: 81.11 kB / 0.9543 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.191e-05/0.005366, allocations: 129.8 kB / 0.9544 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.005378, allocations: 29.7 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.556e-05/0.005423, allocations: 104 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.005437, allocations: 11.95 kB / 0.9546 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.005468, allocations: 17.7 kB / 0.9546 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.35e-05/0.005541, allocations: 326.8 kB / 0.9549 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.487e-05/0.005586, allocations: 23.98 kB / 0.9549 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-05/0.005643, allocations: 71.34 kB / 0.955 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.743e-05/0.005721, allocations: 44.83 kB / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005722, allocations: 0 / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001132/0.005836, allocations: 89.66 kB / 0.9551 GB, free: 14.53 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.005849, allocations: 10.19 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.005853, allocations: 0 / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.005863, allocations: 3.938 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.08e-05/0.005924, allocations: 11.98 kB / 0.9551 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.005928, allocations: 0 / 0.9551 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.82e-05/0.005967, allocations: 15.94 kB / 0.9551 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.005973, allocations: 0 / 0.9551 GB, free: 14.49 MB / 0.9167 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.927e-05/0.006032, allocations: 121.7 kB / 0.9553 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.006048, allocations: 11.95 kB / 0.9553 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.006073, allocations: 16.33 kB / 0.9553 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.006079, allocations: 0 / 0.9553 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.006082, allocations: 0 / 0.9553 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.006085, allocations: 0 / 0.9553 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.0062, allocations: 164.6 kB / 0.9554 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.006201, allocations: 0 / 0.9554 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-05/0.006232, allocations: 15.92 kB / 0.9555 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.006233, allocations: 0 / 0.9555 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.00624, allocations: 192 / 0.9555 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.006241, allocations: 8 kB / 0.9555 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.006243, allocations: 0 / 0.9555 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.006378, allocations: 183.3 kB / 0.9556 GB, free: 13.91 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-06/0.006386, allocations: 7.953 kB / 0.9556 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.0064, allocations: 3.984 kB / 0.9556 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.808e-05/0.006448, allocations: 8 kB / 0.9557 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.006489, allocations: 15.97 kB / 0.9557 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.006493, allocations: 0 / 0.9557 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 4.101e-05/0.006534, allocations: 103.3 kB / 0.9558 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.006534, allocations: 4 kB / 0.9558 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000151/0.006685, allocations: 12 kB / 0.9558 GB, free: 13.75 MB / 0.9167 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.0005906/0.007276, allocations: 0.7124 MB / 0.9565 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001343/0.00741, allocations: 51.91 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.007412, allocations: 0 / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 4.058e-05/0.007452, allocations: 24.27 kB / 0.9566 GB, free: 12.94 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.007628, allocations: 12 kB / 0.9566 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009824/0.00861, allocations: 1.466 MB / 0.958 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.699e-05/0.008657, allocations: 79.67 kB / 0.9581 GB, free: 11.28 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.176e-05/0.008689, allocations: 4 kB / 0.9581 GB, free: 11.28 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.161e-05/0.008741, allocations: 28.48 kB / 0.9581 GB, free: 11.25 MB / 0.9167 GB Notification: Performance of SimCode: time 4.51e-07/0.008741, allocations: 0 / 0.9581 GB, free: 11.25 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.02434, allocations: 2.836 MB / 0.9609 GB, free: 8.582 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.077/7.101, allocations: 3.719 kB / 0.9609 GB, free: 8.582 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.009206592105329]