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.001027/0.001027, 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.00122/0.00122, allocations: 195.4 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.315/1.315, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.655/1.655, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001345/0.001346, allocations: 65.5 kB / 0.6716 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1996, allocations: 114.6 MB / 0.7835 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004031/0.2036, allocations: 2.987 MB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2051, allocations: 0.9478 MB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2053, allocations: 15.94 kB / 0.7873 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.2055, allocations: 67.27 kB / 0.7874 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.2057, allocations: 91.16 kB / 0.7875 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.2061, allocations: 219.4 kB / 0.7877 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00042/0.2066, allocations: 495.2 kB / 0.7882 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000316/0.2069, allocations: 217.8 kB / 0.7884 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.2071, allocations: 175.2 kB / 0.7885 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.2073, allocations: 183 kB / 0.7887 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.2074, allocations: 44 kB / 0.7887 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.4e-05/0.2074, allocations: 44 kB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.2075, allocations: 91.64 kB / 0.7889 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.2077, allocations: 202.9 kB / 0.7891 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004149/0.2081, allocations: 490.4 kB / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2081, allocations: 0 / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2081, allocations: 0 / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.2081, allocations: 0 / 0.7895 GB, free: 7.164 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.001008/0.2091, allocations: 0.7128 MB / 0.7902 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2092, allocations: 8.031 kB / 0.7902 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.54e-05/0.2092, allocations: 62.73 kB / 0.7903 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.2093, allocations: 48.38 kB / 0.7903 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.2098, allocations: 388.4 kB / 0.7907 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2098, allocations: 25.03 kB / 0.7907 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.406e-05/0.2099, allocations: 28.38 kB / 0.7908 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.2104, allocations: 341.2 kB / 0.7911 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.2104, allocations: 4 kB / 0.7911 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.2104, allocations: 12 kB / 0.7911 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.2105, allocations: 8 kB / 0.7911 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.2109, allocations: 218.1 kB / 0.7913 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.2123, allocations: 1.186 MB / 0.7925 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005339/0.2128, allocations: 246.7 kB / 0.7927 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.2131, allocations: 108.8 kB / 0.7928 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.2131, allocations: 0 / 0.7928 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2131, allocations: 38.92 kB / 0.7929 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/0.2131, allocations: 3.938 kB / 0.7929 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0006268/0.2138, allocations: 304.1 kB / 0.7932 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.2138, allocations: 102.8 kB / 0.7932 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.2142, allocations: 341.6 kB / 0.7936 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.2142, allocations: 29.7 kB / 0.7936 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.2144, allocations: 220.2 kB / 0.7938 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.185e-05/0.2144, allocations: 74.91 kB / 0.7939 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.959e-05/0.2145, allocations: 49.7 kB / 0.7939 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2147, allocations: 354.7 kB / 0.7943 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.2148, allocations: 71.97 kB / 0.7943 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.2151, allocations: 147.7 kB / 0.7945 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.2154, allocations: 209.2 kB / 0.7947 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2155, allocations: 11.88 kB / 0.7947 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004765/0.2159, allocations: 277 kB / 0.795 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.216, allocations: 4 kB / 0.795 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.216, allocations: 4 kB / 0.795 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.216, allocations: 8 kB / 0.795 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.2162, allocations: 52.09 kB / 0.795 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.2162, allocations: 4 kB / 0.795 GB, free: 1.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.2164, allocations: 35.77 kB / 0.7951 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.2164, allocations: 8 kB / 0.7951 GB, free: 1.168 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 (con.hys.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001497/0.2166, allocations: 167.5 kB / 0.7952 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.934e-05/0.2167, allocations: 39.53 kB / 0.7953 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.736e-05/0.2167, allocations: 35.36 kB / 0.7953 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2167, allocations: 0 / 0.7953 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2168, allocations: 8 kB / 0.7953 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2168, allocations: 0 / 0.7953 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.2172, allocations: 401.2 kB / 0.7957 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2172, allocations: 0 / 0.7957 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.2174, allocations: 43.91 kB / 0.7957 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.2174, allocations: 4 kB / 0.7957 GB, free: 432 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2174, allocations: 4 kB / 0.7957 GB, free: 428 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2174, allocations: 0 / 0.7957 GB, free: 428 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2174, allocations: 0 / 0.7957 GB, free: 428 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.2181, allocations: 427 kB / 0.7961 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.2183, allocations: 132.6 kB / 0.7963 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/0.2183, allocations: 4 kB / 0.7963 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.2185, allocations: 15.92 kB / 0.7963 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.2186, allocations: 23.91 kB / 0.7963 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.2186, allocations: 4.062 kB / 0.7963 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002249/0.2188, allocations: 247.2 kB / 0.7966 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2188, allocations: 3.938 kB / 0.7966 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003126/0.2191, allocations: 67.84 kB / 0.7966 GB, free: 15.47 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 (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.0008937/0.22, allocations: 0.9579 MB / 0.7976 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004643/0.2205, allocations: 214.9 kB / 0.7978 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2205, allocations: 0 / 0.7978 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.2207, allocations: 99.89 kB / 0.7979 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.2213, allocations: 80.33 kB / 0.7979 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.2251, allocations: 3.135 MB / 0.801 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.2254, allocations: 0.7873 MB / 0.8018 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001519/0.2256, allocations: 42.95 kB / 0.8018 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.2258, allocations: 123.4 kB / 0.8019 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of SimCode: time 4.71e-07/0.2258, allocations: 0 / 0.8019 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02604/0.2518, allocations: 6.566 MB / 0.8083 GB, free: 3.43 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.938, allocations: 6.5 kB / 0.8083 GB, free: 3.43 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)