Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001188, allocations: 111.3 kB / 16.37 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 190.1 kB / 17.31 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.822/1.822, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 72.41 kB / 0.6729 GB, free: 5.828 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2671, allocations: 114.6 MB / 0.7848 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003302/0.2704, allocations: 1.677 MB / 0.7864 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008247/0.2713, allocations: 487.7 kB / 0.7869 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.169e-05/0.2714, allocations: 0 / 0.7869 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.2714, allocations: 3.938 kB / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.674e-05/0.2715, allocations: 23.78 kB / 0.7869 GB, free: 0.9531 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.2717, allocations: 27.97 kB / 0.787 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.2718, allocations: 83.72 kB / 0.787 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.272, allocations: 23.98 kB / 0.7871 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.2721, allocations: 39.78 kB / 0.7871 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.979e-05/0.2722, allocations: 35.84 kB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.2722, allocations: 12 kB / 0.7871 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.582e-05/0.2723, allocations: 4 kB / 0.7871 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.2723, allocations: 19.92 kB / 0.7872 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.2724, allocations: 35.8 kB / 0.7872 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.2725, allocations: 91.62 kB / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2725, allocations: 0 / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2725, allocations: 0 / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2725, allocations: 0 / 0.7873 GB, free: 0.5859 MB / 0.6544 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.0005664/0.2731, allocations: 395.1 kB / 0.7877 GB, free: 156 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.2732, allocations: 8.031 kB / 0.7877 GB, free: 148 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.796e-05/0.2732, allocations: 12.84 kB / 0.7877 GB, free: 136 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4045/0.6777, allocations: 179.9 kB / 0.7879 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.6778, allocations: 2.188 kB / 0.7879 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.256e-05/0.6778, allocations: 4.938 kB / 0.7879 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.6781, allocations: 92.31 kB / 0.788 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.6781, allocations: 0 / 0.788 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.6781, allocations: 0.8438 kB / 0.788 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.6782, allocations: 2.625 kB / 0.788 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.6783, allocations: 57.39 kB / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.6788, allocations: 324 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.6789, allocations: 53.84 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.467e-05/0.679, allocations: 26.03 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.679, allocations: 2.625 kB / 0.7884 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.6791, allocations: 37.86 kB / 0.7884 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.6791, allocations: 2.969 kB / 0.7884 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0003687/0.6795, allocations: 100.2 kB / 0.7885 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.6795, allocations: 84.17 kB / 0.7886 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.6796, allocations: 128.8 kB / 0.7887 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.6796, allocations: 27.11 kB / 0.7888 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.149e-05/0.6797, allocations: 101.7 kB / 0.7889 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.6797, allocations: 8.938 kB / 0.7889 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.6798, allocations: 19.75 kB / 0.7889 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.537e-05/0.6798, allocations: 319.2 kB / 0.7892 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.573e-05/0.6799, allocations: 31.27 kB / 0.7892 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.147e-05/0.68, allocations: 36.19 kB / 0.7893 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.6801, allocations: 47.42 kB / 0.7893 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.6801, allocations: 6.469 kB / 0.7893 GB, free: 47.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001684/0.6803, allocations: 85.56 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.6803, allocations: 5.344 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.6803, allocations: 3.531 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.6804, allocations: 2.844 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.6805, allocations: 9.281 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.6805, allocations: 1.406 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.379e-05/0.6806, allocations: 15.39 kB / 0.7894 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.6806, allocations: 0 / 0.7894 GB, free: 47.6 MB / 0.6544 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.07e-05/0.6807, allocations: 121.2 kB / 0.7895 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.6807, allocations: 8.422 kB / 0.7895 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.6807, allocations: 14.78 kB / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.6807, allocations: 0 / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.6807, allocations: 0 / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.6807, allocations: 0 / 0.7896 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.6809, allocations: 199.9 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6809, allocations: 1.969 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.681, allocations: 12 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.681, allocations: 0 / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.681, allocations: 0 / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.681, allocations: 0 / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.681, allocations: 5.609 kB / 0.7898 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.6812, allocations: 186.7 kB / 0.7899 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.622e-05/0.6812, allocations: 81.02 kB / 0.79 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.6813, allocations: 2.625 kB / 0.79 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.6814, allocations: 9.156 kB / 0.79 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.79e-05/0.6815, allocations: 18.94 kB / 0.7901 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.6815, allocations: 1.625 kB / 0.7901 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.251e-05/0.6815, allocations: 100.3 kB / 0.7902 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6815, allocations: 0 / 0.7902 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002241/0.6818, allocations: 17.97 kB / 0.7902 GB, free: 46.97 MB / 0.6544 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.0001022/0.6819, allocations: 105.3 kB / 0.7903 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.6821, allocations: 52.25 kB / 0.7903 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6821, allocations: 0.625 kB / 0.7903 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.843e-05/0.6822, allocations: 31.33 kB / 0.7904 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.6825, allocations: 10.91 kB / 0.7904 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000394/0.6829, allocations: 203.5 kB / 0.7906 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.683, allocations: 0.6909 MB / 0.7912 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.6831, allocations: 10.28 kB / 0.7912 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.6831, allocations: 1 kB / 0.7912 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of Templates: time 0.002487/0.6856, allocations: 0.9969 MB / 0.7922 GB, free: 46.02 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)