Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001658/0.001658, allocations: 192.1 kB / 16.13 MB, free: 6.707 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.512/1.512, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6625/0.6625, allocations: 95.49 MB / 364.8 MB, free: 10.11 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 60.48 kB / 444.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.324, allocations: 69.09 MB / 0.5017 GB, free: 17.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004316/0.3284, allocations: 2.989 MB / 0.5046 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.33, allocations: 0.9593 MB / 0.5056 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003779/0.3304, allocations: 15.94 kB / 0.5056 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.3307, allocations: 43.58 kB / 0.5056 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.331, allocations: 71.44 kB / 0.5057 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.3316, allocations: 202.6 kB / 0.5059 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.332, allocations: 455.3 kB / 0.5063 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.3323, allocations: 215.2 kB / 0.5065 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.3324, allocations: 159.1 kB / 0.5067 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3326, allocations: 170.9 kB / 0.5068 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.025e-05/0.3326, allocations: 20 kB / 0.5068 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.3327, allocations: 28 kB / 0.5069 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.866e-05/0.3327, allocations: 67.7 kB / 0.5069 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.3328, allocations: 190.7 kB / 0.5071 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.3331, allocations: 486.4 kB / 0.5076 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3331, allocations: 0 / 0.5076 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.3331, allocations: 0 / 0.5076 GB, free: 11.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3331, allocations: 4 kB / 0.5076 GB, free: 11.54 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008322/0.334, allocations: 0.7283 MB / 0.5083 GB, free: 10.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.334, allocations: 11.98 kB / 0.5083 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.3341, allocations: 48.38 kB / 0.5084 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.3344, allocations: 382.1 kB / 0.5087 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.3344, allocations: 21.03 kB / 0.5087 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.3345, allocations: 32.38 kB / 0.5088 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.335, allocations: 364.8 kB / 0.5091 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.335, allocations: 0 / 0.5091 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.335, allocations: 19.98 kB / 0.5091 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3351, allocations: 8 kB / 0.5091 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.3355, allocations: 242.5 kB / 0.5094 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.3367, allocations: 1.197 MB / 0.5105 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.3372, allocations: 258.8 kB / 0.5108 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.3374, allocations: 120.8 kB / 0.5109 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.3374, allocations: 384 / 0.5109 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.3374, allocations: 50.44 kB / 0.511 GB, free: 7.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.012e-06/0.3375, allocations: 0 / 0.511 GB, free: 7.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005949/0.3381, allocations: 326.8 kB / 0.5113 GB, free: 7.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.3381, allocations: 132.5 kB / 0.5114 GB, free: 7.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.3384, allocations: 361.7 kB / 0.5117 GB, free: 7.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.3384, allocations: 29.7 kB / 0.5118 GB, free: 7.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3385, allocations: 232.2 kB / 0.512 GB, free: 6.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.3386, allocations: 74.91 kB / 0.5121 GB, free: 6.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.3387, allocations: 53.92 kB / 0.5121 GB, free: 6.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.3387, allocations: 350.8 kB / 0.5124 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3389, allocations: 89.77 kB / 0.5125 GB, free: 6.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.3391, allocations: 150.8 kB / 0.5127 GB, free: 6.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.3394, allocations: 215.1 kB / 0.5129 GB, free: 5.809 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3394, allocations: 0 / 0.5129 GB, free: 5.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004185/0.3398, allocations: 289 kB / 0.5132 GB, free: 5.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.3399, allocations: 8 kB / 0.5132 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3399, allocations: 0 / 0.5132 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3399, allocations: 0 / 0.5132 GB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.3401, allocations: 51.91 kB / 0.5132 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.3401, allocations: 7.984 kB / 0.5132 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3403, allocations: 35.81 kB / 0.5133 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.3403, allocations: 12.09 kB / 0.5133 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002057/0.3406, allocations: 196.1 kB / 0.5135 GB, free: 5.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001438/0.3407, allocations: 127.4 kB / 0.5136 GB, free: 5.066 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000236/0.341, allocations: 199.4 kB / 0.5138 GB, free: 4.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.42e-07/0.341, allocations: 0 / 0.5138 GB, free: 4.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization_lambda0): time 0.000338/0.3413, allocations: 257.1 kB / 0.514 GB, free: 4.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/0.3413, allocations: 19.86 kB / 0.514 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-06/0.3413, allocations: 0 / 0.514 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-06/0.3413, allocations: 4 kB / 0.514 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.3415, allocations: 35.98 kB / 0.5141 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.3415, allocations: 8.094 kB / 0.5141 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.3417, allocations: 35.81 kB / 0.5141 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.3417, allocations: 11.94 kB / 0.5141 GB, free: 4.488 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.031e-05/0.3418, allocations: 196.1 kB / 0.5143 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/0.3419, allocations: 35.53 kB / 0.5143 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.128e-05/0.3419, allocations: 43.47 kB / 0.5144 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.342, allocations: 4 kB / 0.5144 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.342, allocations: 0 / 0.5144 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.342, allocations: 11.86 kB / 0.5144 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.3423, allocations: 425.3 kB / 0.5148 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3423, allocations: 96 / 0.5148 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.3425, allocations: 43.91 kB / 0.5148 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3426, allocations: 7.984 kB / 0.5149 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.3426, allocations: 4 kB / 0.5149 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.3426, allocations: 0 / 0.5149 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3426, allocations: 4 kB / 0.5149 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000588/0.3432, allocations: 477 kB / 0.5153 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.3433, allocations: 136.7 kB / 0.5154 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.3433, allocations: 8 kB / 0.5155 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.3435, allocations: 19.98 kB / 0.5155 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.3436, allocations: 23.97 kB / 0.5155 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.3436, allocations: 4 kB / 0.5155 GB, free: 2.984 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001944/0.3438, allocations: 263.2 kB / 0.5158 GB, free: 2.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3438, allocations: 0 / 0.5158 GB, free: 2.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004117/0.3442, allocations: 127.4 kB / 0.5159 GB, free: 2.602 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.734e-05/0.3443, allocations: 99.25 kB / 0.516 GB, free: 2.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005433/0.3449, allocations: 331.7 kB / 0.5163 GB, free: 2.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3449, allocations: 0 / 0.5163 GB, free: 2.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.3451, allocations: 111.8 kB / 0.5164 GB, free: 2.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.3457, allocations: 77.88 kB / 0.5165 GB, free: 1.984 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3467, allocations: 0.8678 MB / 0.5173 GB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.3469, allocations: 0.7953 MB / 0.5181 GB, free: 280 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.3471, allocations: 38.95 kB / 0.5181 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.01e-05/0.3471, allocations: 27.44 kB / 0.5182 GB, free: 212 kB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3471, allocations: 0 / 0.5182 GB, free: 212 kB / 382.1 MB Notification: Performance of Templates: time 0.006727/0.3539, allocations: 3.434 MB / 0.5215 GB, free: 12.8 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)