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.001859/0.001859, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002611/0.002611, allocations: 212.5 kB / 22.24 MB, free: 5.262 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.5/1.5, allocations: 230.6 MB / 256 MB, free: 7.781 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.148/3.148, allocations: 0.4892 GB / 0.7943 GB, free: 35.65 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.003322/0.003322, allocations: 67.69 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3567, allocations: 176.1 MB / 1.325 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003484/0.3602, allocations: 1.691 MB / 1.327 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.3613, allocations: 494.8 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.925e-05/0.3614, allocations: 8 kB / 1.327 GB, free: 200 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.3614, allocations: 11.86 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.882e-05/0.3615, allocations: 11.86 kB / 1.327 GB, free: 176 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.3618, allocations: 47.83 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.3619, allocations: 95.64 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.362, allocations: 28.33 kB / 1.327 GB, free: 0 / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.3622, allocations: 35.92 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.578e-05/0.3623, allocations: 35.78 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.174e-05/0.3623, allocations: 12 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.409e-05/0.3624, allocations: 15.98 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.3624, allocations: 19.92 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.751e-05/0.3624, allocations: 23.88 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.3626, allocations: 95.55 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3626, allocations: 4 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3626, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.3626, 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.0005665/0.3632, allocations: 319.7 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3633, allocations: 16.03 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.3633, allocations: 34.73 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.3635, allocations: 24.88 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.3638, allocations: 138.4 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.3638, allocations: 4.375 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.3638, allocations: 4.375 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.3641, allocations: 121.1 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3641, allocations: 0 / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3641, allocations: 4 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3641, allocations: 4 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.3642, allocations: 43.97 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005064/0.3647, allocations: 287.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.3649, allocations: 42.56 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.398e-05/0.365, allocations: 36.97 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.365, allocations: 4 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.365, allocations: 34.56 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.473e-06/0.365, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.0003616/0.3654, allocations: 105.6 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.3655, allocations: 77.11 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.3656, allocations: 140 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.3656, allocations: 29.64 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.73e-05/0.3657, allocations: 104 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.3657, allocations: 15.91 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.3658, allocations: 17.72 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3659, allocations: 318.8 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.696e-05/0.366, allocations: 31.86 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.892e-05/0.3661, allocations: 63.41 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.3662, allocations: 48.83 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3662, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002158/0.3665, allocations: 93.83 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3665, allocations: 4 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3665, allocations: 0 / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3665, allocations: 3.984 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.3666, allocations: 15.92 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3666, allocations: 0 / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.209e-05/0.3667, allocations: 15.92 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3667, 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 0.0001005/0.3668, allocations: 113.8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.3668, allocations: 15.95 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.3669, allocations: 12.34 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3669, allocations: 0 / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3669, allocations: 0 / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3669, allocations: 3.938 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.3671, allocations: 156.7 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3671, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.089e-05/0.3671, allocations: 8.188 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.3671, allocations: 3.984 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3671, allocations: 4 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3672, allocations: 0 / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3672, allocations: 8 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.3674, allocations: 183.3 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.3674, allocations: 3.953 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.3674, allocations: 4 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.3675, allocations: 11.98 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.3676, allocations: 11.92 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3676, allocations: 0 / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.607e-05/0.3677, allocations: 107.2 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3677, allocations: 4 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002241/0.3679, 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.0005454/0.3684, allocations: 0.714 MB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002018/0.3686, allocations: 59.83 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3686, allocations: 3.938 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.887e-05/0.3687, 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.0002535/0.369, allocations: 17.44 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.3707, allocations: 1.454 MB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.531e-05/0.3707, allocations: 75.89 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.036e-05/0.3708, allocations: 16.16 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.16e-05/0.3708, allocations: 23.44 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3708, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.3998, allocations: 2.685 MB / 1.335 GB, free: 7.605 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.49, allocations: 6.625 kB / 1.335 GB, free: 7.602 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.303883750922978]