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.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.00115/0.00115, 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.001129/0.001129, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.895/0.895, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.739/1.739, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.029e-05/2.192e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002229/0.002251, allocations: 1.68 MB / 1.001 GB, free: 11.8 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008105/0.003061, allocations: 498.8 kB / 1.002 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.999e-05/0.003161, allocations: 3.938 kB / 1.002 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 5.296e-05/0.003214, allocations: 11.81 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.003332, allocations: 19.84 kB / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.003607, allocations: 51.83 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.003749, allocations: 87.64 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.003871, allocations: 20.22 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.00403, allocations: 59.81 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.184e-05/0.004092, allocations: 23.91 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.004111, allocations: 8 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.244e-05/0.004153, allocations: 12 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.881e-05/0.004172, allocations: 19.91 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.004198, allocations: 19.94 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.004345, allocations: 95.67 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004348, allocations: 4 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.753e-06/0.004349, allocations: 0 / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.004354, allocations: 0 / 1.002 GB, free: 10.88 MB / 0.9636 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.0004409/0.004795, allocations: 324.2 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.004837, allocations: 8.75 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.00487, allocations: 34.75 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.005015, allocations: 32.81 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.005245, allocations: 143.1 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.005259, allocations: 8.312 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.005273, allocations: 4.375 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.005472, allocations: 113.6 kB / 1.003 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.005483, allocations: 4.172 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.005495, allocations: 8.125 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.0055, allocations: 0 / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.005606, allocations: 51.91 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003955/0.006001, allocations: 275.9 kB / 1.003 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.006106, allocations: 54.59 kB / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.701e-05/0.006153, allocations: 24.94 kB / 1.003 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.006168, allocations: 3.938 kB / 1.003 GB, free: 9.68 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.006193, allocations: 46.55 kB / 1.003 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.006194, allocations: 0 / 1.003 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of matching and sorting (n=4): time 0.0002323/0.006426, allocations: 101.5 kB / 1.003 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.006463, allocations: 77.11 kB / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.484e-05/0.006548, allocations: 135.7 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.006562, allocations: 33.69 kB / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.923e-05/0.006611, allocations: 100 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.006627, allocations: 15.89 kB / 1.004 GB, free: 9.129 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.00666, allocations: 21.66 kB / 1.004 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.969e-05/0.00674, allocations: 322.8 kB / 1.004 GB, free: 8.777 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.154e-05/0.006791, allocations: 23.98 kB / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.859e-05/0.00685, allocations: 67.41 kB / 1.004 GB, free: 8.676 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.317e-05/0.006933, allocations: 48.83 kB / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.006936, allocations: 0 / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001182/0.007054, allocations: 81.62 kB / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.007066, allocations: 4 kB / 1.004 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.007072, allocations: 0 / 1.004 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.007085, allocations: 4 kB / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.19e-05/0.007157, allocations: 15.92 kB / 1.004 GB, free: 8.516 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.007162, allocations: 4.031 kB / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.739e-05/0.007199, allocations: 11.98 kB / 1.004 GB, free: 8.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.007207, allocations: 4 kB / 1.004 GB, free: 8.496 MB / 0.9636 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 6.893e-05/0.007276, allocations: 117.8 kB / 1.004 GB, free: 8.371 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.007293, allocations: 7.953 kB / 1.004 GB, free: 8.363 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.784e-05/0.00732, allocations: 12.33 kB / 1.004 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.007323, allocations: 0 / 1.004 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.007328, allocations: 4 kB / 1.004 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.007331, allocations: 0 / 1.004 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.007456, allocations: 160.7 kB / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.007457, allocations: 0 / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.773e-05/0.007495, allocations: 7.984 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.007497, allocations: 384 / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.007504, allocations: 8 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.007505, allocations: 0 / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.007507, allocations: 0 / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000145/0.007652, allocations: 191.3 kB / 1.005 GB, free: 7.922 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.161e-05/0.007663, allocations: 11.94 kB / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.007678, allocations: 8 kB / 1.005 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.084e-05/0.007729, allocations: 11.98 kB / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.007773, allocations: 7.984 kB / 1.005 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.007777, allocations: 0 / 1.005 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.307e-05/0.00782, allocations: 101 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.00782, allocations: 4 kB / 1.005 GB, free: 7.781 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001529/0.007973, allocations: 11.94 kB / 1.005 GB, free: 7.77 MB / 0.9636 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.0003283/0.008301, allocations: 0.724 MB / 1.006 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001452/0.008447, allocations: 51.97 kB / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.008449, allocations: 4 kB / 1.006 GB, free: 6.965 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.00849, allocations: 19.98 kB / 1.006 GB, free: 6.945 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.008676, allocations: 8 kB / 1.006 GB, free: 6.938 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.009714, allocations: 1.463 MB / 1.007 GB, free: 5.391 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.42e-05/0.009768, allocations: 81.86 kB / 1.007 GB, free: 5.289 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.366e-05/0.009802, allocations: 4 kB / 1.007 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.872e-05/0.00986, allocations: 24.48 kB / 1.007 GB, free: 5.258 MB / 0.9636 GB Notification: Performance of SimCode: time 5.31e-07/0.009861, allocations: 4 kB / 1.007 GB, free: 5.254 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.02736, allocations: 2.828 MB / 1.01 GB, free: 2.582 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/6.948, allocations: 7.875 kB / 1.01 GB, free: 2.574 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.954425198957324]