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.001546/0.001547, allocations: 112.7 kB / 16.37 MB, free: 6.012 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.001573/0.001573, allocations: 188.8 kB / 17.31 MB, free: 5.609 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.469/1.469, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.819/1.819, allocations: 292.3 MB / 0.5496 GB, free: 17.56 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.001405/0.001405, allocations: 68.11 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2561, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004364/0.2605, allocations: 2.981 MB / 0.7877 GB, free: 180 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.438/0.6986, allocations: 0.943 MB / 0.7886 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002975/0.6989, allocations: 11.09 kB / 0.7886 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002485/0.6992, allocations: 69.77 kB / 0.7887 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.6995, allocations: 87.94 kB / 0.7888 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.7, allocations: 216.7 kB / 0.789 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000399/0.7004, allocations: 492.2 kB / 0.7895 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/0.7007, allocations: 215.9 kB / 0.7897 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.7009, allocations: 179.7 kB / 0.7898 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.7011, allocations: 180.2 kB / 0.79 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.5e-05/0.7012, allocations: 46.47 kB / 0.79 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 4.751e-05/0.7013, allocations: 42.94 kB / 0.7901 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/0.7013, allocations: 94.33 kB / 0.7902 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.7015, allocations: 198.3 kB / 0.7904 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.7019, allocations: 0.4945 MB / 0.7909 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.7019, allocations: 1.5 kB / 0.7909 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7019, allocations: 2.906 kB / 0.7909 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.7019, allocations: 0 / 0.7909 GB, free: 46.23 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.0009397/0.7029, allocations: 0.7106 MB / 0.7915 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.7029, allocations: 10.5 kB / 0.7916 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.703, allocations: 48 kB / 0.7916 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.7035, allocations: 402.9 kB / 0.792 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.7035, allocations: 22.06 kB / 0.792 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.112e-05/0.7036, allocations: 29.06 kB / 0.792 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004898/0.7041, allocations: 341.9 kB / 0.7924 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.7041, allocations: 7.031 kB / 0.7924 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.7041, allocations: 11.19 kB / 0.7924 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.7041, allocations: 7.875 kB / 0.7924 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004244/0.7046, allocations: 214.7 kB / 0.7926 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.7058, allocations: 1.183 MB / 0.7937 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.7063, allocations: 234.8 kB / 0.794 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.7065, allocations: 117.2 kB / 0.7941 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.7066, allocations: 3.344 kB / 0.7941 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.7066, allocations: 34.08 kB / 0.7941 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.7066, allocations: 0 / 0.7941 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22): time 0.0006526/0.7073, allocations: 299.3 kB / 0.7944 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.7073, allocations: 108.7 kB / 0.7945 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.7077, allocations: 338.8 kB / 0.7948 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.7077, allocations: 28.45 kB / 0.7949 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.7079, allocations: 220.5 kB / 0.7951 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.708, allocations: 78.66 kB / 0.7951 GB, free: 44.17 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.11e-05/0.7081, allocations: 55.83 kB / 0.7952 GB, free: 44.15 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.7082, allocations: 345.7 kB / 0.7955 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.7084, allocations: 77.86 kB / 0.7956 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.7086, allocations: 149.8 kB / 0.7957 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.709, allocations: 214.6 kB / 0.7959 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.709, allocations: 3.5 kB / 0.796 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004927/0.7095, allocations: 275.5 kB / 0.7962 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.7095, allocations: 11.33 kB / 0.7962 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.7096, allocations: 3.469 kB / 0.7962 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.7096, allocations: 0 / 0.7962 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.7098, allocations: 53.38 kB / 0.7963 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.7098, allocations: 5.688 kB / 0.7963 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.71, allocations: 36.28 kB / 0.7963 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.7101, allocations: 10.47 kB / 0.7963 GB, free: 43.63 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.0001483/0.7102, allocations: 168.3 kB / 0.7965 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.367e-05/0.7103, allocations: 32.75 kB / 0.7965 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.851e-05/0.7104, allocations: 36.88 kB / 0.7966 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.7104, allocations: 3.375 kB / 0.7966 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.7104, allocations: 1.875 kB / 0.7966 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.7104, allocations: 7.328 kB / 0.7966 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.7108, allocations: 393.8 kB / 0.7969 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.7108, allocations: 5.5 kB / 0.7969 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.711, allocations: 41.77 kB / 0.797 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.711, allocations: 3.938 kB / 0.797 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.711, allocations: 7.469 kB / 0.797 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.711, allocations: 3.344 kB / 0.797 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.711, allocations: 0 / 0.797 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005761/0.7116, allocations: 425.1 kB / 0.7974 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.7117, allocations: 129.5 kB / 0.7975 GB, free: 42.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.7118, allocations: 7.406 kB / 0.7975 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.712, allocations: 17.58 kB / 0.7976 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.712, allocations: 16.05 kB / 0.7976 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.712, allocations: 7.469 kB / 0.7976 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001875/0.7122, allocations: 240.7 kB / 0.7978 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7122, allocations: 0 / 0.7978 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003005/0.7125, allocations: 64.03 kB / 0.7979 GB, free: 42.66 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 0.0001014/0.7127, allocations: 112.2 kB / 0.798 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000413/0.7131, allocations: 197.4 kB / 0.7982 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.7131, allocations: 5.875 kB / 0.7982 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.7133, allocations: 102.8 kB / 0.7983 GB, free: 42.47 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.7138, allocations: 83.97 kB / 0.7983 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.7149, allocations: 0.7197 MB / 0.7991 GB, free: 42.01 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.7151, allocations: 0.7953 MB / 0.7998 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.398e-05/0.7152, allocations: 31.27 kB / 0.7999 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of SimCode: time 3.3e-07/0.7152, allocations: 2.625 kB / 0.7999 GB, free: 41.3 MB / 0.6544 GB Notification: Performance of Templates: time 0.008075/0.7233, allocations: 4.214 MB / 0.804 GB, free: 40.99 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)