Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_3.0.0_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_3.0.0_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.001439/0.001439, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001493/0.001493, allocations: 192 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.032/3.032, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 62.56 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3529, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003156/0.3561, allocations: 1.74 MB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007693/0.3569, allocations: 454.9 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.161e-05/0.3569, allocations: 0 / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.477e-05/0.357, allocations: 3.938 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.012e-05/0.3571, allocations: 15.86 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.3573, allocations: 23.97 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.3574, allocations: 83.66 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.3575, allocations: 31.97 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.3576, allocations: 31.92 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.919e-05/0.3577, allocations: 39.83 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.3578, allocations: 4 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.3578, allocations: 8 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.3578, allocations: 19.92 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.3579, allocations: 35.8 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.358, allocations: 83.97 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.358, allocations: 8 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.358, allocations: 0 / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.358, allocations: 0 / 1.07 GB, free: 8.176 MB / 0.8262 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.0005228/0.3586, allocations: 383.1 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3586, allocations: 8.031 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.785e-05/0.3586, allocations: 8.844 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3588, allocations: 184.1 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.3588, allocations: 8.375 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.3588, allocations: 8.375 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.3591, allocations: 91.69 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3591, allocations: 0 / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.3591, allocations: 3.938 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.3591, allocations: 0 / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.3593, allocations: 51.91 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004844/0.3597, allocations: 332.7 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.3599, allocations: 54.58 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.846e-05/0.36, allocations: 28.94 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.36, allocations: 4 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.36, allocations: 30.56 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.36, allocations: 0 / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0003246/0.3604, allocations: 105.5 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.3604, allocations: 81.05 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.3606, allocations: 127 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3606, allocations: 33.7 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.27e-05/0.3606, allocations: 96.05 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.3607, allocations: 15.83 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.3607, allocations: 17.72 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3609, allocations: 322.8 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.755e-05/0.3609, allocations: 23.98 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.206e-05/0.361, allocations: 41.7 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.3612, allocations: 48.83 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3612, allocations: 0 / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000193/0.3614, allocations: 89.7 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3614, allocations: 4 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3614, allocations: 4 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3614, allocations: 0 / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3615, allocations: 16.02 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3616, allocations: 0 / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.794e-05/0.3616, allocations: 15.98 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3616, allocations: 3.938 kB / 1.072 GB, free: 5.734 MB / 0.8262 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 0.0001451/0.3618, allocations: 113.8 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.3618, allocations: 12.03 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.3619, allocations: 16.23 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3619, allocations: 3.984 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3619, allocations: 4 kB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3619, allocations: 0 / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.3621, allocations: 189.6 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3621, allocations: 3.938 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.814e-05/0.3622, allocations: 7.984 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3622, allocations: 0 / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.3622, allocations: 8 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3622, allocations: 0 / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3622, allocations: 0 / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.3625, allocations: 187.3 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.3625, allocations: 81.02 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.3626, allocations: 4 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.3627, allocations: 7.984 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.3627, allocations: 11.98 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.3627, allocations: 4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.273e-05/0.3628, allocations: 101.6 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3628, allocations: 4 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002223/0.363, allocations: 15.94 kB / 1.073 GB, free: 4.875 MB / 0.8262 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.851e-05/0.3631, allocations: 103.2 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002118/0.3634, allocations: 55.91 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3634, allocations: 0 / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.353e-05/0.3635, allocations: 27.98 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.3638, allocations: 11.98 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003873/0.3642, allocations: 191.1 kB / 1.073 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3644, allocations: 0.6962 MB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.344e-05/0.3645, allocations: 4 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.3645, allocations: 7.438 kB / 1.074 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3645, allocations: 0 / 1.074 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of Templates: time 0.003009/0.3676, allocations: 0.7987 MB / 1.075 GB, free: 2.945 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)