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.0009452/0.0009452, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009491/0.0009491, allocations: 189.4 kB / 16.25 MB, free: 6.633 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.171/1.171, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.525/1.525, allocations: 292.3 MB / 0.5486 GB, free: 13.63 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.001576/0.001576, allocations: 64.91 kB / 0.6711 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1662, allocations: 114.6 MB / 0.783 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003444/0.1697, allocations: 3.02 MB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.1709, allocations: 0.9361 MB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.1711, allocations: 11.94 kB / 0.7868 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.1713, allocations: 47.58 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.1714, allocations: 75.42 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.1718, allocations: 200.3 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.1722, allocations: 491.2 kB / 0.7876 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002858/0.1725, allocations: 213.8 kB / 0.7878 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1727, allocations: 183.2 kB / 0.788 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.1729, allocations: 179 kB / 0.7882 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.703e-05/0.1729, allocations: 44 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.615e-05/0.173, allocations: 44 kB / 0.7883 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.924e-05/0.173, allocations: 87.64 kB / 0.7883 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.1732, allocations: 202.9 kB / 0.7885 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.1735, allocations: 490.4 kB / 0.789 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1735, allocations: 4 kB / 0.789 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1736, allocations: 0 / 0.789 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.1736, allocations: 0 / 0.789 GB, free: 7.609 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.000875/0.1744, allocations: 0.7128 MB / 0.7897 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.1745, allocations: 8.031 kB / 0.7897 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.3e-05/0.1745, allocations: 62.72 kB / 0.7898 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.1746, allocations: 48.38 kB / 0.7898 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.1751, allocations: 392.4 kB / 0.7902 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1751, allocations: 25.03 kB / 0.7902 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.1751, allocations: 28.38 kB / 0.7902 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004884/0.1756, allocations: 341.2 kB / 0.7906 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1757, allocations: 0 / 0.7906 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.1757, allocations: 16 kB / 0.7906 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1757, allocations: 8 kB / 0.7906 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.1761, allocations: 218.1 kB / 0.7908 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1773, allocations: 1.186 MB / 0.7919 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004902/0.1778, allocations: 230.8 kB / 0.7922 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.178, allocations: 116.8 kB / 0.7923 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.1781, allocations: 7.938 kB / 0.7923 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.1781, allocations: 30.94 kB / 0.7923 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.183e-06/0.1781, allocations: 0 / 0.7923 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0005603/0.1787, allocations: 304.5 kB / 0.7926 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.1787, allocations: 110.8 kB / 0.7927 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.179, allocations: 337.6 kB / 0.793 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.179, allocations: 33.7 kB / 0.7931 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1792, allocations: 216.2 kB / 0.7933 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.573e-05/0.1792, allocations: 78.89 kB / 0.7933 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.191e-05/0.1793, allocations: 53.7 kB / 0.7934 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1794, allocations: 346.8 kB / 0.7937 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1796, allocations: 79.91 kB / 0.7938 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.1798, allocations: 139.7 kB / 0.7939 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.1801, allocations: 209.2 kB / 0.7941 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1801, allocations: 7.938 kB / 0.7941 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004482/0.1806, allocations: 280.9 kB / 0.7944 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.1806, allocations: 8 kB / 0.7944 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1806, allocations: 0 / 0.7944 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.1806, allocations: 4 kB / 0.7944 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.1809, allocations: 51.91 kB / 0.7945 GB, free: 1.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1809, allocations: 4.188 kB / 0.7945 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.181, allocations: 39.77 kB / 0.7945 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1811, allocations: 8 kB / 0.7945 GB, free: 1.613 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.0001335/0.1812, allocations: 161.7 kB / 0.7947 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.1813, allocations: 39.52 kB / 0.7947 GB, free: 1.406 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.917e-05/0.1813, allocations: 39.36 kB / 0.7948 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1813, allocations: 0 / 0.7948 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1813, allocations: 4 kB / 0.7948 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1814, allocations: 4 kB / 0.7948 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.1817, allocations: 397.2 kB / 0.7951 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1817, allocations: 0 / 0.7951 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.1819, allocations: 47.91 kB / 0.7952 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1819, allocations: 0 / 0.7952 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.182, allocations: 8 kB / 0.7952 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.182, allocations: 0 / 0.7952 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.182, allocations: 0 / 0.7952 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000584/0.1826, allocations: 430.9 kB / 0.7956 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1827, allocations: 132.6 kB / 0.7957 GB, free: 284 kB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.1827, allocations: 4 kB / 0.7957 GB, free: 280 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1829, allocations: 11.98 kB / 0.7957 GB, free: 268 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.1829, allocations: 23.95 kB / 0.7958 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.183, allocations: 12.06 kB / 0.7958 GB, free: 232 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002048/0.1832, allocations: 243.2 kB / 0.796 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.1832, allocations: 0 / 0.796 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002772/0.1835, allocations: 75.69 kB / 0.7961 GB, free: 15.91 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.0007966/0.1843, allocations: 0.965 MB / 0.797 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004142/0.1847, allocations: 209.4 kB / 0.7972 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1847, allocations: 0 / 0.7972 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.1849, allocations: 100.3 kB / 0.7973 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.1853, allocations: 75.89 kB / 0.7974 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.1889, allocations: 3.266 MB / 0.8006 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.1892, allocations: 0.7912 MB / 0.8014 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000129/0.1893, allocations: 34.97 kB / 0.8014 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.1895, allocations: 123.4 kB / 0.8015 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.1895, allocations: 0 / 0.8015 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9809/1.17, allocations: 6.401 MB / 0.8078 GB, free: 3.953 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/1.171, allocations: 213.6 kB / 0.808 GB, free: 3.688 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.93, allocations: 0 / 0.808 GB, free: 3.688 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)