Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001459/0.001459, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001575/0.001575, allocations: 195.1 kB / 16.14 MB, free: 6.738 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.617/1.617, allocations: 205.1 MB / 222 MB, free: 5.004 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.599/1.599, allocations: 251.6 MB / 0.5088 GB, free: 3.367 MB / 414.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.001648/0.001649, allocations: 59.92 kB / 0.6216 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7166/0.7183, allocations: 104.7 MB / 0.7238 GB, free: 13.21 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.00478/0.7232, allocations: 3.032 MB / 0.7267 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002134/0.7253, allocations: 0.9358 MB / 0.7277 GB, free: 9.215 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003836/0.7257, allocations: 11.94 kB / 0.7277 GB, free: 9.203 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.7261, allocations: 47.58 kB / 0.7277 GB, free: 9.156 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002554/0.7264, allocations: 83.34 kB / 0.7278 GB, free: 9.074 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.7271, allocations: 194.7 kB / 0.728 GB, free: 8.887 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000481/0.7276, allocations: 459.2 kB / 0.7284 GB, free: 8.438 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004038/0.728, allocations: 203.1 kB / 0.7286 GB, free: 8.238 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.7283, allocations: 151.2 kB / 0.7288 GB, free: 8.09 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.7285, allocations: 163 kB / 0.7289 GB, free: 7.93 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.7285, allocations: 20 kB / 0.7289 GB, free: 7.91 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.74e-05/0.7286, allocations: 20 kB / 0.729 GB, free: 7.891 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.7287, allocations: 71.62 kB / 0.729 GB, free: 7.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.7288, allocations: 178.9 kB / 0.7292 GB, free: 7.645 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.7292, allocations: 474.3 kB / 0.7296 GB, free: 7.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.7293, allocations: 4 kB / 0.7296 GB, free: 7.176 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.092e-06/0.7293, allocations: 0 / 0.7296 GB, free: 7.176 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.7293, allocations: 0 / 0.7296 GB, free: 7.176 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001201/0.7305, allocations: 0.705 MB / 0.7303 GB, free: 6.422 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.7305, allocations: 8.031 kB / 0.7303 GB, free: 6.414 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.172e-05/0.7306, allocations: 48.38 kB / 0.7304 GB, free: 6.367 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/0.7312, allocations: 396.3 kB / 0.7308 GB, free: 5.941 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.7312, allocations: 25.03 kB / 0.7308 GB, free: 5.918 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.7313, allocations: 28.31 kB / 0.7308 GB, free: 5.891 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.7319, allocations: 341.5 kB / 0.7311 GB, free: 5.531 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.7319, allocations: 0 / 0.7311 GB, free: 5.531 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.7319, allocations: 15.94 kB / 0.7312 GB, free: 5.516 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.7319, allocations: 11.98 kB / 0.7312 GB, free: 5.504 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.7324, allocations: 214.1 kB / 0.7314 GB, free: 5.293 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.734, allocations: 1.182 MB / 0.7325 GB, free: 4.035 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.7346, allocations: 242.6 kB / 0.7328 GB, free: 3.789 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.7348, allocations: 108.8 kB / 0.7329 GB, free: 3.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.7348, allocations: 3.984 kB / 0.7329 GB, free: 3.676 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.7348, allocations: 34.94 kB / 0.7329 GB, free: 3.633 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.303e-06/0.7348, allocations: 0 / 0.7329 GB, free: 3.633 MB / 0.545 GB Notification: Performance of matching and sorting (n=22): time 0.0006957/0.7356, allocations: 297.7 kB / 0.7332 GB, free: 3.336 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.7356, allocations: 106.8 kB / 0.7333 GB, free: 3.207 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.736, allocations: 337.7 kB / 0.7336 GB, free: 2.871 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.7361, allocations: 33.64 kB / 0.7336 GB, free: 2.832 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.7362, allocations: 224.1 kB / 0.7339 GB, free: 2.605 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.344e-05/0.7363, allocations: 74.94 kB / 0.7339 GB, free: 2.531 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.004e-05/0.7364, allocations: 53.61 kB / 0.734 GB, free: 2.473 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.7366, allocations: 350.8 kB / 0.7343 GB, free: 2.121 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00018/0.7367, allocations: 71.97 kB / 0.7344 GB, free: 2.051 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.737, allocations: 139.7 kB / 0.7345 GB, free: 1.887 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.7374, allocations: 210.8 kB / 0.7347 GB, free: 1.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7374, allocations: 3.938 kB / 0.7347 GB, free: 1.656 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004951/0.7379, allocations: 282.8 kB / 0.735 GB, free: 1.375 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.7379, allocations: 5.719 kB / 0.735 GB, free: 1.371 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.7379, allocations: 4 kB / 0.735 GB, free: 1.367 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.738, allocations: 4 kB / 0.735 GB, free: 1.363 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.7382, allocations: 51.91 kB / 0.7351 GB, free: 1.312 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.7382, allocations: 192 / 0.7351 GB, free: 1.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.7384, allocations: 39.73 kB / 0.7351 GB, free: 1.273 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.7384, allocations: 12 kB / 0.7351 GB, free: 1.262 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.000195/0.7386, allocations: 169.6 kB / 0.7353 GB, free: 1.086 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/0.7387, allocations: 31.62 kB / 0.7353 GB, free: 1.055 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.396e-05/0.7388, allocations: 35.36 kB / 0.7353 GB, free: 1.016 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.7388, allocations: 4 kB / 0.7353 GB, free: 1.012 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.7389, allocations: 4 kB / 0.7353 GB, free: 1.008 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.7389, allocations: 4 kB / 0.7353 GB, free: 1.004 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005139/0.7394, allocations: 397.2 kB / 0.7357 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7394, allocations: 3.984 kB / 0.7357 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.7396, allocations: 47.91 kB / 0.7358 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.7396, allocations: 0 / 0.7358 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.7397, allocations: 4 kB / 0.7358 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.7397, allocations: 4 kB / 0.7358 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.7397, allocations: 0 / 0.7358 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008262/0.7405, allocations: 430.5 kB / 0.7362 GB, free: 76 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.7407, allocations: 132.7 kB / 0.7363 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.622e-05/0.7407, allocations: 8 kB / 0.7363 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.7409, allocations: 11.98 kB / 0.7363 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.313e-05/0.741, allocations: 19.97 kB / 0.7363 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.7411, allocations: 8.062 kB / 0.7364 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002567/0.7413, allocations: 243.2 kB / 0.7366 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7413, allocations: 0 / 0.7366 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003298/0.7417, allocations: 67.69 kB / 0.7367 GB, free: 15.57 MB / 0.5606 GB 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 0.0001845/0.7419, allocations: 103.2 kB / 0.7368 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004926/0.7424, allocations: 206.9 kB / 0.7369 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.7424, allocations: 3.938 kB / 0.737 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.7426, allocations: 102.5 kB / 0.7371 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.7433, allocations: 73.33 kB / 0.7371 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.7447, allocations: 0.8371 MB / 0.7379 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.7451, allocations: 0.7914 MB / 0.7387 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001544/0.7453, allocations: 30.97 kB / 0.7387 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.186e-05/0.7453, allocations: 27.44 kB / 0.7388 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.7453, allocations: 4 kB / 0.7388 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of Templates: time 0.006885/0.7522, allocations: 2.978 MB / 0.7417 GB, free: 10.41 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)