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.0006967/0.0006967, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0007285/0.0007285, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.165/1.165, allocations: 205.4 MB / 222.1 MB, free: 5.742 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.512/1.512, allocations: 292.7 MB / 0.5499 GB, free: 14.52 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.000439/0.000439, allocations: 14.44 kB / 0.6738 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1709, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002561/0.1735, allocations: 2.531 MB / 0.7899 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1748, allocations: 0.9015 MB / 0.7907 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.175, allocations: 11.94 kB / 0.7907 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.1751, allocations: 47.56 kB / 0.7908 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.1753, allocations: 63.44 kB / 0.7909 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.1757, allocations: 146.8 kB / 0.791 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.176, allocations: 435.3 kB / 0.7914 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.1763, allocations: 149 kB / 0.7916 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.1764, allocations: 123.2 kB / 0.7917 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.1766, allocations: 131.2 kB / 0.7918 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.1766, allocations: 12 kB / 0.7918 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.728e-05/0.1766, allocations: 8 kB / 0.7918 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.1767, allocations: 55.66 kB / 0.7919 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.1767, allocations: 89.52 kB / 0.792 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.177, allocations: 363.3 kB / 0.7923 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.177, allocations: 0 / 0.7923 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.103e-06/0.177, allocations: 3.938 kB / 0.7923 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.177, allocations: 0 / 0.7923 GB, free: 6.746 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.0007934/0.1778, allocations: 0.657 MB / 0.7929 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1779, allocations: 16.03 kB / 0.793 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.152e-05/0.1779, allocations: 66.53 kB / 0.793 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.178, allocations: 51.38 kB / 0.7931 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004487/0.1785, allocations: 379.4 kB / 0.7934 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1785, allocations: 20.66 kB / 0.7935 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.1785, allocations: 32 kB / 0.7935 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.179, allocations: 337.1 kB / 0.7938 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1791, allocations: 0 / 0.7938 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1791, allocations: 12 kB / 0.7938 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.1791, allocations: 8 kB / 0.7938 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004019/0.1795, allocations: 222.1 kB / 0.794 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.1808, allocations: 1.19 MB / 0.7952 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/0.1813, allocations: 240.7 kB / 0.7954 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.1815, allocations: 113.2 kB / 0.7955 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.1815, allocations: 4.172 kB / 0.7955 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.1815, allocations: 42.75 kB / 0.7956 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 2.324e-06/0.1816, allocations: 3.984 kB / 0.7956 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0005631/0.1821, allocations: 291.6 kB / 0.7959 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.1822, allocations: 106.8 kB / 0.796 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1825, allocations: 341.6 kB / 0.7963 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1825, allocations: 29.7 kB / 0.7963 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.1827, allocations: 224.2 kB / 0.7965 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.1827, allocations: 82.83 kB / 0.7966 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.148e-05/0.1827, allocations: 4 kB / 0.7966 GB, free: 2.066 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1828, allocations: 342.8 kB / 0.7969 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.183, allocations: 75.97 kB / 0.797 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.1832, allocations: 143.7 kB / 0.7971 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.1834, allocations: 91.3 kB / 0.7972 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1834, allocations: 0 / 0.7972 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004257/0.1838, allocations: 281.2 kB / 0.7975 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.1838, allocations: 8 kB / 0.7975 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1839, allocations: 3.984 kB / 0.7975 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1839, allocations: 4 kB / 0.7975 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.1841, allocations: 55.92 kB / 0.7976 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1841, allocations: 11.88 kB / 0.7976 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.1843, allocations: 43.67 kB / 0.7976 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.1843, allocations: 15.94 kB / 0.7976 GB, free: 0.9727 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 ($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.0001373/0.1844, allocations: 161.8 kB / 0.7978 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.1845, allocations: 31.62 kB / 0.7978 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.938e-05/0.1846, allocations: 39.36 kB / 0.7979 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.1846, allocations: 8 kB / 0.7979 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1846, allocations: 0 / 0.7979 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1846, allocations: 7.938 kB / 0.7979 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.185, allocations: 393.2 kB / 0.7983 GB, free: 284 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.185, allocations: 0 / 0.7983 GB, free: 284 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.1852, allocations: 43.92 kB / 0.7983 GB, free: 240 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1852, allocations: 0 / 0.7983 GB, free: 240 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1852, allocations: 11.98 kB / 0.7983 GB, free: 228 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1852, allocations: 0 / 0.7983 GB, free: 228 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1852, allocations: 0 / 0.7983 GB, free: 228 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.1858, allocations: 433.9 kB / 0.7987 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.1859, allocations: 124.7 kB / 0.7988 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.186, allocations: 11.98 kB / 0.7989 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1861, allocations: 19.98 kB / 0.7989 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.1862, allocations: 15.97 kB / 0.7989 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.1862, allocations: 16 kB / 0.7989 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001988/0.1864, allocations: 235.2 kB / 0.7991 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1864, allocations: 0 / 0.7991 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002943/0.1867, allocations: 71.75 kB / 0.7992 GB, free: 15.29 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 (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.0007826/0.1875, allocations: 0.9657 MB / 0.8001 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003761/0.1879, allocations: 203.2 kB / 0.8003 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1879, allocations: 4 kB / 0.8003 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.1881, allocations: 103.8 kB / 0.8004 GB, free: 14 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.1886, allocations: 69.38 kB / 0.8005 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.1913, allocations: 2.039 MB / 0.8025 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1916, allocations: 0.7953 MB / 0.8033 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001439/0.1917, allocations: 38.95 kB / 0.8033 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.1919, allocations: 123.3 kB / 0.8034 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of SimCode: time 2.41e-07/0.1919, allocations: 0 / 0.8034 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01512/0.207, allocations: 6.205 MB / 0.8095 GB, free: 4.797 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/0.2072, allocations: 198.8 kB / 0.8097 GB, free: 4.547 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.773, allocations: 0 / 0.8097 GB, free: 4.547 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/linux/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) Environment - environmentSimulation: