Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Obsolete.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Obsolete_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.005798/0.005798, allocations: 96.39 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 192.3 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9996/0.9996, allocations: 143 MB / 433.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.91 kB / 0.595 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.498/0.4994, allocations: 82.03 MB / 0.6751 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.00454/0.5039, allocations: 2.962 MB / 0.678 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001944/0.5059, allocations: 0.9203 MB / 0.6789 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.5062, allocations: 12.81 kB / 0.679 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.5065, allocations: 63.48 kB / 0.679 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.5067, allocations: 94.2 kB / 0.6791 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.5073, allocations: 219.4 kB / 0.6793 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0006184/0.508, allocations: 487.6 kB / 0.6798 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004875/0.5085, allocations: 219.4 kB / 0.68 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.5088, allocations: 189.2 kB / 0.6802 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.5091, allocations: 177.9 kB / 0.6803 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.52e-05/0.5092, allocations: 42.88 kB / 0.6804 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 9.226e-05/0.5093, allocations: 44.09 kB / 0.6804 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.5094, allocations: 93.23 kB / 0.6805 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.5096, allocations: 206.1 kB / 0.6807 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008041/0.5105, allocations: 0.5405 MB / 0.6812 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.5105, allocations: 0 / 0.6812 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.725e-06/0.5105, allocations: 0 / 0.6812 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.5105, allocations: 1.094 kB / 0.6812 GB, free: 12.41 MB / 0.5137 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.001577/0.5121, allocations: 0.7245 MB / 0.6819 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.883e-05/0.5122, allocations: 8.281 kB / 0.6819 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.5123, allocations: 68.34 kB / 0.682 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.5124, allocations: 53.11 kB / 0.6821 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008858/0.5133, allocations: 402.8 kB / 0.6824 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.5133, allocations: 21.34 kB / 0.6825 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.102e-05/0.5134, allocations: 31.56 kB / 0.6825 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.5141, allocations: 342.9 kB / 0.6828 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.5141, allocations: 1.094 kB / 0.6828 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.5141, allocations: 10.38 kB / 0.6828 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5142, allocations: 7.969 kB / 0.6828 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.5146, allocations: 215.4 kB / 0.683 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.5162, allocations: 1.181 MB / 0.6842 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.5169, allocations: 230 kB / 0.6844 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.5172, allocations: 113.3 kB / 0.6845 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.5173, allocations: 10.48 kB / 0.6845 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.5173, allocations: 37.44 kB / 0.6846 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=22): time 3.456e-06/0.5173, allocations: 3.984 kB / 0.6846 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22): time 0.0008436/0.5182, allocations: 291.8 kB / 0.6849 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.626e-05/0.5183, allocations: 105.2 kB / 0.685 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.5187, allocations: 344.7 kB / 0.6853 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.5187, allocations: 30.67 kB / 0.6853 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.5189, allocations: 217.9 kB / 0.6855 GB, free: 8.922 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.551e-05/0.519, allocations: 88.91 kB / 0.6856 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.845e-05/0.5191, allocations: 48.95 kB / 0.6857 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5192, allocations: 349.7 kB / 0.686 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.5194, allocations: 70.97 kB / 0.6861 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.5197, allocations: 157.1 kB / 0.6862 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.5201, allocations: 200.7 kB / 0.6864 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5201, allocations: 5.281 kB / 0.6864 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005339/0.5206, allocations: 287.2 kB / 0.6867 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5206, allocations: 7.5 kB / 0.6867 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.5207, allocations: 2.844 kB / 0.6867 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.5207, allocations: 3 kB / 0.6867 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.5209, allocations: 59.56 kB / 0.6867 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.521, allocations: 2.875 kB / 0.6867 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.5211, allocations: 32.8 kB / 0.6868 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.5212, allocations: 7.906 kB / 0.6868 GB, free: 7.969 MB / 0.5137 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.0001782/0.5214, allocations: 169.8 kB / 0.687 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.5214, allocations: 35.61 kB / 0.687 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.106e-05/0.5215, allocations: 40.48 kB / 0.687 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5215, allocations: 2.781 kB / 0.687 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.5216, allocations: 0 / 0.687 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.5216, allocations: 1.219 kB / 0.687 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.522, allocations: 394.5 kB / 0.6874 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.522, allocations: 1.156 kB / 0.6874 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.5223, allocations: 47.34 kB / 0.6874 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5223, allocations: 1.875 kB / 0.6875 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.5223, allocations: 5.312 kB / 0.6875 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5223, allocations: 1.031 kB / 0.6875 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5223, allocations: 0 / 0.6875 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007245/0.523, allocations: 434.5 kB / 0.6879 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.5232, allocations: 131.7 kB / 0.688 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.5232, allocations: 6.562 kB / 0.688 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.5234, allocations: 16.48 kB / 0.688 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.162e-05/0.5235, allocations: 20.41 kB / 0.688 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.5235, allocations: 8.031 kB / 0.688 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002467/0.5238, allocations: 242 kB / 0.6883 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.482e-06/0.5238, allocations: 1.438 kB / 0.6883 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003468/0.5241, allocations: 64.17 kB / 0.6883 GB, free: 6.766 MB / 0.5137 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.001008/0.5251, allocations: 0.964 MB / 0.6893 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004668/0.5256, allocations: 206 kB / 0.6895 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5256, allocations: 0 / 0.6895 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.5258, allocations: 106.6 kB / 0.6896 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/0.5264, allocations: 88.09 kB / 0.6897 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004198/0.5306, allocations: 3.125 MB / 0.6927 GB, free: 3.492 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.531, allocations: 0.7946 MB / 0.6935 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001866/0.5312, allocations: 32.78 kB / 0.6935 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.5314, allocations: 121.8 kB / 0.6936 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of SimCode: time 5.01e-07/0.5314, allocations: 0 / 0.6936 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.5594, allocations: 6.69 MB / 0.7002 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.785, allocations: 1.125 kB / 0.7002 GB, free: 12.4 MB / 0.5294 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 BuildSysPro_BuildSysPro_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)