Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.406/1.406, allocations: 287.4 MB / 302.6 MB, free: 8.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008273/0.0008273, allocations: 190.5 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.111/1.111, allocations: 205.4 MB / 0.6298 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006945/0.0006946, allocations: 90.34 kB / 0.7431 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003123, allocations: 9.594 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1441, allocations: 115.3 MB / 0.9787 GB, free: 28.13 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.002178/0.1464, allocations: 2.659 MB / 0.9813 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.1475, allocations: 0.9479 MB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1476, allocations: 11.94 kB / 0.9823 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.1478, allocations: 47.56 kB / 0.9823 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1479, allocations: 63.42 kB / 0.9824 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.1483, allocations: 174.4 kB / 0.9825 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000295/0.1486, allocations: 0.4919 MB / 0.983 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.1489, allocations: 231.6 kB / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.149, allocations: 143.2 kB / 0.9834 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1491, allocations: 143.1 kB / 0.9835 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.406e-05/0.1492, allocations: 20 kB / 0.9835 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.399e-05/0.1492, allocations: 12 kB / 0.9835 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.989e-05/0.1492, allocations: 55.7 kB / 0.9836 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.03e-05/0.1493, allocations: 101.5 kB / 0.9837 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.1495, allocations: 426.8 kB / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1496, allocations: 0 / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1496, allocations: 0 / 0.9841 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.1496, allocations: 0 / 0.9841 GB, free: 22.6 MB / 0.6198 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.0007443/0.1503, allocations: 0.6882 MB / 0.9848 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.1504, allocations: 8.031 kB / 0.9848 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.1504, allocations: 82.66 kB / 0.9848 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.889e-05/0.1505, allocations: 52.38 kB / 0.9849 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.1509, allocations: 408.6 kB / 0.9853 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1509, allocations: 33.36 kB / 0.9853 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.065e-05/0.151, allocations: 36.38 kB / 0.9854 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004757/0.1514, allocations: 397.7 kB / 0.9857 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1515, allocations: 0 / 0.9857 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.1515, allocations: 19.98 kB / 0.9858 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1515, allocations: 12 kB / 0.9858 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.1519, allocations: 263.8 kB / 0.986 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1531, allocations: 1.332 MB / 0.9873 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/0.1537, allocations: 310.6 kB / 0.9876 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.1539, allocations: 137.3 kB / 0.9877 GB, free: 18.65 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1539, allocations: 4.547 kB / 0.9877 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.1542, allocations: 189.4 kB / 0.9879 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=33): time 1.633e-06/0.1542, allocations: 4 kB / 0.9879 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=33): time 0.000594/0.1548, allocations: 381.8 kB / 0.9883 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.1548, allocations: 81.11 kB / 0.9884 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.1551, allocations: 345.6 kB / 0.9887 GB, free: 17.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1551, allocations: 41.69 kB / 0.9887 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.615e-05/0.1552, allocations: 236.3 kB / 0.989 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.719e-05/0.1552, allocations: 106.5 kB / 0.9891 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.1553, allocations: 4 kB / 0.9891 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.1553, allocations: 354.8 kB / 0.9894 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.1555, allocations: 96.7 kB / 0.9895 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.1557, allocations: 180.3 kB / 0.9897 GB, free: 16.57 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.156, allocations: 260.4 kB / 0.9899 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.156, allocations: 3.938 kB / 0.9899 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004505/0.1565, allocations: 358.5 kB / 0.9903 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.726e-06/0.1565, allocations: 4 kB / 0.9903 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1565, allocations: 4 kB / 0.9903 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.1565, allocations: 0 / 0.9903 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.1568, allocations: 71.89 kB / 0.9903 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1568, allocations: 4 kB / 0.9904 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.157, allocations: 47.86 kB / 0.9904 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.157, allocations: 12 kB / 0.9904 GB, free: 15.8 MB / 0.6198 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 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.1571, allocations: 190.8 kB / 0.9906 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.1572, allocations: 35.53 kB / 0.9906 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.308e-05/0.1572, allocations: 44.25 kB / 0.9907 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1572, allocations: 4 kB / 0.9907 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1572, allocations: 0 / 0.9907 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1572, allocations: 0 / 0.9907 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007711/0.158, allocations: 0.8115 MB / 0.9915 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.158, allocations: 4 kB / 0.9915 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1582, allocations: 47.91 kB / 0.9915 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1583, allocations: 0 / 0.9915 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.1583, allocations: 12 kB / 0.9915 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1583, allocations: 0 / 0.9915 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1583, allocations: 0 / 0.9915 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006073/0.1589, allocations: 0.5146 MB / 0.992 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.99e-05/0.159, allocations: 144.6 kB / 0.9922 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.159, allocations: 8 kB / 0.9922 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.1592, allocations: 23.89 kB / 0.9922 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.1593, allocations: 27.95 kB / 0.9922 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.1593, allocations: 12 kB / 0.9922 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001569/0.1595, allocations: 239.1 kB / 0.9925 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1595, allocations: 0 / 0.9925 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002533/0.1597, allocations: 95.69 kB / 0.9926 GB, free: 13.5 MB / 0.6198 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 (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.0007237/0.1604, allocations: 1.06 MB / 0.9936 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003977/0.1609, allocations: 267.9 kB / 0.9938 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1609, allocations: 3.938 kB / 0.9938 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.1611, allocations: 136.3 kB / 0.994 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.1615, allocations: 81.39 kB / 0.9941 GB, free: 11.94 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.1641, allocations: 2.297 MB / 0.9963 GB, free: 9.578 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.1642, allocations: 0.8191 MB / 0.9971 GB, free: 8.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001487/0.1644, allocations: 39.27 kB / 0.9971 GB, free: 8.691 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.1646, allocations: 143.4 kB / 0.9973 GB, free: 8.551 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.1646, allocations: 0 / 0.9973 GB, free: 8.551 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2988/0.4634, allocations: 6.952 MB / 1.004 GB, free: 1.777 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001267/0.4635, allocations: 188.2 kB / 1.004 GB, free: 1.543 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.307, allocations: 4 kB / 1.004 GB, free: 1.539 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)