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.001671/0.001671, 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.001919/0.001919, allocations: 188.4 kB / 16.62 MB, free: 6.613 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.39/1.39, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.693/1.693, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001449/0.001449, allocations: 78.83 kB / 0.6718 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2121, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.00412/0.2163, allocations: 2.982 MB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001858/0.2182, allocations: 0.9556 MB / 0.7875 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.2185, allocations: 11.94 kB / 0.7875 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002426/0.2188, allocations: 63.33 kB / 0.7875 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.219, allocations: 91.17 kB / 0.7876 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005179/0.2195, allocations: 214.9 kB / 0.7878 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004913/0.22, allocations: 495.2 kB / 0.7883 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.2204, allocations: 221.8 kB / 0.7885 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.2206, allocations: 175.2 kB / 0.7887 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.2209, allocations: 179 kB / 0.7889 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.791e-05/0.2209, allocations: 44 kB / 0.7889 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.195e-05/0.221, allocations: 44 kB / 0.7889 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.721e-05/0.2211, allocations: 95.62 kB / 0.789 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.2213, allocations: 198.8 kB / 0.7892 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005401/0.2218, allocations: 0.4943 MB / 0.7897 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.2218, allocations: 0 / 0.7897 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2218, allocations: 3.938 kB / 0.7897 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.2218, allocations: 0 / 0.7897 GB, free: 6.988 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.001172/0.223, allocations: 0.7167 MB / 0.7904 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2231, allocations: 8.031 kB / 0.7904 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.01e-05/0.2232, allocations: 66.72 kB / 0.7905 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.2232, allocations: 52.38 kB / 0.7905 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006196/0.2239, allocations: 388.4 kB / 0.7909 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.2239, allocations: 25.03 kB / 0.7909 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.224, allocations: 28.38 kB / 0.7909 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005463/0.2245, allocations: 345.2 kB / 0.7913 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2245, allocations: 4 kB / 0.7913 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.2246, allocations: 19.98 kB / 0.7913 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2246, allocations: 4 kB / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.225, allocations: 218.1 kB / 0.7915 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.2266, allocations: 1.178 MB / 0.7927 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005471/0.2271, allocations: 230.7 kB / 0.7929 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.2274, allocations: 116.8 kB / 0.793 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2274, allocations: 4 kB / 0.793 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.2274, allocations: 38.88 kB / 0.793 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.904e-06/0.2274, allocations: 4 kB / 0.793 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0006356/0.2281, allocations: 287.5 kB / 0.7933 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.2281, allocations: 110.8 kB / 0.7934 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.2285, allocations: 341.6 kB / 0.7937 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.2285, allocations: 29.7 kB / 0.7938 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.2287, allocations: 220.2 kB / 0.794 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.767e-05/0.2287, allocations: 74.91 kB / 0.7941 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/0.2288, allocations: 49.7 kB / 0.7941 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2289, allocations: 342.8 kB / 0.7944 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2291, allocations: 75.97 kB / 0.7945 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.2293, allocations: 151.6 kB / 0.7946 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.2297, allocations: 212.8 kB / 0.7948 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.2297, allocations: 3.938 kB / 0.7948 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004872/0.2302, allocations: 291 kB / 0.7951 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2302, allocations: 4 kB / 0.7951 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2302, allocations: 4 kB / 0.7951 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2303, allocations: 0 / 0.7951 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.2305, allocations: 55.91 kB / 0.7952 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.2305, allocations: 7.938 kB / 0.7952 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.2307, allocations: 31.77 kB / 0.7952 GB, free: 1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.2307, allocations: 12.17 kB / 0.7952 GB, free: 0.9883 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.0001613/0.2309, allocations: 165.7 kB / 0.7954 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.715e-05/0.231, allocations: 35.53 kB / 0.7954 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.775e-05/0.231, allocations: 43.36 kB / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.2311, allocations: 0 / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2311, allocations: 0 / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2311, allocations: 0 / 0.7955 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004074/0.2315, allocations: 401.2 kB / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2315, allocations: 0 / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.2317, allocations: 47.91 kB / 0.7959 GB, free: 252 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.2317, allocations: 0 / 0.7959 GB, free: 252 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2318, allocations: 8 kB / 0.7959 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2318, allocations: 0 / 0.7959 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2318, allocations: 0 / 0.7959 GB, free: 244 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006767/0.2324, allocations: 426.1 kB / 0.7963 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.2326, allocations: 132.6 kB / 0.7964 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.644e-05/0.2326, allocations: 12 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.2328, allocations: 19.97 kB / 0.7965 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.2329, allocations: 15.97 kB / 0.7965 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.2329, allocations: 8 kB / 0.7965 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002317/0.2331, allocations: 239.2 kB / 0.7967 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2332, allocations: 0 / 0.7967 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003459/0.2335, allocations: 63.84 kB / 0.7968 GB, free: 15.31 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.0008992/0.2344, allocations: 0.9618 MB / 0.7977 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004502/0.2349, allocations: 207.7 kB / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2349, allocations: 0 / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.2351, allocations: 106.5 kB / 0.798 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.2356, allocations: 76.34 kB / 0.7981 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003906/0.2395, allocations: 3.115 MB / 0.8011 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/0.2399, allocations: 0.7951 MB / 0.8019 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.24, allocations: 34.97 kB / 0.8019 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.2402, allocations: 119.4 kB / 0.8021 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of SimCode: time 6.21e-07/0.2402, allocations: 0 / 0.8021 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.2652, allocations: 6.575 MB / 0.8085 GB, free: 3.285 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.408, allocations: 10.53 kB / 0.8085 GB, free: 3.285 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)