Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001032/0.001032, allocations: 87.58 kB / 20.45 MB, free: 4.121 MB / 18.57 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.0009763/0.0009763, allocations: 161 kB / 23.82 MB, free: 0.7539 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.8974/0.8974, allocations: 177.1 MB / 204.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.792/1.792, allocations: 359 MB / 0.6052 GB, free: 10.98 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: 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_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 0.7871 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.464e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002143/0.002167, allocations: 1.754 MB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0007103/0.002878, allocations: 0.5009 MB / 0.7893 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.209e-05/0.00294, allocations: 1.219 kB / 0.7893 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.225e-05/0.002972, allocations: 7.875 kB / 0.7893 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.203e-05/0.003054, allocations: 20.42 kB / 0.7893 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.003289, allocations: 49.28 kB / 0.7894 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.003421, allocations: 83.66 kB / 0.7894 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.003523, allocations: 28.14 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.003668, allocations: 51.89 kB / 0.7895 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.963e-05/0.003728, allocations: 28.73 kB / 0.7895 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.003746, allocations: 8 kB / 0.7896 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.003786, allocations: 12.56 kB / 0.7896 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.003803, allocations: 16.61 kB / 0.7896 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.003831, allocations: 27.86 kB / 0.7896 GB, free: 9.883 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.00396, allocations: 68.64 kB / 0.7897 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.003963, allocations: 0 / 0.7897 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.973e-06/0.003965, allocations: 4.656 kB / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.00397, allocations: 0 / 0.7897 GB, free: 9.812 MB / 0.7448 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.0006626/0.004633, allocations: 413.5 kB / 0.7901 GB, free: 9.375 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.00467, allocations: 12.03 kB / 0.7901 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.004816, allocations: 26.47 kB / 0.7901 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.004971, allocations: 138.2 kB / 0.7902 GB, free: 9.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.004982, allocations: 12.3 kB / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.004994, allocations: 5.312 kB / 0.7903 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.005156, allocations: 127.9 kB / 0.7904 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.005163, allocations: 3.5 kB / 0.7904 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.005173, allocations: 384 / 0.7904 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.00518, allocations: 3.938 kB / 0.7904 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.464e-05/0.005224, allocations: 19.92 kB / 0.7904 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003464/0.005571, allocations: 307.7 kB / 0.7907 GB, free: 8.656 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.234e-05/0.005653, allocations: 51.02 kB / 0.7907 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.642e-05/0.00568, allocations: 11.69 kB / 0.7908 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.005693, allocations: 0.7188 kB / 0.7908 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.005714, allocations: 37.39 kB / 0.7908 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 1.031e-06/0.005715, allocations: 1.656 kB / 0.7908 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0001695/0.005885, allocations: 57.72 kB / 0.7909 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.00592, allocations: 81.11 kB / 0.7909 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.00601, allocations: 192.1 kB / 0.7911 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.006024, allocations: 26.64 kB / 0.7911 GB, free: 8.137 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/0.006077, allocations: 150.8 kB / 0.7913 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.006093, allocations: 21.34 kB / 0.7913 GB, free: 7.965 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.006128, allocations: 31.36 kB / 0.7913 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.00623, allocations: 496.1 kB / 0.7918 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.733e-05/0.006257, allocations: 7.984 kB / 0.7918 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.792e-05/0.006295, allocations: 50.42 kB / 0.7919 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.295e-05/0.006338, allocations: 23.81 kB / 0.7919 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.006341, allocations: 3.938 kB / 0.7919 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.131e-05/0.006422, allocations: 61.64 kB / 0.7919 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.006436, allocations: 4.562 kB / 0.7919 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.00644, allocations: 1.406 kB / 0.792 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.006453, allocations: 7.938 kB / 0.792 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.127e-05/0.006524, allocations: 7.984 kB / 0.792 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.006529, allocations: 0 / 0.792 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.138e-05/0.00656, allocations: 8.516 kB / 0.792 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.006567, allocations: 5.594 kB / 0.792 GB, free: 7.23 MB / 0.7448 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 7.117e-05/0.006638, allocations: 164.5 kB / 0.7921 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.006656, allocations: 7.953 kB / 0.7921 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.006679, allocations: 8.344 kB / 0.7922 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.006681, allocations: 1 kB / 0.7922 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.006686, allocations: 4 kB / 0.7922 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.00669, allocations: 4.516 kB / 0.7922 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.006792, allocations: 128.6 kB / 0.7923 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.006795, allocations: 8.453 kB / 0.7923 GB, free: 6.863 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.577e-05/0.006821, allocations: 5.062 kB / 0.7923 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.006824, allocations: 4 kB / 0.7923 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.006831, allocations: 0 / 0.7923 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.006832, allocations: 0.625 kB / 0.7923 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.006833, allocations: 0.5312 kB / 0.7923 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.006947, allocations: 207.8 kB / 0.7925 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.164e-05/0.006959, allocations: 13.27 kB / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.006977, allocations: 0 / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.354e-05/0.00702, allocations: 11.98 kB / 0.7925 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.007062, allocations: 9.141 kB / 0.7925 GB, free: 6.602 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.007067, allocations: 4 kB / 0.7925 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.967e-05/0.007117, allocations: 139.2 kB / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.007117, allocations: 0.8125 kB / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001471/0.007264, allocations: 19.88 kB / 0.7927 GB, free: 6.441 MB / 0.7448 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 8.204e-05/0.007346, allocations: 108.4 kB / 0.7928 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001054/0.007451, allocations: 33.02 kB / 0.7928 GB, free: 6.293 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.007453, allocations: 4 kB / 0.7928 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.708e-05/0.00748, allocations: 19.69 kB / 0.7928 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001747/0.007654, allocations: 8.891 kB / 0.7929 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000516/0.00817, allocations: 191 kB / 0.793 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.74e-05/0.008208, allocations: 63.34 kB / 0.7931 GB, free: 5.961 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.851e-05/0.008236, allocations: 7.984 kB / 0.7931 GB, free: 5.953 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.00827, allocations: 11.94 kB / 0.7931 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of SimCode: time 6.61e-07/0.00827, allocations: 0 / 0.7931 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of Templates: time 0.002638/0.01091, allocations: 0.9805 MB / 0.7941 GB, free: 5.012 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_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: 4.828252769075334]