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.001204/0.001204, allocations: 102.1 kB / 16.27 MB, free: 6.348 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.001165/0.001165, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.485/1.485, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.809/1.809, allocations: 292.3 MB / 0.5495 GB, free: 17.43 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.001441/0.001441, allocations: 72.31 kB / 0.6722 GB, free: 6.578 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2713, allocations: 114.6 MB / 0.784 GB, free: 3.91 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.005243/0.2766, allocations: 2.98 MB / 0.7869 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5007/0.7773, allocations: 0.9489 MB / 0.7879 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005591/0.7779, allocations: 13.56 kB / 0.7879 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.7782, allocations: 66.14 kB / 0.7879 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.7784, allocations: 87.8 kB / 0.788 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.779, allocations: 217.5 kB / 0.7882 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.7794, allocations: 495.5 kB / 0.7887 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.7797, allocations: 209.5 kB / 0.7889 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.7799, allocations: 182.6 kB / 0.7891 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.7801, allocations: 177.5 kB / 0.7892 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.7802, allocations: 41.62 kB / 0.7893 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.064e-05/0.7802, allocations: 45.75 kB / 0.7893 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.635e-05/0.7803, allocations: 95.98 kB / 0.7894 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.7804, allocations: 199.8 kB / 0.7896 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.7809, allocations: 487.1 kB / 0.7901 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.7809, allocations: 0 / 0.7901 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.465e-06/0.7809, allocations: 2.406 kB / 0.7901 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.7809, allocations: 3.656 kB / 0.7901 GB, free: 45.62 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.0009351/0.7818, allocations: 0.7106 MB / 0.7908 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.7819, allocations: 10.81 kB / 0.7908 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.451e-05/0.782, allocations: 47.59 kB / 0.7908 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.7824, allocations: 388 kB / 0.7912 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.7825, allocations: 27.75 kB / 0.7912 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.7825, allocations: 29.06 kB / 0.7912 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.783, allocations: 336 kB / 0.7916 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.783, allocations: 8.344 kB / 0.7916 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.7831, allocations: 16.69 kB / 0.7916 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.7831, allocations: 6.188 kB / 0.7916 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004078/0.7835, allocations: 214.4 kB / 0.7918 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.7847, allocations: 1.185 MB / 0.793 GB, free: 44.13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.7853, allocations: 241.5 kB / 0.7932 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.7854, allocations: 112.1 kB / 0.7933 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.7855, allocations: 0 / 0.7933 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.7855, allocations: 40.88 kB / 0.7933 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=22): time 9.22e-07/0.7855, allocations: 0 / 0.7933 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22): time 0.000576/0.7861, allocations: 297.1 kB / 0.7936 GB, free: 44 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.7862, allocations: 105.3 kB / 0.7937 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.7864, allocations: 336.8 kB / 0.794 GB, free: 43.76 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.7865, allocations: 30.8 kB / 0.7941 GB, free: 43.73 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.7866, allocations: 221.7 kB / 0.7943 GB, free: 43.61 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.7866, allocations: 77 kB / 0.7944 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.697e-05/0.7867, allocations: 57.47 kB / 0.7944 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.7868, allocations: 345.8 kB / 0.7947 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.787, allocations: 73.84 kB / 0.7948 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.7871, allocations: 152.2 kB / 0.795 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.7875, allocations: 211.9 kB / 0.7952 GB, free: 43.09 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.7875, allocations: 4 kB / 0.7952 GB, free: 43.09 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004223/0.7879, allocations: 278.2 kB / 0.7954 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.7879, allocations: 8.984 kB / 0.7954 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.7879, allocations: 0 / 0.7954 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.788, allocations: 6.922 kB / 0.7954 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.7882, allocations: 53.02 kB / 0.7955 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.7882, allocations: 11.88 kB / 0.7955 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.7883, allocations: 35.38 kB / 0.7955 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.7884, allocations: 11.16 kB / 0.7955 GB, free: 43.02 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.0001281/0.7885, allocations: 157.3 kB / 0.7957 GB, free: 42.91 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.7886, allocations: 36.94 kB / 0.7957 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.49e-05/0.7887, allocations: 42.06 kB / 0.7958 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.7887, allocations: 0 / 0.7958 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.7887, allocations: 8.875 kB / 0.7958 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.7887, allocations: 1.828 kB / 0.7958 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.7891, allocations: 394 kB / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.7891, allocations: 7.406 kB / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.7893, allocations: 41.05 kB / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.7893, allocations: 0 / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.7893, allocations: 6.703 kB / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.7893, allocations: 3.562 kB / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7893, allocations: 0 / 0.7962 GB, free: 42.67 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.7899, allocations: 428.1 kB / 0.7966 GB, free: 42.51 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.79, allocations: 134.9 kB / 0.7968 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.7901, allocations: 3.469 kB / 0.7968 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.7902, allocations: 17.38 kB / 0.7968 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.265e-05/0.7903, allocations: 17.34 kB / 0.7968 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.7903, allocations: 11.03 kB / 0.7968 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001837/0.7905, allocations: 240 kB / 0.797 GB, free: 42.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7905, allocations: 0.5625 kB / 0.797 GB, free: 42.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003067/0.7908, allocations: 63.62 kB / 0.7971 GB, free: 42.3 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.0001013/0.7909, allocations: 107.2 kB / 0.7972 GB, free: 42.21 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004296/0.7914, allocations: 216.7 kB / 0.7974 GB, free: 42.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7914, allocations: 0 / 0.7974 GB, free: 42.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.7916, allocations: 98.55 kB / 0.7975 GB, free: 42.2 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.7921, allocations: 78.66 kB / 0.7976 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.7933, allocations: 0.7257 MB / 0.7983 GB, free: 41.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.7935, allocations: 0.7948 MB / 0.7991 GB, free: 41.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.7936, allocations: 27.78 kB / 0.7991 GB, free: 41.09 MB / 0.6544 GB Notification: Performance of SimCode: time 5.01e-07/0.7936, allocations: 0 / 0.7991 GB, free: 41.09 MB / 0.6544 GB Notification: Performance of Templates: time 0.008138/0.8018, allocations: 4.222 MB / 0.8032 GB, free: 40.82 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)