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.00166/0.00166, allocations: 102.8 kB / 16.29 MB, free: 6.027 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.002065/0.002065, allocations: 188.8 kB / 17.22 MB, free: 5.633 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.57/1.57, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.951/1.951, allocations: 292.3 MB / 0.5495 GB, free: 17.52 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.001454/0.001454, allocations: 63.91 kB / 0.6722 GB, free: 6.562 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2581, allocations: 114.6 MB / 0.7841 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.005668/0.2638, allocations: 2.978 MB / 0.787 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3973/0.6611, allocations: 0.9516 MB / 0.7879 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004945/0.6617, allocations: 12.56 kB / 0.7879 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.662, allocations: 68.78 kB / 0.788 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002038/0.6622, allocations: 90.16 kB / 0.7881 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.6628, allocations: 217.5 kB / 0.7883 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004119/0.6632, allocations: 493.1 kB / 0.7887 GB, free: 45.87 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.6635, allocations: 211.2 kB / 0.7889 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.6637, allocations: 180.8 kB / 0.7891 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.6639, allocations: 179.8 kB / 0.7893 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.664, allocations: 42 kB / 0.7893 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.664, allocations: 43.5 kB / 0.7894 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.335e-05/0.6641, allocations: 94.94 kB / 0.7895 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.6643, allocations: 202.4 kB / 0.7897 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.6647, allocations: 0.4953 MB / 0.7901 GB, free: 45.63 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.6647, allocations: 0.875 kB / 0.7901 GB, free: 45.63 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.485e-06/0.6647, allocations: 0.5938 kB / 0.7901 GB, free: 45.63 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.353e-05/0.6647, allocations: 0.5312 kB / 0.7901 GB, free: 45.63 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.0009514/0.6657, allocations: 0.717 MB / 0.7908 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.6657, allocations: 10.72 kB / 0.7908 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.418e-05/0.6658, allocations: 49.16 kB / 0.7909 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.6662, allocations: 382.2 kB / 0.7913 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.6662, allocations: 27.72 kB / 0.7913 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.6663, allocations: 26.44 kB / 0.7913 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.6667, allocations: 337.5 kB / 0.7916 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.6668, allocations: 13.38 kB / 0.7916 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.6668, allocations: 10.66 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.6668, allocations: 7.344 kB / 0.7917 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003954/0.6672, allocations: 216.1 kB / 0.7919 GB, free: 44.77 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.6684, allocations: 1.174 MB / 0.793 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.6689, allocations: 238.5 kB / 0.7932 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.6691, allocations: 110.8 kB / 0.7933 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.6692, allocations: 5.906 kB / 0.7934 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.6692, allocations: 33.88 kB / 0.7934 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.6692, allocations: 2.969 kB / 0.7934 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22): time 0.0005948/0.6698, allocations: 303.9 kB / 0.7937 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.6699, allocations: 106.2 kB / 0.7938 GB, free: 43.89 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.6701, allocations: 333.1 kB / 0.7941 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.6702, allocations: 32.14 kB / 0.7941 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.6703, allocations: 226.3 kB / 0.7943 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.6703, allocations: 78.48 kB / 0.7944 GB, free: 43.57 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.955e-05/0.6704, allocations: 55.59 kB / 0.7945 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.233e-05/0.6704, allocations: 343.8 kB / 0.7948 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.6706, allocations: 77.95 kB / 0.7949 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.6708, allocations: 146.1 kB / 0.795 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.6711, allocations: 219.5 kB / 0.7952 GB, free: 43.11 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.6711, allocations: 0 / 0.7952 GB, free: 43.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004149/0.6715, allocations: 283.7 kB / 0.7955 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.6716, allocations: 6.969 kB / 0.7955 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.6716, allocations: 3.5 kB / 0.7955 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.6716, allocations: 3.5 kB / 0.7955 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.6718, allocations: 53.19 kB / 0.7956 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.6718, allocations: 0 / 0.7956 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.672, allocations: 35.8 kB / 0.7956 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.672, allocations: 6.875 kB / 0.7956 GB, free: 43.04 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.0001337/0.6722, allocations: 165.5 kB / 0.7958 GB, free: 42.92 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.157e-05/0.6722, allocations: 36.94 kB / 0.7958 GB, free: 42.9 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.128e-05/0.6723, allocations: 36.62 kB / 0.7958 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.6723, allocations: 3.438 kB / 0.7958 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.6723, allocations: 0.6094 kB / 0.7958 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.6724, allocations: 1.547 kB / 0.7958 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003456/0.6727, allocations: 398 kB / 0.7962 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.6727, allocations: 3.5 kB / 0.7962 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.6729, allocations: 43.28 kB / 0.7963 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.6729, allocations: 0 / 0.7963 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.673, allocations: 10.89 kB / 0.7963 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.673, allocations: 0 / 0.7963 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.673, allocations: 1.875 kB / 0.7963 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.6735, allocations: 428.4 kB / 0.7967 GB, free: 42.53 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.6737, allocations: 132.4 kB / 0.7968 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.6737, allocations: 7.688 kB / 0.7968 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.6739, allocations: 15.06 kB / 0.7968 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.674, allocations: 23.98 kB / 0.7968 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.674, allocations: 5.5 kB / 0.7969 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001996/0.6742, allocations: 237.7 kB / 0.7971 GB, free: 42.33 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6742, allocations: 0 / 0.7971 GB, free: 42.33 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003021/0.6745, allocations: 63.44 kB / 0.7971 GB, free: 42.32 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 9.655e-05/0.6746, allocations: 112.6 kB / 0.7972 GB, free: 42.23 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004061/0.675, allocations: 202.5 kB / 0.7974 GB, free: 42.22 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.675, allocations: 0 / 0.7974 GB, free: 42.22 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.6752, allocations: 99.83 kB / 0.7975 GB, free: 42.22 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.6757, allocations: 81.94 kB / 0.7976 GB, free: 42.21 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.6768, allocations: 0.6895 MB / 0.7983 GB, free: 41.86 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.677, allocations: 0.7926 MB / 0.7991 GB, free: 41.16 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001293/0.6772, allocations: 41.34 kB / 0.7991 GB, free: 41.15 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.6772, allocations: 25.66 kB / 0.7991 GB, free: 41.14 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.6773, allocations: 0 / 0.7991 GB, free: 41.14 MB / 0.6544 GB Notification: Performance of Templates: time 0.007522/0.6848, allocations: 3.183 MB / 0.8022 GB, free: 41 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 cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)