Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.424/1.424, allocations: 287.4 MB / 302.6 MB, free: 8.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008827/0.0008828, allocations: 175.1 kB / 371.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.122/1.122, allocations: 205.4 MB / 0.6298 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006541/0.0006541, allocations: 94.59 kB / 0.7431 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.000309, allocations: 11.64 kB / 0.8662 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1534, allocations: 115.3 MB / 0.9787 GB, free: 28.14 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002166/0.1556, allocations: 2.531 MB / 0.9812 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1569, allocations: 0.8936 MB / 0.9821 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.1572, allocations: 11.94 kB / 0.9821 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1573, allocations: 47.56 kB / 0.9821 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.1575, allocations: 63.42 kB / 0.9822 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.1578, allocations: 154.1 kB / 0.9823 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.1581, allocations: 435.2 kB / 0.9828 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.1583, allocations: 201.4 kB / 0.9829 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1584, allocations: 127.2 kB / 0.9831 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.1586, allocations: 123.2 kB / 0.9832 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.1586, allocations: 8 kB / 0.9832 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.996e-05/0.1586, allocations: 12 kB / 0.9832 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.1587, allocations: 59.69 kB / 0.9833 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.1587, allocations: 89.45 kB / 0.9833 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1589, allocations: 363.1 kB / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1589, allocations: 0 / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1589, allocations: 8 kB / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.1589, allocations: 0 / 0.9837 GB, free: 23.01 MB / 0.6198 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.0006632/0.1596, allocations: 0.6429 MB / 0.9843 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.1596, allocations: 8.031 kB / 0.9843 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.1597, allocations: 62.72 kB / 0.9844 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.1597, allocations: 48.38 kB / 0.9844 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.1601, allocations: 396.3 kB / 0.9848 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1602, allocations: 21.03 kB / 0.9848 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.1602, allocations: 32.38 kB / 0.9849 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.1606, allocations: 341.2 kB / 0.9852 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1606, allocations: 4 kB / 0.9852 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.1607, allocations: 8 kB / 0.9852 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1607, allocations: 12 kB / 0.9852 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00036/0.161, allocations: 214.1 kB / 0.9854 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.1621, allocations: 1.197 MB / 0.9866 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004321/0.1625, allocations: 242.7 kB / 0.9868 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.1627, allocations: 116.8 kB / 0.9869 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.1627, allocations: 7.938 kB / 0.9869 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.19e-05/0.1627, allocations: 34.94 kB / 0.987 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.1627, allocations: 0 / 0.987 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0005001/0.1632, allocations: 297.1 kB / 0.9873 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.1633, allocations: 106.8 kB / 0.9874 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.1635, allocations: 341.5 kB / 0.9877 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.1635, allocations: 33.69 kB / 0.9877 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/0.1636, allocations: 216.2 kB / 0.9879 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.1637, allocations: 74.92 kB / 0.988 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-06/0.1637, allocations: 4 kB / 0.988 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.1637, allocations: 342.8 kB / 0.9883 GB, free: 18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.1639, allocations: 83.95 kB / 0.9884 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.1641, allocations: 147.6 kB / 0.9885 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.1645, allocations: 209.9 kB / 0.9887 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1645, allocations: 3.938 kB / 0.9887 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004724/0.165, allocations: 281 kB / 0.989 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.165, allocations: 4 kB / 0.989 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.165, allocations: 4 kB / 0.989 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.165, allocations: 8.172 kB / 0.989 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.1653, allocations: 55.92 kB / 0.9891 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.1653, allocations: 7.984 kB / 0.9891 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.1655, allocations: 39.67 kB / 0.9891 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1655, allocations: 8 kB / 0.9891 GB, free: 17.11 MB / 0.6198 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 ($PRE.con.hys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.1657, allocations: 169.7 kB / 0.9893 GB, free: 16.93 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.142e-05/0.1657, allocations: 31.62 kB / 0.9893 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.052e-05/0.1658, allocations: 39.36 kB / 0.9894 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1658, allocations: 4 kB / 0.9894 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.1658, allocations: 0 / 0.9894 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.1658, allocations: 3.984 kB / 0.9894 GB, free: 16.85 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.1661, allocations: 401.2 kB / 0.9898 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1662, allocations: 3.938 kB / 0.9898 GB, free: 16.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.1664, allocations: 39.92 kB / 0.9898 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1664, allocations: 4 kB / 0.9898 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1664, allocations: 11.98 kB / 0.9898 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1664, allocations: 0 / 0.9898 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1664, allocations: 0 / 0.9898 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005959/0.167, allocations: 437.7 kB / 0.9902 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.419e-05/0.1671, allocations: 124.6 kB / 0.9904 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.1672, allocations: 11.98 kB / 0.9904 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.1674, allocations: 19.98 kB / 0.9904 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.1674, allocations: 15.97 kB / 0.9904 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.1675, allocations: 8 kB / 0.9904 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001835/0.1677, allocations: 235.2 kB / 0.9906 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.31e-07/0.1677, allocations: 8.062 kB / 0.9906 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002961/0.168, allocations: 71.69 kB / 0.9907 GB, free: 15.41 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007432/0.1687, allocations: 0.9648 MB / 0.9916 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000406/0.1691, allocations: 199.8 kB / 0.9918 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1691, allocations: 0 / 0.9918 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.1694, allocations: 104.3 kB / 0.9919 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.1699, allocations: 69.31 kB / 0.992 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.1727, allocations: 2.028 MB / 0.994 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.1729, allocations: 0.7992 MB / 0.9948 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001617/0.1731, allocations: 42.95 kB / 0.9948 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.1732, allocations: 119.4 kB / 0.9949 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of SimCode: time 2.61e-07/0.1732, allocations: 3.938 kB / 0.9949 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4526/0.6258, allocations: 6.196 MB / 1.001 GB, free: 4.934 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001309/0.626, allocations: 190.4 kB / 1.001 GB, free: 4.691 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.487, allocations: 0 / 1.001 GB, free: 4.691 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)