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/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 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 107.6 kB / 16.36 MB, free: 6.48 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.00185/0.00185, allocations: 193.7 kB / 17.3 MB, free: 5.824 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.462/1.462, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.784/1.784, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.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.001578/0.001578, allocations: 71.19 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2179, allocations: 114.6 MB / 0.7848 GB, free: 3.203 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.00498/0.2229, allocations: 2.978 MB / 0.7877 GB, free: 204 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3248/0.5477, allocations: 0.9454 MB / 0.7886 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.548, allocations: 11.72 kB / 0.7886 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.5483, allocations: 69.52 kB / 0.7887 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.5485, allocations: 92.94 kB / 0.7888 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.549, allocations: 215.2 kB / 0.789 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.5494, allocations: 490.2 kB / 0.7894 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.5497, allocations: 215.2 kB / 0.7897 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.5499, allocations: 183 kB / 0.7898 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.5501, allocations: 175.1 kB / 0.79 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.953e-05/0.5502, allocations: 42.94 kB / 0.79 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.202e-05/0.5503, allocations: 41.78 kB / 0.7901 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.385e-05/0.5503, allocations: 94.72 kB / 0.7902 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.5505, allocations: 207.7 kB / 0.7904 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003778/0.5509, allocations: 0.4908 MB / 0.7908 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5509, allocations: 3.094 kB / 0.7908 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5509, allocations: 2.688 kB / 0.7908 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.381e-05/0.5509, allocations: 0 / 0.7908 GB, free: 46.16 MB / 0.6544 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.0009355/0.5518, allocations: 0.707 MB / 0.7915 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.5519, allocations: 10.62 kB / 0.7916 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.552, allocations: 47.31 kB / 0.7916 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004982/0.5525, allocations: 391.4 kB / 0.792 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.5525, allocations: 21.38 kB / 0.792 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.5526, allocations: 31.53 kB / 0.792 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.5531, allocations: 343.7 kB / 0.7923 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.5531, allocations: 3.906 kB / 0.7924 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.5531, allocations: 11.75 kB / 0.7924 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.5531, allocations: 7.875 kB / 0.7924 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.5535, allocations: 221.8 kB / 0.7926 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.5547, allocations: 1.175 MB / 0.7937 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005071/0.5552, allocations: 234.6 kB / 0.794 GB, free: 44.65 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.5554, allocations: 117 kB / 0.7941 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.5554, allocations: 9.453 kB / 0.7941 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.5554, allocations: 30.94 kB / 0.7941 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=22): time 1.262e-06/0.5555, allocations: 0 / 0.7941 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22): time 0.0005894/0.556, allocations: 301.2 kB / 0.7944 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.5561, allocations: 113.8 kB / 0.7945 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.5564, allocations: 334.4 kB / 0.7948 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.5564, allocations: 32.86 kB / 0.7948 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.5566, allocations: 217.1 kB / 0.7951 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.5566, allocations: 81.48 kB / 0.7951 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.5567, allocations: 53.36 kB / 0.7952 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.248e-05/0.5568, allocations: 339.2 kB / 0.7955 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.5569, allocations: 84.17 kB / 0.7956 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.5571, allocations: 147.3 kB / 0.7957 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003143/0.5575, allocations: 211.2 kB / 0.7959 GB, free: 43.65 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5575, allocations: 4.094 kB / 0.7959 GB, free: 43.65 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004164/0.5579, allocations: 284.4 kB / 0.7962 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.5579, allocations: 7.688 kB / 0.7962 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.5579, allocations: 0.9375 kB / 0.7962 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.5579, allocations: 3.5 kB / 0.7962 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.5582, allocations: 51.39 kB / 0.7963 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.5582, allocations: 3.469 kB / 0.7963 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.5583, allocations: 36.27 kB / 0.7963 GB, free: 43.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.5584, allocations: 14.19 kB / 0.7963 GB, free: 43.57 MB / 0.6544 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.0001146/0.5585, allocations: 157.8 kB / 0.7965 GB, free: 43.46 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.184e-05/0.5585, allocations: 32.5 kB / 0.7965 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-05/0.5586, allocations: 45.19 kB / 0.7965 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.5586, allocations: 4.5 kB / 0.7965 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5586, allocations: 1.5 kB / 0.7965 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5587, allocations: 3.469 kB / 0.7965 GB, free: 43.43 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.559, allocations: 400.2 kB / 0.7969 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.559, allocations: 0 / 0.7969 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002096/0.5592, allocations: 38.03 kB / 0.797 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.5592, allocations: 0 / 0.797 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.5592, allocations: 7.469 kB / 0.797 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5592, allocations: 3.328 kB / 0.797 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5593, allocations: 0 / 0.797 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005431/0.5598, allocations: 424.4 kB / 0.7974 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.686e-05/0.5599, allocations: 133 kB / 0.7975 GB, free: 42.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.5599, allocations: 4 kB / 0.7975 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.5601, allocations: 22.2 kB / 0.7975 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.5602, allocations: 20.72 kB / 0.7976 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.5602, allocations: 10.33 kB / 0.7976 GB, free: 42.74 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001926/0.5604, allocations: 238.6 kB / 0.7978 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5604, allocations: 7.25 kB / 0.7978 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002978/0.5607, allocations: 64.16 kB / 0.7979 GB, free: 42.59 MB / 0.6544 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 7.77e-05/0.5608, allocations: 103.2 kB / 0.798 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003954/0.5612, allocations: 202 kB / 0.7982 GB, free: 42.44 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5612, allocations: 384 / 0.7982 GB, free: 42.44 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.5614, allocations: 105.7 kB / 0.7983 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.5619, allocations: 83.33 kB / 0.7983 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009746/0.5629, allocations: 0.6862 MB / 0.799 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.5631, allocations: 0.7969 MB / 0.7998 GB, free: 41.27 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.000125/0.5632, allocations: 37.41 kB / 0.7998 GB, free: 41.27 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.5633, allocations: 26.73 kB / 0.7998 GB, free: 41.26 MB / 0.6544 GB Notification: Performance of SimCode: time 4.71e-07/0.5633, allocations: 0 / 0.7998 GB, free: 41.26 MB / 0.6544 GB Notification: Performance of Templates: time 0.006786/0.5701, allocations: 3.185 MB / 0.803 GB, free: 41.11 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)