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.0008543/0.0008543, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.00536/0.00536, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.216/1.216, allocations: 205.4 MB / 222.4 MB, free: 5.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.523/1.523, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0004489/0.0004489, allocations: 13.38 kB / 0.6744 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1686, allocations: 116.3 MB / 0.788 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002482/0.1711, allocations: 2.639 MB / 0.7906 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1723, allocations: 0.9089 MB / 0.7915 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.1724, allocations: 11.94 kB / 0.7915 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1726, allocations: 51.56 kB / 0.7915 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.1727, allocations: 75.42 kB / 0.7916 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.1731, allocations: 203.2 kB / 0.7918 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003486/0.1735, allocations: 455.2 kB / 0.7922 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.1737, allocations: 201.4 kB / 0.7924 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1739, allocations: 127.1 kB / 0.7925 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.174, allocations: 143.1 kB / 0.7927 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.1741, allocations: 12 kB / 0.7927 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.67e-05/0.1741, allocations: 12 kB / 0.7927 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.564e-05/0.1741, allocations: 51.7 kB / 0.7927 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.1743, allocations: 184.5 kB / 0.7929 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.1746, allocations: 450.2 kB / 0.7933 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.1746, allocations: 0 / 0.7933 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.41e-07/0.1746, allocations: 0 / 0.7933 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.1746, allocations: 0 / 0.7933 GB, free: 5.98 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.0007438/0.1753, allocations: 0.6428 MB / 0.794 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.637e-05/0.1754, allocations: 8.031 kB / 0.794 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.1754, allocations: 74.72 kB / 0.794 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.1755, allocations: 48.38 kB / 0.7941 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/0.1759, allocations: 396.4 kB / 0.7945 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.176, allocations: 21.03 kB / 0.7945 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/0.176, allocations: 24.38 kB / 0.7945 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.1765, allocations: 349.2 kB / 0.7948 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1765, allocations: 0 / 0.7948 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1766, allocations: 12 kB / 0.7949 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1766, allocations: 8 kB / 0.7949 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004105/0.177, allocations: 222.1 kB / 0.7951 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.1782, allocations: 1.19 MB / 0.7962 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.1787, allocations: 238.7 kB / 0.7965 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.1789, allocations: 115.5 kB / 0.7966 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.1789, allocations: 4 kB / 0.7966 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.1789, allocations: 38.94 kB / 0.7966 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.1789, allocations: 3.938 kB / 0.7966 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0005603/0.1795, allocations: 303.4 kB / 0.7969 GB, free: 2.102 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.1796, allocations: 110.8 kB / 0.797 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.1799, allocations: 341.6 kB / 0.7973 GB, free: 1.625 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.1799, allocations: 33.7 kB / 0.7974 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.18, allocations: 220.2 kB / 0.7976 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.399e-05/0.1801, allocations: 74.91 kB / 0.7977 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-05/0.1801, allocations: 33.7 kB / 0.7977 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.618e-05/0.1802, allocations: 338.8 kB / 0.798 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.1804, allocations: 79.95 kB / 0.7981 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.1806, allocations: 147.6 kB / 0.7982 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.1809, allocations: 209.2 kB / 0.7984 GB, free: 452 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1809, allocations: 3.938 kB / 0.7984 GB, free: 448 kB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004396/0.1814, allocations: 288.9 kB / 0.7987 GB, free: 152 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/0.1814, allocations: 4 kB / 0.7987 GB, free: 148 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1814, allocations: 11.97 kB / 0.7987 GB, free: 136 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/0.1814, allocations: 0 / 0.7987 GB, free: 136 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.1816, allocations: 55.92 kB / 0.7988 GB, free: 80 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.1816, allocations: 7.984 kB / 0.7988 GB, free: 72 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1818, allocations: 39.95 kB / 0.7988 GB, free: 32 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1818, allocations: 8 kB / 0.7988 GB, free: 24 kB / 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.000139/0.182, allocations: 165.7 kB / 0.799 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.182, allocations: 35.53 kB / 0.799 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.955e-05/0.1821, allocations: 35.36 kB / 0.7991 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1821, allocations: 4 kB / 0.7991 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1821, allocations: 4 kB / 0.7991 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1821, allocations: 3.984 kB / 0.7991 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003407/0.1825, allocations: 397.3 kB / 0.7994 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1825, allocations: 0 / 0.7994 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.1827, allocations: 35.98 kB / 0.7995 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1827, allocations: 0 / 0.7995 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.1827, allocations: 15.98 kB / 0.7995 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1827, allocations: 3.938 kB / 0.7995 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1827, allocations: 0 / 0.7995 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.1833, allocations: 438 kB / 0.7999 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.461e-05/0.1834, allocations: 128.6 kB / 0.8 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.1835, allocations: 15.86 kB / 0.8001 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.1837, allocations: 28.05 kB / 0.8001 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.1837, allocations: 15.97 kB / 0.8001 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1837, allocations: 4 kB / 0.8001 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001939/0.1839, allocations: 239.2 kB / 0.8003 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1839, allocations: 0 / 0.8003 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002732/0.1842, allocations: 63.84 kB / 0.8004 GB, free: 14.33 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.0007657/0.185, allocations: 0.9735 MB / 0.8013 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003722/0.1854, allocations: 209.5 kB / 0.8015 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1854, allocations: 4 kB / 0.8015 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.1856, allocations: 98.53 kB / 0.8016 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.186, allocations: 69.77 kB / 0.8017 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.1895, allocations: 3.333 MB / 0.805 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.1898, allocations: 0.7912 MB / 0.8057 GB, free: 8.691 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001257/0.1899, allocations: 42.94 kB / 0.8058 GB, free: 8.652 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.1901, allocations: 119.4 kB / 0.8059 GB, free: 8.535 MB / 0.6231 GB Notification: Performance of SimCode: time 2.5e-07/0.1901, allocations: 0 / 0.8059 GB, free: 8.535 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.251/2.441, allocations: 6.129 MB / 0.8119 GB, free: 2.562 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/2.442, allocations: 209 kB / 0.8121 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/4.229, allocations: 0 / 0.8121 GB, free: 2.301 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)