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.002191/0.002191, allocations: 79.36 kB / 19.18 MB, free: 2.52 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.002253/0.002253, allocations: 166.6 kB / 22.46 MB, free: 5.375 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 2.033/2.033, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 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 2.947/2.947, allocations: 389 MB / 0.633 GB, free: 1.008 MB / 0.5919 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Examples.ChillerPlant.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.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.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.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 1 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.35e-05/2.514e-05, allocations: 5.656 kB / 1 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002936/0.002961, allocations: 1.696 MB / 1.002 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009868/0.003948, allocations: 498.7 kB / 1.002 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.5e-05/0.004023, allocations: 3.938 kB / 1.002 GB, free: 5.113 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.456e-05/0.004058, allocations: 7.922 kB / 1.002 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.409e-05/0.004142, allocations: 15.86 kB / 1.002 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.004395, allocations: 51.81 kB / 1.002 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.004562, allocations: 83.7 kB / 1.002 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.004679, allocations: 20.22 kB / 1.002 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.004864, allocations: 59.77 kB / 1.002 GB, free: 4.875 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.758e-05/0.004941, allocations: 31.91 kB / 1.003 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.004965, allocations: 8 kB / 1.003 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.872e-05/0.005014, allocations: 12 kB / 1.003 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.628e-05/0.00504, allocations: 15.91 kB / 1.003 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.00508, allocations: 27.92 kB / 1.003 GB, free: 4.781 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.005267, allocations: 91.73 kB / 1.003 GB, free: 4.691 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.005269, allocations: 0 / 1.003 GB, free: 4.691 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.12e-07/0.00527, allocations: 4 kB / 1.003 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.005275, allocations: 0 / 1.003 GB, free: 4.688 MB / 0.9512 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.0005639/0.005838, allocations: 317.9 kB / 1.003 GB, free: 4.348 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.005871, allocations: 12.03 kB / 1.003 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.006095, allocations: 32.81 kB / 1.003 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.006321, allocations: 132.2 kB / 1.003 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.006334, allocations: 4.312 kB / 1.003 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.006354, allocations: 8.375 kB / 1.003 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.006605, allocations: 117.6 kB / 1.003 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.006613, allocations: 192 / 1.003 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.006627, allocations: 4.375 kB / 1.003 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.006634, allocations: 11.88 kB / 1.003 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.006805, allocations: 51.91 kB / 1.003 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.007258, allocations: 256.4 kB / 1.004 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.007407, allocations: 50.53 kB / 1.004 GB, free: 3.602 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.333e-05/0.00749, allocations: 24.94 kB / 1.004 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.007508, allocations: 8 kB / 1.004 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.007548, allocations: 34.56 kB / 1.004 GB, free: 3.523 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.007549, allocations: 0 / 1.004 GB, free: 3.523 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0003489/0.007898, allocations: 97.59 kB / 1.004 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.007963, allocations: 85.11 kB / 1.004 GB, free: 3.32 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.008083, allocations: 129.7 kB / 1.004 GB, free: 3.184 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.008114, allocations: 33.7 kB / 1.004 GB, free: 3.145 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.737e-05/0.008191, allocations: 100.1 kB / 1.004 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.008215, allocations: 15.83 kB / 1.004 GB, free: 3.027 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.008259, allocations: 29.64 kB / 1.004 GB, free: 2.992 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.008418, allocations: 318.8 kB / 1.004 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.998e-05/0.008508, allocations: 27.97 kB / 1.004 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.008636, allocations: 63.41 kB / 1.005 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.008795, allocations: 52.89 kB / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.008796, allocations: 0 / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002162/0.009013, allocations: 89.66 kB / 1.005 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.009028, allocations: 8 kB / 1.005 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.009032, allocations: 0 / 1.005 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.009046, allocations: 0 / 1.005 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.009149, allocations: 15.92 kB / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.009153, allocations: 0 / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.463e-05/0.009238, allocations: 11.98 kB / 1.005 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-06/0.009246, allocations: 0 / 1.005 GB, free: 2.387 MB / 0.9512 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.0001114/0.009357, allocations: 118.3 kB / 1.005 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.009393, allocations: 7.953 kB / 1.005 GB, free: 2.254 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.00943, allocations: 20.33 kB / 1.005 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-06/0.009432, allocations: 0 / 1.005 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.009436, allocations: 0 / 1.005 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.009438, allocations: 192 / 1.005 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.009621, allocations: 129.2 kB / 1.005 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.009627, allocations: 7.984 kB / 1.005 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.158e-05/0.009699, allocations: 11.92 kB / 1.005 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.0097, allocations: 3.938 kB / 1.005 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.009712, allocations: 4 kB / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.009713, allocations: 0 / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.009714, allocations: 4 kB / 1.005 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.01001, allocations: 183.3 kB / 1.005 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.01002, allocations: 7.953 kB / 1.005 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.01004, allocations: 0 / 1.005 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.0102, allocations: 15.98 kB / 1.005 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.01025, allocations: 3.984 kB / 1.005 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.01026, allocations: 4.062 kB / 1.005 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.991e-05/0.01034, allocations: 105.6 kB / 1.005 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.01034, allocations: 0 / 1.005 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002373/0.01058, allocations: 16 kB / 1.005 GB, free: 1.695 MB / 0.9512 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.0001303/0.01071, allocations: 99.25 kB / 1.005 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.01094, allocations: 59.89 kB / 1.005 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01094, allocations: 0 / 1.005 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.209e-05/0.01103, allocations: 27.98 kB / 1.006 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.01128, allocations: 11.88 kB / 1.006 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004201/0.0117, allocations: 177.4 kB / 1.006 GB, free: 1.293 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.012e-05/0.01179, allocations: 71.89 kB / 1.006 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.1e-05/0.01183, allocations: 7.984 kB / 1.006 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.01188, allocations: 12.5 kB / 1.006 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.01188, allocations: 0 / 1.006 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of Templates: time 0.003886/0.01576, allocations: 0.9174 MB / 1.007 GB, free: 284 kB / 0.9512 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] 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: 8.775807112455368]