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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 110.8 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.084/3.084, allocations: 497.2 MB / 0.7811 GB, free: 33.72 MB / 0.6231 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 62.94 kB / 1.134 GB, free: 33.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3534, allocations: 173.9 MB / 1.304 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003238/0.3566, allocations: 1.685 MB / 1.306 GB, free: 15.84 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008404/0.3574, allocations: 454.8 kB / 1.306 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.077e-05/0.3575, allocations: 4 kB / 1.306 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.768e-05/0.3575, allocations: 7.922 kB / 1.306 GB, free: 15.38 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.33e-05/0.3576, allocations: 15.8 kB / 1.306 GB, free: 15.37 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.3578, allocations: 31.91 kB / 1.306 GB, free: 15.34 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001348/0.358, allocations: 83.7 kB / 1.306 GB, free: 15.25 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3581, allocations: 20.22 kB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.3582, allocations: 39.89 kB / 1.306 GB, free: 15.2 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.567e-05/0.3583, allocations: 39.78 kB / 1.306 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.3583, allocations: 8 kB / 1.306 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.391e-05/0.3583, allocations: 8 kB / 1.306 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.872e-05/0.3583, allocations: 15.98 kB / 1.306 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.001e-05/0.3584, allocations: 35.8 kB / 1.306 GB, free: 15.09 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.3585, allocations: 87.58 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3586, allocations: 0 / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3586, allocations: 0 / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.3586, allocations: 0 / 1.306 GB, free: 15 MB / 1.014 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.0006505/0.3592, allocations: 391.1 kB / 1.307 GB, free: 14.57 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3593, allocations: 12.62 kB / 1.307 GB, free: 14.56 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.3593, allocations: 38.75 kB / 1.307 GB, free: 14.52 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.3593, allocations: 8.891 kB / 1.307 GB, free: 14.51 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.3595, allocations: 184.2 kB / 1.307 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3595, allocations: 4.375 kB / 1.307 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.3595, allocations: 4.375 kB / 1.307 GB, free: 14.28 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.3598, allocations: 95.38 kB / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.3598, allocations: 4 kB / 1.307 GB, free: 14.17 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3598, allocations: 8 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3598, allocations: 0 / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.3599, allocations: 51.95 kB / 1.307 GB, free: 14.11 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.3605, allocations: 316.7 kB / 1.307 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.3606, allocations: 58.55 kB / 1.308 GB, free: 13.69 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.953e-05/0.3607, allocations: 24.94 kB / 1.308 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3607, allocations: 3.984 kB / 1.308 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3608, allocations: 34.59 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3608, allocations: 0 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of matching and sorting (n=4): time 0.0003401/0.3611, allocations: 105.6 kB / 1.308 GB, free: 13.5 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.3612, allocations: 77.11 kB / 1.308 GB, free: 13.41 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.3613, allocations: 140.1 kB / 1.308 GB, free: 13.26 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.3613, allocations: 25.7 kB / 1.308 GB, free: 13.23 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.51e-05/0.3614, allocations: 92.14 kB / 1.308 GB, free: 13.14 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.3614, allocations: 23.83 kB / 1.308 GB, free: 13.11 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-05/0.3615, allocations: 13.72 kB / 1.308 GB, free: 13.09 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3616, allocations: 322.8 kB / 1.308 GB, free: 12.77 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.3617, allocations: 27.98 kB / 1.308 GB, free: 12.74 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.033e-05/0.3618, allocations: 41.77 kB / 1.308 GB, free: 12.7 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.3619, allocations: 48.83 kB / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3619, allocations: 0 / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001977/0.3621, allocations: 89.62 kB / 1.309 GB, free: 12.55 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3621, allocations: 9.906 kB / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3622, allocations: 0 / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3622, allocations: 0 / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.3623, allocations: 11.98 kB / 1.309 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3623, allocations: 0 / 1.309 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.993e-05/0.3624, allocations: 15.92 kB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3624, allocations: 3.938 kB / 1.309 GB, free: 12.51 MB / 1.014 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.0001072/0.3625, allocations: 113.8 kB / 1.309 GB, free: 12.39 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.367e-05/0.3625, allocations: 15.94 kB / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.426e-05/0.3626, allocations: 12.25 kB / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3626, allocations: 0 / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3626, allocations: 0 / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3626, allocations: 3.938 kB / 1.309 GB, free: 12.35 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.3628, allocations: 193.6 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3628, allocations: 0 / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.3629, allocations: 7.984 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.3629, allocations: 4 kB / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.3629, allocations: 3.938 kB / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3629, allocations: 0 / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3629, allocations: 4 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.3632, allocations: 183.3 kB / 1.309 GB, free: 11.9 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.228e-05/0.3632, allocations: 81.06 kB / 1.309 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.3632, allocations: 8.062 kB / 1.309 GB, free: 11.79 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.3634, allocations: 11.98 kB / 1.309 GB, free: 11.78 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.3634, allocations: 11.98 kB / 1.309 GB, free: 11.77 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3634, allocations: 11.88 kB / 1.309 GB, free: 11.76 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.625e-05/0.3635, allocations: 99.27 kB / 1.309 GB, free: 11.66 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3635, allocations: 0 / 1.309 GB, free: 11.66 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002259/0.3637, allocations: 15.94 kB / 1.309 GB, free: 11.64 MB / 1.014 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.0005781/0.3643, allocations: 0.7124 MB / 1.31 GB, free: 10.91 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.3645, allocations: 56.19 kB / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3645, allocations: 0 / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/0.3646, allocations: 23.98 kB / 1.31 GB, free: 10.83 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.3649, allocations: 12.02 kB / 1.31 GB, free: 10.82 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.3666, allocations: 1.447 MB / 1.312 GB, free: 9.293 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.367, allocations: 0.6885 MB / 1.312 GB, free: 8.578 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.429e-05/0.367, allocations: 4 kB / 1.312 GB, free: 8.574 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.998e-05/0.3671, allocations: 27.42 kB / 1.312 GB, free: 8.547 MB / 1.014 GB Notification: Performance of SimCode: time 4.01e-07/0.3671, allocations: 0 / 1.312 GB, free: 8.547 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.3922, allocations: 2.089 MB / 1.314 GB, free: 6.605 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.945/8.338, allocations: 12.02 kB / 1.314 GB, free: 6.594 MB / 1.014 GB " [Timeout remaining time 292] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.796593794133514]