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.001126/0.001126, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001105/0.001105, allocations: 192.2 kB / 16.13 MB, free: 6.715 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.122/1.122, allocations: 205.1 MB / 222 MB, free: 4.789 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.469/1.469, allocations: 292.3 MB / 0.5484 GB, free: 13.67 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.001266/0.001266, allocations: 67.73 kB / 0.6709 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1588, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003471/0.1623, allocations: 3.032 MB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1635, allocations: 0.9323 MB / 0.7866 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.1637, allocations: 11.94 kB / 0.7867 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.1638, allocations: 43.58 kB / 0.7867 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.164, allocations: 75.42 kB / 0.7868 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.1644, allocations: 191.8 kB / 0.787 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.1647, allocations: 459.2 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.165, allocations: 205.4 kB / 0.7876 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.1652, allocations: 151.2 kB / 0.7877 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1653, allocations: 163 kB / 0.7879 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.143e-05/0.1654, allocations: 20 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.1654, allocations: 24 kB / 0.7879 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.126e-05/0.1655, allocations: 67.64 kB / 0.788 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1656, allocations: 182.9 kB / 0.7882 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.1659, allocations: 466.3 kB / 0.7886 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1659, allocations: 0 / 0.7886 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.42e-07/0.1659, allocations: 4 kB / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.166, allocations: 0 / 0.7886 GB, free: 7.887 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.000865/0.1668, allocations: 0.709 MB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.1669, allocations: 8.031 kB / 0.7893 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.1669, allocations: 62.72 kB / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.167, allocations: 52.31 kB / 0.7894 GB, free: 7 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.1674, allocations: 384.5 kB / 0.7898 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.1675, allocations: 32.97 kB / 0.7898 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.1675, allocations: 32.38 kB / 0.7899 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.168, allocations: 333.3 kB / 0.7902 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.168, allocations: 7.922 kB / 0.7902 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.1681, allocations: 12 kB / 0.7902 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1681, allocations: 12 kB / 0.7902 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.1685, allocations: 210.1 kB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.1697, allocations: 1.186 MB / 0.7916 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.1702, allocations: 242.7 kB / 0.7918 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1704, allocations: 112.8 kB / 0.7919 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.1705, allocations: 7.984 kB / 0.7919 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.1705, allocations: 30.94 kB / 0.7919 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 2.305e-06/0.1705, allocations: 4 kB / 0.7919 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0005684/0.1711, allocations: 303.7 kB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.1711, allocations: 106.8 kB / 0.7923 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1714, allocations: 337.6 kB / 0.7927 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.1715, allocations: 33.7 kB / 0.7927 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1716, allocations: 216.2 kB / 0.7929 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.541e-05/0.1716, allocations: 74.91 kB / 0.793 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.1717, allocations: 53.7 kB / 0.793 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.1718, allocations: 346.8 kB / 0.7933 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.172, allocations: 75.97 kB / 0.7934 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.1722, allocations: 147.7 kB / 0.7936 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.1725, allocations: 213.2 kB / 0.7938 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1726, allocations: 7.938 kB / 0.7938 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004334/0.173, allocations: 273 kB / 0.794 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.173, allocations: 8 kB / 0.794 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.173, allocations: 0 / 0.794 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.173, allocations: 4.188 kB / 0.794 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1733, allocations: 55.91 kB / 0.7941 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.1733, allocations: 4 kB / 0.7941 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.1734, allocations: 35.75 kB / 0.7941 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.1735, allocations: 12 kB / 0.7941 GB, free: 1.887 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.0001327/0.1736, allocations: 163.5 kB / 0.7943 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.255e-05/0.1737, allocations: 35.53 kB / 0.7943 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.1737, allocations: 43.36 kB / 0.7944 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1737, allocations: 0 / 0.7944 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1737, allocations: 0 / 0.7944 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.1738, allocations: 3.984 kB / 0.7944 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003442/0.1741, allocations: 401.2 kB / 0.7948 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1741, allocations: 0 / 0.7948 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.1743, allocations: 47.91 kB / 0.7948 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1743, allocations: 0 / 0.7948 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.1744, allocations: 8 kB / 0.7948 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1744, allocations: 0 / 0.7948 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1744, allocations: 8 kB / 0.7948 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.175, allocations: 425.7 kB / 0.7952 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.424e-05/0.1751, allocations: 136.5 kB / 0.7954 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.1751, allocations: 8 kB / 0.7954 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.1753, allocations: 19.98 kB / 0.7954 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.1753, allocations: 19.97 kB / 0.7954 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1754, allocations: 7.984 kB / 0.7954 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000195/0.1756, allocations: 239.2 kB / 0.7956 GB, free: 268 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1756, allocations: 0 / 0.7956 GB, free: 268 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002829/0.1759, allocations: 71.75 kB / 0.7957 GB, free: 196 kB / 0.6075 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.0007787/0.1766, allocations: 0.9535 MB / 0.7966 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003715/0.177, allocations: 203.7 kB / 0.7968 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.177, allocations: 4.438 kB / 0.7968 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.1772, allocations: 103.9 kB / 0.7969 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.1777, allocations: 65.39 kB / 0.797 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.1812, allocations: 3.263 MB / 0.8002 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.1815, allocations: 0.795 MB / 0.801 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001339/0.1816, allocations: 42.95 kB / 0.801 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.1818, allocations: 119.4 kB / 0.8011 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of SimCode: time 2.5e-07/0.1818, allocations: 4 kB / 0.8011 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.318/2.5, allocations: 6.231 MB / 0.8072 GB, free: 4.383 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/2.5, allocations: 209.8 kB / 0.8074 GB, free: 4.121 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/5.187, allocations: 7.938 kB / 0.8074 GB, free: 4.113 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)