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.001139/0.001139, allocations: 109.4 kB / 15.69 MB, free: 128 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.001144/0.001144, allocations: 187.3 kB / 16.62 MB, free: 6.582 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.329/1.329, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.651/1.651, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001386/0.001386, allocations: 67.88 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2063, allocations: 114.6 MB / 0.7836 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004995/0.2113, allocations: 3.141 MB / 0.7867 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2135, allocations: 1.002 MB / 0.7877 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.2139, allocations: 15.94 kB / 0.7877 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.2142, allocations: 67.27 kB / 0.7877 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.2145, allocations: 99.09 kB / 0.7878 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006529/0.2151, allocations: 246.5 kB / 0.7881 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005939/0.2157, allocations: 0.5543 MB / 0.7886 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004414/0.2162, allocations: 247.7 kB / 0.7889 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.2164, allocations: 207.1 kB / 0.7891 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.2167, allocations: 210.8 kB / 0.7893 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.397e-05/0.2168, allocations: 52 kB / 0.7893 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.005e-05/0.2168, allocations: 52 kB / 0.7894 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.351e-05/0.2169, allocations: 107.6 kB / 0.7895 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2171, allocations: 238.7 kB / 0.7897 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.2177, allocations: 0.5683 MB / 0.7902 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2177, allocations: 0 / 0.7902 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2177, allocations: 4 kB / 0.7902 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.2177, allocations: 0 / 0.7902 GB, free: 6.473 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.001172/0.2189, allocations: 0.7699 MB / 0.791 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2189, allocations: 12.03 kB / 0.791 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.433e-05/0.219, allocations: 74.72 kB / 0.7911 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.792e-05/0.2191, allocations: 60.28 kB / 0.7911 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.2198, allocations: 416.6 kB / 0.7915 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.2198, allocations: 33.36 kB / 0.7916 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.796e-05/0.2199, allocations: 36.38 kB / 0.7916 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006146/0.2205, allocations: 397.7 kB / 0.792 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2205, allocations: 0 / 0.792 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.2206, allocations: 16 kB / 0.792 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2206, allocations: 11.98 kB / 0.792 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005174/0.2211, allocations: 267.8 kB / 0.7923 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2228, allocations: 1.305 MB / 0.7935 GB, free: 2.902 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.2235, allocations: 324.3 kB / 0.7938 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.2238, allocations: 136.8 kB / 0.794 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.2238, allocations: 4 kB / 0.794 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003274/0.2241, allocations: 177.5 kB / 0.7941 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.2242, allocations: 0 / 0.7941 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33): time 0.000788/0.225, allocations: 379 kB / 0.7945 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.225, allocations: 85.59 kB / 0.7946 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.2254, allocations: 349.6 kB / 0.7949 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/0.2254, allocations: 37.7 kB / 0.795 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.2256, allocations: 240.3 kB / 0.7952 GB, free: 1.148 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.96e-05/0.2257, allocations: 106.5 kB / 0.7953 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.2258, allocations: 66.08 kB / 0.7954 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2259, allocations: 350.7 kB / 0.7957 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.2261, allocations: 100.7 kB / 0.7958 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.2264, allocations: 176.4 kB / 0.796 GB, free: 328 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.2268, allocations: 263.8 kB / 0.7962 GB, free: 44 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.2269, allocations: 3.938 kB / 0.7962 GB, free: 40 kB / 0.6075 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000624/0.2275, allocations: 342.6 kB / 0.7965 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.2275, allocations: 7.984 kB / 0.7965 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.2275, allocations: 8.188 kB / 0.7965 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2276, allocations: 3.938 kB / 0.7966 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.2278, allocations: 63.91 kB / 0.7966 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.2279, allocations: 7.938 kB / 0.7966 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.2281, allocations: 39.67 kB / 0.7967 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.2281, allocations: 12 kB / 0.7967 GB, free: 15.55 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.0001876/0.2283, allocations: 173.7 kB / 0.7968 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.2283, allocations: 43.53 kB / 0.7969 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.2284, allocations: 48.23 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2285, allocations: 4 kB / 0.7969 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2285, allocations: 0 / 0.7969 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2285, allocations: 0 / 0.7969 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.2295, allocations: 0.8156 MB / 0.7977 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2296, allocations: 0 / 0.7977 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.2298, allocations: 55.91 kB / 0.7978 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2298, allocations: 0 / 0.7978 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.2299, allocations: 4 kB / 0.7978 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2299, allocations: 8 kB / 0.7978 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2299, allocations: 0 / 0.7978 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007909/0.2307, allocations: 0.5083 MB / 0.7983 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.2308, allocations: 136.6 kB / 0.7984 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.035e-05/0.2309, allocations: 8 kB / 0.7984 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.2311, allocations: 19.97 kB / 0.7984 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.2312, allocations: 23.97 kB / 0.7985 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.2312, allocations: 8 kB / 0.7985 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003029/0.2315, allocations: 251.1 kB / 0.7987 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2315, allocations: 0 / 0.7987 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004214/0.2319, allocations: 83.69 kB / 0.7988 GB, free: 13.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.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.001237/0.2332, allocations: 1.072 MB / 0.7998 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006453/0.2338, allocations: 272.1 kB / 0.8001 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2339, allocations: 0 / 0.8001 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.2341, allocations: 131.9 kB / 0.8002 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.2348, allocations: 79.94 kB / 0.8003 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.2395, allocations: 3.435 MB / 0.8037 GB, free: 8.172 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.2399, allocations: 0.8152 MB / 0.8044 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001931/0.2401, allocations: 43.27 kB / 0.8045 GB, free: 7.289 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.2403, allocations: 139.4 kB / 0.8046 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of SimCode: time 7.72e-07/0.2404, allocations: 0 / 0.8046 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.2672, allocations: 7.323 MB / 0.8118 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.568, allocations: 15.11 kB / 0.8118 GB, free: 15.94 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)