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.001146/0.001146, allocations: 105.9 kB / 16.35 MB, free: 5.879 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.001101/0.001102, allocations: 192.3 kB / 17.29 MB, free: 5.516 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.311/1.311, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.758/1.758, allocations: 292.3 MB / 0.5496 GB, free: 17.43 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.002756/0.002756, allocations: 71.88 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.235, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002897/0.2379, allocations: 1.674 MB / 0.7864 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007247/0.2387, allocations: 483.8 kB / 0.7869 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.178e-05/0.2387, allocations: 7.938 kB / 0.7869 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.2388, allocations: 7.922 kB / 0.7869 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.702e-05/0.2389, allocations: 19.8 kB / 0.7869 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.239, allocations: 27.97 kB / 0.7869 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000106/0.2391, allocations: 83.7 kB / 0.787 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2393, allocations: 27.98 kB / 0.787 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.648e-05/0.2394, allocations: 39.84 kB / 0.7871 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.625e-05/0.2395, allocations: 35.78 kB / 0.7871 GB, free: 0.7617 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.2395, allocations: 8 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.74e-05/0.2395, allocations: 8 kB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.435e-05/0.2395, allocations: 15.98 kB / 0.7871 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.427e-05/0.2396, allocations: 35.8 kB / 0.7872 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2397, allocations: 79.64 kB / 0.7873 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 1.232e-05/0.2397, allocations: 4 kB / 0.7873 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2397, allocations: 0 / 0.7873 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2397, allocations: 4 kB / 0.7873 GB, free: 0.6094 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.0005107/0.2403, allocations: 395.1 kB / 0.7876 GB, free: 180 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.2403, allocations: 8.031 kB / 0.7876 GB, free: 172 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.968e-05/0.2403, allocations: 8.844 kB / 0.7877 GB, free: 164 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3042/0.5445, allocations: 180.1 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.5446, allocations: 1.812 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.5446, allocations: 6.219 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.5449, allocations: 92.17 kB / 0.7879 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.5449, allocations: 1.125 kB / 0.7879 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.5449, allocations: 5.125 kB / 0.7879 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.545, allocations: 0.6562 kB / 0.7879 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.5451, allocations: 55.55 kB / 0.788 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004728/0.5456, allocations: 318.6 kB / 0.7883 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.5457, allocations: 55.89 kB / 0.7883 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.288e-05/0.5458, allocations: 28.17 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.5459, allocations: 9.156 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.5459, allocations: 34.69 kB / 0.7884 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.483e-06/0.5459, allocations: 0 / 0.7884 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0003335/0.5462, allocations: 96.69 kB / 0.7885 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.5463, allocations: 82.83 kB / 0.7886 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/0.5464, allocations: 127.8 kB / 0.7887 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.5464, allocations: 34.23 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.5e-05/0.5464, allocations: 105.3 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.5465, allocations: 5.594 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.5465, allocations: 21.8 kB / 0.7889 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.369e-05/0.5466, allocations: 319 kB / 0.7892 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.228e-05/0.5467, allocations: 20.47 kB / 0.7892 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.826e-05/0.5467, allocations: 47.69 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.5469, allocations: 49.67 kB / 0.7893 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5469, allocations: 5.141 kB / 0.7893 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001664/0.547, allocations: 85.38 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.5471, allocations: 3.25 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.5471, allocations: 5.734 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.5471, allocations: 3.25 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5472, allocations: 8.75 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5472, allocations: 2.344 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.053e-05/0.5473, allocations: 13.28 kB / 0.7894 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.5473, allocations: 0.5 kB / 0.7894 GB, free: 47.84 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 6.137e-05/0.5474, allocations: 128.8 kB / 0.7895 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.5474, allocations: 7.125 kB / 0.7895 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.5474, allocations: 18 kB / 0.7895 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.5474, allocations: 0 / 0.7895 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.5475, allocations: 0 / 0.7895 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.5475, allocations: 0 / 0.7895 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.5476, allocations: 189.2 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.5476, allocations: 0 / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.578e-05/0.5477, allocations: 12.53 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5477, allocations: 0 / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.5477, allocations: 8.172 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5477, allocations: 1.875 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5477, allocations: 4.219 kB / 0.7898 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001709/0.5479, allocations: 179.3 kB / 0.7899 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.5479, allocations: 85.02 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.5479, allocations: 4.906 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.548, allocations: 9.828 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.5481, allocations: 13.09 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.5481, allocations: 3.281 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.809e-05/0.5482, allocations: 102 kB / 0.7901 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5482, allocations: 0.5 kB / 0.7901 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002166/0.5484, allocations: 16.5 kB / 0.7901 GB, free: 47.21 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 9.079e-05/0.5485, allocations: 101.5 kB / 0.7902 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001895/0.5487, allocations: 51.52 kB / 0.7903 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5487, allocations: 2.156 kB / 0.7903 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.162e-05/0.5488, allocations: 34.06 kB / 0.7903 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.5491, allocations: 6.844 kB / 0.7903 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00033/0.5494, allocations: 175 kB / 0.7905 GB, free: 47 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.5495, allocations: 0.6918 MB / 0.7912 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.136e-05/0.5496, allocations: 5 kB / 0.7912 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.5496, allocations: 13.28 kB / 0.7912 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.903e-06/0.5496, allocations: 0 / 0.7912 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of Templates: time 0.003072/0.5527, allocations: 0.8721 MB / 0.792 GB, free: 46.29 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)