Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.889/1.889, allocations: 292.6 MB / 307.6 MB, free: 5.152 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001863/0.001863, allocations: 191.4 kB / 377.1 MB, free: 1.496 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.4 MB / 0.6367 GB, free: 8.527 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 88.56 kB / 0.751 GB, free: 63.21 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005108/0.0005104, allocations: 8 kB / 0.8748 GB, free: 11.16 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3314, allocations: 116.3 MB / 0.9884 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9003/1.232, allocations: 145.7 MB / 1.131 GB, free: 30.44 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/1.232, allocations: 81.36 kB / 1.131 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.0175/1.25, allocations: 6.939 MB / 1.138 GB, free: 25.52 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.725e-06/1.25, allocations: 0.75 kB / 1.138 GB, free: 25.52 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.928e-05/1.25, allocations: 8 kB / 1.138 GB, free: 25.51 MB / 0.7292 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.0009678/1.251, allocations: 0.6466 MB / 1.138 GB, free: 24.87 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/1.251, allocations: 13.38 kB / 1.138 GB, free: 24.86 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.112e-05/1.251, allocations: 49.5 kB / 1.138 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/1.251, allocations: 387.7 kB / 1.139 GB, free: 24.43 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/1.251, allocations: 24.09 kB / 1.139 GB, free: 24.41 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/1.251, allocations: 28.8 kB / 1.139 GB, free: 24.38 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/1.252, allocations: 365.6 kB / 1.139 GB, free: 24.05 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/1.252, allocations: 0.7969 kB / 1.139 GB, free: 24.05 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/1.252, allocations: 12.66 kB / 1.139 GB, free: 24.04 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/1.252, allocations: 8 kB / 1.139 GB, free: 24.03 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/1.253, allocations: 251.5 kB / 1.139 GB, free: 23.81 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/1.254, allocations: 1.25 MB / 1.14 GB, free: 22.67 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006032/1.255, allocations: 277.8 kB / 1.141 GB, free: 22.42 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/1.255, allocations: 1.641 kB / 1.141 GB, free: 22.42 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/1.255, allocations: 42.69 kB / 1.141 GB, free: 22.37 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/1.255, allocations: 0 / 1.141 GB, free: 22.37 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22): time 0.000699/1.256, allocations: 343.8 kB / 1.141 GB, free: 22.06 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/1.256, allocations: 163.3 kB / 1.141 GB, free: 21.86 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003331/1.256, allocations: 313.5 kB / 1.142 GB, free: 21.58 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/1.256, allocations: 29.7 kB / 1.142 GB, free: 21.55 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/1.256, allocations: 212.4 kB / 1.142 GB, free: 21.35 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/1.256, allocations: 77.84 kB / 1.142 GB, free: 21.28 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/1.256, allocations: 8.391 kB / 1.142 GB, free: 21.27 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.256, allocations: 346.6 kB / 1.142 GB, free: 20.94 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/1.257, allocations: 90.69 kB / 1.142 GB, free: 20.86 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/1.257, allocations: 170.1 kB / 1.142 GB, free: 20.68 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/1.257, allocations: 101.5 kB / 1.143 GB, free: 20.59 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.257, allocations: 0.9375 kB / 1.143 GB, free: 20.59 MB / 0.7292 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000517/1.258, allocations: 304.1 kB / 1.143 GB, free: 20.31 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/1.258, allocations: 8 kB / 1.143 GB, free: 20.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.258, allocations: 0 / 1.143 GB, free: 20.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/1.258, allocations: 5.344 kB / 1.143 GB, free: 20.3 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/1.258, allocations: 55.42 kB / 1.143 GB, free: 20.25 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.258, allocations: 4.562 kB / 1.143 GB, free: 20.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/1.258, allocations: 46.22 kB / 1.143 GB, free: 20.21 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/1.258, allocations: 4.75 kB / 1.143 GB, free: 20.2 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001601/1.258, allocations: 163.1 kB / 1.143 GB, free: 20.04 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/1.258, allocations: 41.41 kB / 1.143 GB, free: 20 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.722e-05/1.258, allocations: 41.33 kB / 1.143 GB, free: 19.96 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/1.258, allocations: 4 kB / 1.143 GB, free: 19.96 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.258, allocations: 0 / 1.143 GB, free: 19.96 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/1.258, allocations: 1.5 kB / 1.143 GB, free: 19.96 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004678/1.259, allocations: 419.4 kB / 1.144 GB, free: 19.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/1.259, allocations: 0 / 1.144 GB, free: 19.58 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/1.259, allocations: 51.2 kB / 1.144 GB, free: 19.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/1.259, allocations: 4 kB / 1.144 GB, free: 19.53 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/1.259, allocations: 5.766 kB / 1.144 GB, free: 19.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/1.259, allocations: 5.312 kB / 1.144 GB, free: 19.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.259, allocations: 0 / 1.144 GB, free: 19.52 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006746/1.26, allocations: 479.7 kB / 1.144 GB, free: 19.07 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/1.26, allocations: 133.8 kB / 1.144 GB, free: 18.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/1.26, allocations: 8.5 kB / 1.144 GB, free: 18.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/1.26, allocations: 30.16 kB / 1.144 GB, free: 18.9 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/1.26, allocations: 16.48 kB / 1.144 GB, free: 18.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/1.26, allocations: 10.02 kB / 1.144 GB, free: 18.88 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002373/1.261, allocations: 246.6 kB / 1.145 GB, free: 18.67 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.432e-06/1.261, allocations: 0 / 1.145 GB, free: 18.67 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003106/1.261, allocations: 76.44 kB / 1.145 GB, free: 18.6 MB / 0.7292 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001488/1.261, allocations: 113.2 kB / 1.145 GB, free: 18.48 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004498/1.262, allocations: 223.1 kB / 1.145 GB, free: 18.28 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.262, allocations: 0 / 1.145 GB, free: 18.28 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001957/1.262, allocations: 123.7 kB / 1.145 GB, free: 18.17 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/1.262, allocations: 78.58 kB / 1.145 GB, free: 18.12 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/1.264, allocations: 0.8676 MB / 1.146 GB, free: 17.31 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/1.264, allocations: 0.804 MB / 1.147 GB, free: 16.54 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001562/1.264, allocations: 40.34 kB / 1.147 GB, free: 16.51 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.231e-05/1.264, allocations: 28.75 kB / 1.147 GB, free: 16.48 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/1.264, allocations: 0 / 1.147 GB, free: 16.48 MB / 0.7292 GB Notification: Performance of Templates: time 0.007726/1.272, allocations: 3.323 MB / 1.15 GB, free: 14.62 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)