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.00133/0.00133, allocations: 108 kB / 15.6 MB, free: 132 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.001615/0.001615, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.682/1.682, allocations: 292.3 MB / 0.5489 GB, free: 13.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.001443/0.001443, allocations: 73.61 kB / 0.6716 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2143, allocations: 114.5 MB / 0.7835 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.005703/0.22, allocations: 3.133 MB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.2221, allocations: 1.006 MB / 0.7875 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004359/0.2226, allocations: 11.94 kB / 0.7875 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.2229, allocations: 71.2 kB / 0.7876 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.2232, allocations: 95.11 kB / 0.7877 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008006/0.224, allocations: 242.8 kB / 0.7879 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008394/0.2249, allocations: 0.5466 MB / 0.7884 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006494/0.2255, allocations: 255.7 kB / 0.7887 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004885/0.226, allocations: 207 kB / 0.7889 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004708/0.2265, allocations: 199 kB / 0.7891 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.2267, allocations: 52 kB / 0.7891 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.2268, allocations: 52 kB / 0.7892 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.227, allocations: 115.5 kB / 0.7893 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.2273, allocations: 238.7 kB / 0.7895 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008967/0.2282, allocations: 0.5528 MB / 0.7901 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.2282, allocations: 4 kB / 0.7901 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2282, allocations: 0 / 0.7901 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.889e-05/0.2282, allocations: 3.938 kB / 0.7901 GB, free: 6.707 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.001953/0.2302, allocations: 0.7621 MB / 0.7908 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.2303, allocations: 12.03 kB / 0.7908 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001574/0.2304, allocations: 78.66 kB / 0.7909 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.2306, allocations: 56.28 kB / 0.7909 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007348/0.2313, allocations: 408.6 kB / 0.7913 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.2314, allocations: 33.38 kB / 0.7914 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-05/0.2315, allocations: 36.38 kB / 0.7914 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009706/0.2324, allocations: 401.7 kB / 0.7918 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2325, allocations: 0 / 0.7918 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.2325, allocations: 16 kB / 0.7918 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.2326, allocations: 8 kB / 0.7918 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007773/0.2333, allocations: 259.8 kB / 0.7921 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.2358, allocations: 1.32 MB / 0.7933 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007533/0.2366, allocations: 321.6 kB / 0.7937 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.2369, allocations: 141.8 kB / 0.7938 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.237, allocations: 8.531 kB / 0.7938 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004501/0.2374, allocations: 181.5 kB / 0.794 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=33): time 3.276e-06/0.2374, allocations: 0 / 0.794 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33): time 0.0008881/0.2383, allocations: 375 kB / 0.7943 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.225e-05/0.2384, allocations: 85.11 kB / 0.7944 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.239, allocations: 357.6 kB / 0.7947 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.239, allocations: 33.7 kB / 0.7948 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.2392, allocations: 232.3 kB / 0.795 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.543e-05/0.2393, allocations: 106.5 kB / 0.7951 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.2395, allocations: 74.06 kB / 0.7952 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2397, allocations: 346.8 kB / 0.7955 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.2399, allocations: 104.6 kB / 0.7956 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.2402, allocations: 176.3 kB / 0.7958 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.2407, allocations: 255.8 kB / 0.796 GB, free: 292 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2407, allocations: 3.938 kB / 0.796 GB, free: 288 kB / 0.6075 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000671/0.2414, allocations: 350.2 kB / 0.7964 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2414, allocations: 8 kB / 0.7964 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2414, allocations: 0 / 0.7964 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.2415, allocations: 4 kB / 0.7964 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.2418, allocations: 67.91 kB / 0.7964 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.2418, allocations: 4 kB / 0.7964 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.242, allocations: 35.67 kB / 0.7965 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.2421, allocations: 16 kB / 0.7965 GB, free: 15.8 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.0002399/0.2423, allocations: 181.8 kB / 0.7967 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.843e-05/0.2424, allocations: 39.53 kB / 0.7967 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.2425, allocations: 44.25 kB / 0.7967 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.2426, allocations: 7.938 kB / 0.7967 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.2426, allocations: 0 / 0.7967 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2426, allocations: 0 / 0.7967 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.2439, allocations: 0.8152 MB / 0.7975 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2439, allocations: 0 / 0.7975 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.2441, allocations: 51.91 kB / 0.7976 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.2442, allocations: 4 kB / 0.7976 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.2442, allocations: 4 kB / 0.7976 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2442, allocations: 0 / 0.7976 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2442, allocations: 4 kB / 0.7976 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008337/0.245, allocations: 0.5111 MB / 0.7981 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.2452, allocations: 140.6 kB / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.2453, allocations: 8 kB / 0.7982 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.2454, allocations: 15.98 kB / 0.7983 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.447e-05/0.2455, allocations: 23.97 kB / 0.7983 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.2455, allocations: 4 kB / 0.7983 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002484/0.2458, allocations: 251.2 kB / 0.7985 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2458, allocations: 0 / 0.7985 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003557/0.2462, allocations: 91.69 kB / 0.7986 GB, free: 13.52 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.001128/0.2473, allocations: 1.067 MB / 0.7997 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006313/0.2479, allocations: 279.9 kB / 0.7999 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.248, allocations: 7.938 kB / 0.7999 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.2482, allocations: 131.8 kB / 0.8001 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005156/0.2487, allocations: 102 kB / 0.8001 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004615/0.2534, allocations: 3.482 MB / 0.8035 GB, free: 8.332 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.2537, allocations: 0.8113 MB / 0.8043 GB, free: 7.492 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001788/0.2539, allocations: 47.25 kB / 0.8044 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.2541, allocations: 139.4 kB / 0.8045 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of SimCode: time 6.01e-07/0.2541, allocations: 0 / 0.8045 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.2828, allocations: 7.312 MB / 0.8117 GB, free: 108 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/7.966, allocations: 4.859 kB / 0.8117 GB, free: 104 kB / 0.6231 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)