Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.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.001386/0.001386, allocations: 72.45 kB / 19.17 MB, free: 0.7266 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.001642/0.001642, allocations: 173.9 kB / 22.46 MB, free: 2.086 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 1.483/1.483, allocations: 177.1 MB / 202.7 MB, free: 5.777 MB / 186.7 MB " [Timeout remaining time 178] 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 3.294/3.294, allocations: 429.6 MB / 0.6726 GB, free: 4.043 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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: translateModel(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 1.066 GB, free: 32.71 MB / 1.01 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.193e-05/2.36e-05, allocations: 2.281 kB / 1.066 GB, free: 32.71 MB / 1.01 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002214/0.002238, allocations: 1.702 MB / 1.068 GB, free: 31.55 MB / 1.01 GB Notification: Performance of NFInst.instExpressions: time 0.0007365/0.002974, allocations: 0.4994 MB / 1.068 GB, free: 31.22 MB / 1.01 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.716e-05/0.003042, allocations: 3.938 kB / 1.068 GB, free: 31.21 MB / 1.01 GB Notification: Performance of NFTyping.typeComponents: time 4.02e-05/0.003082, allocations: 3.938 kB / 1.068 GB, free: 31.21 MB / 1.01 GB Notification: Performance of NFTyping.typeBindings: time 7.599e-05/0.003158, allocations: 22.03 kB / 1.068 GB, free: 31.2 MB / 1.01 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.003383, allocations: 49.97 kB / 1.068 GB, free: 31.17 MB / 1.01 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.0035, allocations: 78.09 kB / 1.068 GB, free: 31.13 MB / 1.01 GB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.003594, allocations: 25.03 kB / 1.068 GB, free: 31.11 MB / 1.01 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.003736, allocations: 58.45 kB / 1.068 GB, free: 31.09 MB / 1.01 GB Notification: Performance of NFSimplifyModel.simplify: time 6.659e-05/0.003803, allocations: 34.05 kB / 1.068 GB, free: 31.07 MB / 1.01 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.003821, allocations: 5.844 kB / 1.068 GB, free: 31.07 MB / 1.01 GB Notification: Performance of NFFlatten.collectFunctions: time 3.806e-05/0.003859, allocations: 11.38 kB / 1.068 GB, free: 31.07 MB / 1.01 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.003877, allocations: 15.12 kB / 1.068 GB, free: 31.06 MB / 1.01 GB Notification: Performance of NFVerifyModel.verify: time 2.911e-05/0.003906, allocations: 23.38 kB / 1.068 GB, free: 31.05 MB / 1.01 GB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.004047, allocations: 99.47 kB / 1.069 GB, free: 31 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.004049, allocations: 2.812 kB / 1.069 GB, free: 31 MB / 1.01 GB Notification: Performance of FrontEnd: time 9.12e-07/0.00405, allocations: 0 / 1.069 GB, free: 31 MB / 1.01 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.004055, allocations: 0 / 1.069 GB, free: 31 MB / 1.01 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.0004153/0.00447, allocations: 323.4 kB / 1.069 GB, free: 30.71 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.004514, allocations: 11.22 kB / 1.069 GB, free: 30.71 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.004731, allocations: 22.16 kB / 1.069 GB, free: 30.7 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.004962, allocations: 142.3 kB / 1.069 GB, free: 30.56 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.004977, allocations: 7.219 kB / 1.069 GB, free: 30.55 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.004992, allocations: 7.156 kB / 1.069 GB, free: 30.55 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.005206, allocations: 112.3 kB / 1.069 GB, free: 30.46 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.005217, allocations: 192 / 1.069 GB, free: 30.46 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.005234, allocations: 8.312 kB / 1.069 GB, free: 30.45 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.005241, allocations: 3.938 kB / 1.069 GB, free: 30.45 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.005396, allocations: 54.31 kB / 1.069 GB, free: 30.43 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004214/0.005818, allocations: 263.3 kB / 1.07 GB, free: 30.2 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.005977, allocations: 54.88 kB / 1.07 GB, free: 30.16 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.23e-05/0.00606, allocations: 28.12 kB / 1.07 GB, free: 30.14 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.006077, allocations: 3.344 kB / 1.07 GB, free: 30.14 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.006104, allocations: 30.56 kB / 1.07 GB, free: 30.1 MB / 1.01 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.006105, allocations: 0 / 1.07 GB, free: 30.1 MB / 1.01 GB Notification: Performance of matching and sorting (n=4): time 0.0003607/0.006465, allocations: 107 kB / 1.07 GB, free: 30.05 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.006506, allocations: 80.14 kB / 1.07 GB, free: 29.95 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.00661, allocations: 136.7 kB / 1.07 GB, free: 29.84 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.006625, allocations: 25.7 kB / 1.07 GB, free: 29.81 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.006674, allocations: 96.64 kB / 1.07 GB, free: 29.72 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.006694, allocations: 15.84 kB / 1.07 GB, free: 29.7 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.006732, allocations: 15.34 kB / 1.07 GB, free: 29.69 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.006814, allocations: 321 kB / 1.07 GB, free: 29.37 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.859e-05/0.006903, allocations: 27.88 kB / 1.07 GB, free: 29.36 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.884e-05/0.006991, allocations: 66.8 kB / 1.07 GB, free: 29.3 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.007126, allocations: 45.31 kB / 1.071 GB, free: 29.29 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.007129, allocations: 3.281 kB / 1.071 GB, free: 29.29 MB / 1.01 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001843/0.007313, allocations: 87.83 kB / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.007331, allocations: 8.469 kB / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.007336, allocations: 0 / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.007355, allocations: 192 / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.007465, allocations: 16.31 kB / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.007473, allocations: 3.328 kB / 1.071 GB, free: 29.23 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.591e-05/0.007549, allocations: 17 kB / 1.071 GB, free: 29.22 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.007559, allocations: 2.812 kB / 1.071 GB, free: 29.22 MB / 1.01 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 8.14e-05/0.00764, allocations: 120.7 kB / 1.071 GB, free: 29.09 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.00767, allocations: 8.828 kB / 1.071 GB, free: 29.09 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.007712, allocations: 14.27 kB / 1.071 GB, free: 29.08 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.007714, allocations: 0 / 1.071 GB, free: 29.08 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.007719, allocations: 0 / 1.071 GB, free: 29.08 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.007723, allocations: 4 kB / 1.071 GB, free: 29.08 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.007879, allocations: 131 kB / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.00788, allocations: 3.938 kB / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.977e-05/0.00795, allocations: 8.953 kB / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.007952, allocations: 2.844 kB / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.007962, allocations: 0 / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.007963, allocations: 0 / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.007964, allocations: 0 / 1.071 GB, free: 28.94 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.008196, allocations: 186.3 kB / 1.071 GB, free: 28.79 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.008211, allocations: 6.703 kB / 1.071 GB, free: 28.78 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.008233, allocations: 8 kB / 1.071 GB, free: 28.77 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.008335, allocations: 14.94 kB / 1.071 GB, free: 28.77 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.008396, allocations: 8.922 kB / 1.071 GB, free: 28.77 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.008403, allocations: 2.906 kB / 1.071 GB, free: 28.77 MB / 1.01 GB Notification: Performance of sorting global known variables: time 5.389e-05/0.008457, allocations: 105.1 kB / 1.071 GB, free: 28.69 MB / 1.01 GB Notification: Performance of sort global known variables: time 7.1e-08/0.008457, allocations: 0 / 1.071 GB, free: 28.69 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002465/0.008703, allocations: 14.55 kB / 1.071 GB, free: 28.68 MB / 1.01 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.0001168/0.00882, allocations: 101.8 kB / 1.071 GB, free: 28.59 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0002183/0.009039, allocations: 59.97 kB / 1.071 GB, free: 28.57 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.009041, allocations: 0 / 1.071 GB, free: 28.57 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 7.843e-05/0.009119, allocations: 25.98 kB / 1.071 GB, free: 28.57 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.009382, allocations: 10.5 kB / 1.071 GB, free: 28.56 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004342/0.009816, allocations: 170.8 kB / 1.072 GB, free: 28.42 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.604e-05/0.009882, allocations: 77.88 kB / 1.072 GB, free: 28.34 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 4.215e-05/0.009925, allocations: 8.953 kB / 1.072 GB, free: 28.34 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.009966, allocations: 14.94 kB / 1.072 GB, free: 28.33 MB / 1.01 GB Notification: Performance of SimCode: time 4.91e-07/0.009967, allocations: 0 / 1.072 GB, free: 28.33 MB / 1.01 GB Notification: Performance of Templates: time 0.003299/0.01327, allocations: 0.9366 MB / 1.073 GB, free: 28.24 MB / 1.01 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_DataCenter_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.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: 9.081656893977197]