Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.364/1.364, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001163/0.001164, allocations: 174.9 kB / 326.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205 MB / 0.5766 GB, free: 20.95 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008961/0.0008961, allocations: 89.95 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003234, allocations: 12.06 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.259, allocations: 105.4 MB / 0.8967 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001931/0.261, allocations: 1.393 MB / 0.8981 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007138/0.2618, allocations: 0.5001 MB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.2618, allocations: 0 / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.01e-05/0.2619, allocations: 3.938 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.448e-05/0.262, allocations: 15.86 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.2622, allocations: 23.97 kB / 0.8986 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.206e-05/0.2623, allocations: 75.72 kB / 0.8987 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.2624, allocations: 27.92 kB / 0.8987 GB, free: 66.09 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.889e-05/0.2625, allocations: 35.73 kB / 0.8988 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.289e-05/0.2626, allocations: 35.83 kB / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.2626, allocations: 0 / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.293e-05/0.2626, allocations: 4 kB / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.2627, allocations: 7.938 kB / 0.8988 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.919e-05/0.2627, allocations: 35.8 kB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.96e-05/0.2628, allocations: 55.88 kB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2628, allocations: 0 / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.914e-06/0.2628, allocations: 0 / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2628, allocations: 0 / 0.8989 GB, free: 65.92 MB / 0.6042 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.0004805/0.2633, allocations: 387.2 kB / 0.8993 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2634, allocations: 16.03 kB / 0.8993 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/0.2634, allocations: 12.84 kB / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.2636, allocations: 172.2 kB / 0.8995 GB, free: 65.26 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2636, allocations: 4.375 kB / 0.8995 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.2636, allocations: 4.375 kB / 0.8995 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.2638, allocations: 95.62 kB / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.2638, allocations: 0 / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.2638, allocations: 12 kB / 0.8996 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2638, allocations: 3.984 kB / 0.8996 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.264, allocations: 55.97 kB / 0.8996 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.2644, allocations: 328.6 kB / 0.8999 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.2646, allocations: 54.56 kB / 0.9 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.733e-05/0.2647, allocations: 32.94 kB / 0.9 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.2647, allocations: 8.016 kB / 0.9 GB, free: 64.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.2647, allocations: 30.56 kB / 0.9001 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.2647, allocations: 4 kB / 0.9001 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0003506/0.2651, allocations: 117.5 kB / 0.9002 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.2651, allocations: 77.11 kB / 0.9003 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.174e-05/0.2652, allocations: 131.9 kB / 0.9004 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.2652, allocations: 25.7 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.2653, allocations: 104 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.2653, allocations: 11.91 kB / 0.9005 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.2653, allocations: 9.719 kB / 0.9005 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.17e-05/0.2654, allocations: 326.8 kB / 0.9008 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.48e-05/0.2655, allocations: 31.92 kB / 0.9009 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.182e-05/0.2656, allocations: 41.64 kB / 0.9009 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.2657, allocations: 60.86 kB / 0.901 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2657, allocations: 0 / 0.901 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001667/0.2659, allocations: 89.58 kB / 0.901 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2659, allocations: 11.94 kB / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2659, allocations: 4 kB / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2659, allocations: 0 / 0.9011 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-05/0.266, allocations: 11.98 kB / 0.9011 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.266, allocations: 3.938 kB / 0.9011 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.627e-05/0.2661, allocations: 19.98 kB / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.2661, allocations: 3.938 kB / 0.9011 GB, free: 63.42 MB / 0.6042 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.02e-05/0.2662, allocations: 121.8 kB / 0.9012 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.2663, allocations: 3.906 kB / 0.9012 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.2663, allocations: 16.23 kB / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2663, allocations: 192 / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2663, allocations: 0 / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2663, allocations: 3.984 kB / 0.9012 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.2665, allocations: 193.7 kB / 0.9014 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2665, allocations: 4 kB / 0.9014 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.2665, allocations: 15.98 kB / 0.9014 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2665, allocations: 4 kB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.2666, allocations: 0 / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2666, allocations: 4 kB / 0.9015 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2666, allocations: 0 / 0.9015 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.2668, allocations: 187.3 kB / 0.9016 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.211e-05/0.2668, allocations: 89.02 kB / 0.9017 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.2668, allocations: 0 / 0.9017 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.865e-05/0.2669, allocations: 15.98 kB / 0.9017 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.267, allocations: 11.98 kB / 0.9017 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.267, allocations: 0 / 0.9017 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.976e-05/0.2671, allocations: 106.1 kB / 0.9018 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2671, allocations: 4 kB / 0.9018 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002021/0.2673, allocations: 16 kB / 0.9019 GB, free: 62.55 MB / 0.6042 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.0001082/0.2674, allocations: 99.25 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001917/0.2676, allocations: 55.97 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.2676, allocations: 0 / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.348e-05/0.2677, allocations: 35.92 kB / 0.902 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.268, allocations: 11.98 kB / 0.9021 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003456/0.2683, allocations: 222.5 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2685, allocations: 0.7022 MB / 0.903 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.2685, allocations: 7.438 kB / 0.903 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of SimCode: time 3.01e-07/0.2685, allocations: 0 / 0.903 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.002045/0.2706, allocations: 0.9877 MB / 0.9039 GB, free: 60.38 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)