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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.144/1.144, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.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.484/1.484, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.00149/0.00149, allocations: 68.66 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1594, allocations: 114.6 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003549/0.163, allocations: 2.975 MB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.1642, allocations: 0.9556 MB / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1644, allocations: 11.94 kB / 0.7873 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.1646, allocations: 63.33 kB / 0.7874 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1647, allocations: 91.16 kB / 0.7875 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.1651, allocations: 212.6 kB / 0.7877 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.1655, allocations: 495.2 kB / 0.7881 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/0.1658, allocations: 221.8 kB / 0.7884 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.166, allocations: 167.2 kB / 0.7885 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.1661, allocations: 187 kB / 0.7887 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.123e-05/0.1662, allocations: 40 kB / 0.7887 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.061e-05/0.1662, allocations: 44 kB / 0.7888 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.461e-05/0.1663, allocations: 91.64 kB / 0.7889 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1664, allocations: 198.9 kB / 0.789 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.1668, allocations: 494.4 kB / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1668, allocations: 0 / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1668, allocations: 3.938 kB / 0.7895 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.1668, allocations: 0 / 0.7895 GB, free: 7.133 MB / 0.6075 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.0008661/0.1677, allocations: 0.7113 MB / 0.7902 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.1677, allocations: 12.03 kB / 0.7902 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.699e-05/0.1678, allocations: 62.72 kB / 0.7903 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.1679, allocations: 52.38 kB / 0.7903 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.1683, allocations: 388.4 kB / 0.7907 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.1683, allocations: 25.03 kB / 0.7907 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.1684, allocations: 24.38 kB / 0.7908 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.1689, allocations: 345.2 kB / 0.7911 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1689, allocations: 0 / 0.7911 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.1689, allocations: 16 kB / 0.7911 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.1689, allocations: 8 kB / 0.7911 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004061/0.1694, allocations: 222.1 kB / 0.7913 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.1706, allocations: 1.186 MB / 0.7925 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.1711, allocations: 230.8 kB / 0.7927 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.1713, allocations: 123.2 kB / 0.7928 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1713, allocations: 4 kB / 0.7928 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.1713, allocations: 34.94 kB / 0.7929 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.163e-06/0.1713, allocations: 0 / 0.7929 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0005581/0.1719, allocations: 297 kB / 0.7931 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.1719, allocations: 110.8 kB / 0.7932 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.1722, allocations: 333.6 kB / 0.7936 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.1722, allocations: 37.64 kB / 0.7936 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.1724, allocations: 224.2 kB / 0.7938 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.1724, allocations: 70.91 kB / 0.7939 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.999e-05/0.1725, allocations: 53.7 kB / 0.7939 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.1726, allocations: 346.8 kB / 0.7943 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1728, allocations: 75.97 kB / 0.7943 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1729, allocations: 139.7 kB / 0.7945 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.1733, allocations: 217.2 kB / 0.7947 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1733, allocations: 3.938 kB / 0.7947 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004252/0.1737, allocations: 281 kB / 0.7949 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.1737, allocations: 8 kB / 0.795 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.1737, allocations: 0 / 0.795 GB, free: 1.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.1738, allocations: 4 kB / 0.795 GB, free: 1.238 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.174, allocations: 55.91 kB / 0.795 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.174, allocations: 4.188 kB / 0.795 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.1741, allocations: 35.77 kB / 0.795 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1742, allocations: 11.94 kB / 0.7951 GB, free: 1.133 MB / 0.6075 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.0001236/0.1743, allocations: 161.7 kB / 0.7952 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.1744, allocations: 35.53 kB / 0.7952 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.1744, allocations: 43.34 kB / 0.7953 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1744, allocations: 4 kB / 0.7953 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1744, allocations: 0 / 0.7953 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1745, allocations: 4 kB / 0.7953 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.1748, allocations: 401.2 kB / 0.7957 GB, free: 444 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1748, allocations: 0 / 0.7957 GB, free: 444 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.175, allocations: 43.91 kB / 0.7957 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.175, allocations: 0 / 0.7957 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.175, allocations: 4 kB / 0.7957 GB, free: 396 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.175, allocations: 4 kB / 0.7957 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.175, allocations: 7.922 kB / 0.7957 GB, free: 384 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000572/0.1756, allocations: 426.3 kB / 0.7961 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.312e-05/0.1757, allocations: 132.6 kB / 0.7963 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.1758, allocations: 7.938 kB / 0.7963 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.1759, allocations: 19.98 kB / 0.7963 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.176, allocations: 15.97 kB / 0.7963 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.176, allocations: 12 kB / 0.7963 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001873/0.1762, allocations: 239.2 kB / 0.7965 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1762, allocations: 4 kB / 0.7966 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002736/0.1765, allocations: 63.84 kB / 0.7966 GB, free: 15.44 MB / 0.6231 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.000736/0.1772, allocations: 0.9618 MB / 0.7976 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004025/0.1776, allocations: 209.4 kB / 0.7978 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1776, allocations: 0 / 0.7978 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.1778, allocations: 106.7 kB / 0.7979 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.1783, allocations: 84.66 kB / 0.7979 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.1815, allocations: 3.134 MB / 0.801 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.1817, allocations: 0.7912 MB / 0.8018 GB, free: 10 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001272/0.1818, allocations: 34.97 kB / 0.8018 GB, free: 9.973 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.182, allocations: 127.4 kB / 0.8019 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.182, allocations: 0 / 0.8019 GB, free: 9.848 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.806/1.988, allocations: 6.549 MB / 0.8083 GB, free: 3.402 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/15.27, allocations: 11.75 kB / 0.8083 GB, free: 3.395 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)