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.0009298/0.0009298, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 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.001183/0.001183, allocations: 165 kB / 23.02 MB, free: 1.551 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.9277/0.9277, allocations: 177.1 MB / 203.4 MB, free: 5.641 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 2.116/2.116, allocations: 429.5 MB / 0.6732 GB, free: 4.062 MB / 0.6355 GB " [Timeout remaining time 177] 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.523e-06/1.523e-06, allocations: 0.7656 kB / 0.8782 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.799e-05/2.952e-05, allocations: 3.562 kB / 0.8782 GB, free: 6.344 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002994/0.003023, allocations: 1.764 MB / 0.8799 GB, free: 4.59 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009386/0.003962, allocations: 0.5093 MB / 0.8804 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.004037, allocations: 4 kB / 0.8804 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.072e-05/0.004078, allocations: 5.938 kB / 0.8804 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.00417, allocations: 15.75 kB / 0.8804 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.004447, allocations: 46.11 kB / 0.8805 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.004607, allocations: 87.66 kB / 0.8806 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.004729, allocations: 32.08 kB / 0.8806 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.004917, allocations: 59.88 kB / 0.8806 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.386e-05/0.004991, allocations: 23.92 kB / 0.8807 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.005014, allocations: 10.34 kB / 0.8807 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.197e-05/0.005066, allocations: 11.98 kB / 0.8807 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.092e-05/0.005087, allocations: 15.94 kB / 0.8807 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.005125, allocations: 27.91 kB / 0.8807 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.005291, allocations: 67.73 kB / 0.8808 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.005294, allocations: 0 / 0.8808 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/0.005295, allocations: 0.7188 kB / 0.8808 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.0053, allocations: 0 / 0.8808 GB, free: 3.684 MB / 0.8386 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.0005019/0.005802, allocations: 421.8 kB / 0.8812 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.005847, allocations: 8.031 kB / 0.8812 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.006041, allocations: 32.88 kB / 0.8812 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.006239, allocations: 138.3 kB / 0.8814 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.006253, allocations: 8.375 kB / 0.8814 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.006271, allocations: 4.375 kB / 0.8814 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.006468, allocations: 121.5 kB / 0.8815 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.006481, allocations: 192 / 0.8815 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.006495, allocations: 4.375 kB / 0.8815 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.006506, allocations: 3.938 kB / 0.8815 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.961e-05/0.006565, allocations: 11.98 kB / 0.8815 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000444/0.007009, allocations: 311.6 kB / 0.8818 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.884e-05/0.007108, allocations: 46.98 kB / 0.8819 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.007147, allocations: 15.69 kB / 0.8819 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.007166, allocations: 0 / 0.8819 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.007192, allocations: 33.39 kB / 0.8819 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.007193, allocations: 0 / 0.8819 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4): time 0.0002187/0.007412, allocations: 61.77 kB / 0.882 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.007456, allocations: 81.09 kB / 0.882 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.007578, allocations: 192.4 kB / 0.8822 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.007598, allocations: 33.7 kB / 0.8823 GB, free: 2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.00767, allocations: 142.9 kB / 0.8824 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.007691, allocations: 11.84 kB / 0.8824 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.007739, allocations: 27.31 kB / 0.8824 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.007882, allocations: 0.4923 MB / 0.8829 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.945e-05/0.007911, allocations: 4 kB / 0.8829 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-05/0.007966, allocations: 57.19 kB / 0.883 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.126e-05/0.008027, allocations: 27.62 kB / 0.883 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.008031, allocations: 3.938 kB / 0.883 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001174/0.008148, allocations: 61.67 kB / 0.8831 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.008164, allocations: 4 kB / 0.8831 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.008169, allocations: 0 / 0.8831 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.008186, allocations: 0 / 0.8831 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.702e-05/0.008273, allocations: 11.98 kB / 0.8831 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.008278, allocations: 0 / 0.8831 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.571e-05/0.008324, allocations: 8 kB / 0.8831 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.008335, allocations: 7.984 kB / 0.8831 GB, free: 1.098 MB / 0.8386 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.801e-05/0.008423, allocations: 156.5 kB / 0.8832 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.008455, allocations: 7.953 kB / 0.8832 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.008489, allocations: 20.28 kB / 0.8833 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.008491, allocations: 0 / 0.8833 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.008495, allocations: 0 / 0.8833 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.008498, allocations: 0 / 0.8833 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.008665, allocations: 140.6 kB / 0.8834 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.008667, allocations: 3.938 kB / 0.8834 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.00871, allocations: 7.984 kB / 0.8834 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.008712, allocations: 0 / 0.8834 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.008721, allocations: 0 / 0.8834 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.008724, allocations: 4 kB / 0.8834 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.008726, allocations: 192 / 0.8834 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.008888, allocations: 207.9 kB / 0.8836 GB, free: 0.4922 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.602e-05/0.008904, allocations: 11.89 kB / 0.8836 GB, free: 492 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.00893, allocations: 8.062 kB / 0.8836 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.352e-05/0.009003, allocations: 4 kB / 0.8836 GB, free: 480 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.009069, allocations: 15.91 kB / 0.8836 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.009075, allocations: 0 / 0.8836 GB, free: 464 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.651e-05/0.009142, allocations: 149.4 kB / 0.8838 GB, free: 316 kB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.009142, allocations: 0 / 0.8838 GB, free: 316 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002664/0.009408, allocations: 15.89 kB / 0.8838 GB, free: 300 kB / 0.8386 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.0001185/0.009527, allocations: 111.2 kB / 0.8839 GB, free: 176 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.009651, allocations: 27.67 kB / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.009652, allocations: 0 / 0.8839 GB, free: 144 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.743e-05/0.00969, allocations: 19.62 kB / 0.884 GB, free: 120 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.009969, allocations: 13.81 kB / 0.884 GB, free: 108 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008118/0.01078, allocations: 186.7 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.99e-05/0.01082, allocations: 63.34 kB / 0.8842 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.05e-05/0.01086, allocations: 4 kB / 0.8842 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.01091, allocations: 16.48 kB / 0.8842 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of SimCode: time 1.573e-06/0.01091, allocations: 0 / 0.8842 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of Templates: time 0.002602/0.01351, allocations: 0.9416 MB / 0.8851 GB, free: 14.91 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.DataCenter.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3030036189593375]