Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",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.0009755/0.0009755, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009134/0.0009134, allocations: 197 kB / 16.53 MB, free: 6.664 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.144/1.144, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.5489 GB, free: 12.84 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.001244/0.001245, allocations: 71.08 kB / 0.6716 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1699, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003769/0.1737, allocations: 3.138 MB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.175, allocations: 1.006 MB / 0.7875 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.1752, allocations: 11.94 kB / 0.7875 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.1754, allocations: 75.19 kB / 0.7876 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.1756, allocations: 95.16 kB / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.1761, allocations: 242.2 kB / 0.7879 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004308/0.1765, allocations: 0.5505 MB / 0.7884 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.1768, allocations: 251.7 kB / 0.7887 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.177, allocations: 211.1 kB / 0.7889 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.1772, allocations: 202.9 kB / 0.7891 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.016e-05/0.1773, allocations: 52 kB / 0.7891 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.917e-05/0.1774, allocations: 52 kB / 0.7892 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.448e-05/0.1774, allocations: 111.6 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.1776, allocations: 238.7 kB / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004328/0.1781, allocations: 0.5528 MB / 0.7901 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1781, allocations: 0 / 0.7901 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1781, allocations: 0 / 0.7901 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.1781, allocations: 0 / 0.7901 GB, free: 6.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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.0009987/0.1791, allocations: 0.7582 MB / 0.7908 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.1791, allocations: 12.03 kB / 0.7908 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.62e-05/0.1792, allocations: 74.72 kB / 0.7909 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.1793, allocations: 60.28 kB / 0.7909 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004638/0.1797, allocations: 420.5 kB / 0.7913 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.1798, allocations: 29.38 kB / 0.7914 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.1798, allocations: 36.38 kB / 0.7914 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.1804, allocations: 397.7 kB / 0.7918 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1804, allocations: 0 / 0.7918 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.937e-05/0.1805, allocations: 19.98 kB / 0.7918 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.1805, allocations: 8 kB / 0.7918 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.181, allocations: 263.8 kB / 0.7921 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.1824, allocations: 1.316 MB / 0.7933 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.183, allocations: 320.7 kB / 0.7937 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.1833, allocations: 145.7 kB / 0.7938 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.1833, allocations: 0 / 0.7938 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.1836, allocations: 181.5 kB / 0.794 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/0.1836, allocations: 4 kB / 0.794 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33): time 0.0006864/0.1843, allocations: 371 kB / 0.7943 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.1844, allocations: 89.11 kB / 0.7944 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.1847, allocations: 349.6 kB / 0.7947 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.1847, allocations: 33.7 kB / 0.7948 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.1849, allocations: 240.8 kB / 0.795 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.185, allocations: 106.5 kB / 0.7951 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.236e-05/0.1851, allocations: 77.95 kB / 0.7952 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1852, allocations: 350.8 kB / 0.7955 GB, free: 0.7461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1854, allocations: 100.7 kB / 0.7956 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.1856, allocations: 176.3 kB / 0.7958 GB, free: 464 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.186, allocations: 255.8 kB / 0.796 GB, free: 188 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1861, allocations: 3.938 kB / 0.796 GB, free: 184 kB / 0.6075 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005461/0.1866, allocations: 346.3 kB / 0.7964 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.1866, allocations: 8 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1866, allocations: 4.188 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1867, allocations: 4 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.1869, allocations: 63.91 kB / 0.7964 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1869, allocations: 4 kB / 0.7964 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.1871, allocations: 35.67 kB / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.1871, allocations: 16 kB / 0.7965 GB, free: 15.7 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0001568/0.1873, allocations: 169.7 kB / 0.7966 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.1873, allocations: 51.52 kB / 0.7967 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.1874, allocations: 40.25 kB / 0.7967 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1874, allocations: 4 kB / 0.7967 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1874, allocations: 4 kB / 0.7967 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1874, allocations: 3.938 kB / 0.7967 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009444/0.1884, allocations: 0.8113 MB / 0.7975 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1884, allocations: 4 kB / 0.7975 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.1886, allocations: 51.91 kB / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1886, allocations: 4 kB / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.1887, allocations: 4 kB / 0.7976 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1887, allocations: 0 / 0.7976 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1887, allocations: 4 kB / 0.7976 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007186/0.1894, allocations: 0.5111 MB / 0.7981 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1895, allocations: 136.6 kB / 0.7982 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.26e-05/0.1896, allocations: 11.98 kB / 0.7982 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.1897, allocations: 15.98 kB / 0.7983 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.1898, allocations: 23.97 kB / 0.7983 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.1898, allocations: 4 kB / 0.7983 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002102/0.19, allocations: 247.1 kB / 0.7985 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.19, allocations: 0 / 0.7985 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000302/0.1904, allocations: 91.75 kB / 0.7986 GB, free: 13.43 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009746/0.1913, allocations: 1.07 MB / 0.7997 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000526/0.1919, allocations: 280 kB / 0.7999 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1919, allocations: 4 kB / 0.7999 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.1921, allocations: 135.8 kB / 0.8001 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.1926, allocations: 95.16 kB / 0.8001 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.1965, allocations: 3.478 MB / 0.8035 GB, free: 8.238 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.1968, allocations: 0.8152 MB / 0.8043 GB, free: 7.395 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001507/0.197, allocations: 47.25 kB / 0.8044 GB, free: 7.348 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.1971, allocations: 143.3 kB / 0.8045 GB, free: 7.207 MB / 0.6231 GB Notification: Performance of SimCode: time 3.3e-07/0.1971, allocations: 0 / 0.8045 GB, free: 7.207 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.601/1.798, allocations: 7.316 MB / 0.8117 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/9.576, allocations: 5.234 kB / 0.8117 GB, free: 15.98 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)