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.001405/0.001405, 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.001683/0.001683, allocations: 196.4 kB / 16.53 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.517/1.517, allocations: 222.9 MB / 240.2 MB, free: 4.383 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 1.03/1.03, allocations: 143.1 MB / 433.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 67.89 kB / 0.5143 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1749, allocations: 82.04 MB / 0.5944 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004955/0.1799, allocations: 2.972 MB / 0.5973 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002229/0.1821, allocations: 0.908 MB / 0.5982 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005082/0.1827, allocations: 11.94 kB / 0.5982 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000347/0.183, allocations: 63.33 kB / 0.5983 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004138/0.1835, allocations: 91.16 kB / 0.5983 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.1841, allocations: 219 kB / 0.5986 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00063/0.1848, allocations: 495.3 kB / 0.599 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004189/0.1852, allocations: 213.6 kB / 0.5992 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.1855, allocations: 183.1 kB / 0.5994 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.1858, allocations: 179 kB / 0.5996 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.412e-05/0.1859, allocations: 44 kB / 0.5996 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.453e-05/0.186, allocations: 44 kB / 0.5997 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.169e-05/0.1861, allocations: 91.64 kB / 0.5997 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.1863, allocations: 198.9 kB / 0.5999 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006505/0.187, allocations: 0.5141 MB / 0.6004 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.187, allocations: 0 / 0.6004 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.923e-06/0.187, allocations: 4 kB / 0.6004 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.301e-05/0.187, allocations: 0 / 0.6004 GB, free: 3.273 MB / 0.4981 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.001503/0.1885, allocations: 0.716 MB / 0.6011 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.1886, allocations: 15.97 kB / 0.6012 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.1887, allocations: 70.72 kB / 0.6012 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.1888, allocations: 48.38 kB / 0.6013 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00066/0.1895, allocations: 384.4 kB / 0.6016 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.1895, allocations: 25.03 kB / 0.6017 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.875e-05/0.1896, allocations: 28.38 kB / 0.6017 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.1902, allocations: 341.2 kB / 0.602 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1902, allocations: 7.906 kB / 0.602 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1903, allocations: 12 kB / 0.602 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1903, allocations: 8 kB / 0.602 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.1908, allocations: 218.1 kB / 0.6022 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.1924, allocations: 1.19 MB / 0.6034 GB, free: 40 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3612/0.5536, allocations: 223.3 kB / 0.6036 GB, free: 44.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002581/0.5539, allocations: 114.9 kB / 0.6037 GB, free: 44.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.554, allocations: 5.266 kB / 0.6037 GB, free: 44.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.554, allocations: 37.91 kB / 0.6038 GB, free: 44.12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 2.765e-06/0.554, allocations: 0 / 0.6038 GB, free: 44.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22): time 0.0007378/0.5548, allocations: 292.2 kB / 0.604 GB, free: 44.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.5548, allocations: 109.4 kB / 0.6042 GB, free: 43.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.5552, allocations: 344.1 kB / 0.6045 GB, free: 43.85 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.5552, allocations: 32.14 kB / 0.6045 GB, free: 43.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.5554, allocations: 219.8 kB / 0.6047 GB, free: 43.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.5554, allocations: 78.84 kB / 0.6048 GB, free: 43.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-05/0.5555, allocations: 48.48 kB / 0.6048 GB, free: 43.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.5556, allocations: 350.5 kB / 0.6052 GB, free: 43.37 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.5558, allocations: 70.61 kB / 0.6052 GB, free: 43.37 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.556, allocations: 147.7 kB / 0.6054 GB, free: 43.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.5563, allocations: 209.5 kB / 0.6056 GB, free: 43.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5563, allocations: 0.5 kB / 0.6056 GB, free: 43.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004442/0.5568, allocations: 282.3 kB / 0.6059 GB, free: 43.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.5568, allocations: 6.375 kB / 0.6059 GB, free: 43.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.5568, allocations: 7.688 kB / 0.6059 GB, free: 43.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.5568, allocations: 4.75 kB / 0.6059 GB, free: 43.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.5571, allocations: 56.31 kB / 0.6059 GB, free: 43.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.5571, allocations: 5.609 kB / 0.6059 GB, free: 43.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.5573, allocations: 38.66 kB / 0.606 GB, free: 43.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.5573, allocations: 6.531 kB / 0.606 GB, free: 43.18 MB / 0.4981 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.0001327/0.5574, allocations: 156.8 kB / 0.6061 GB, free: 43.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/0.5575, allocations: 36.27 kB / 0.6062 GB, free: 43.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.424e-05/0.5576, allocations: 41.5 kB / 0.6062 GB, free: 43.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5576, allocations: 7.281 kB / 0.6062 GB, free: 43.03 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.5576, allocations: 0.5 kB / 0.6062 GB, free: 43.03 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.5576, allocations: 0 / 0.6062 GB, free: 43.03 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.558, allocations: 400.2 kB / 0.6066 GB, free: 42.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.558, allocations: 0.6875 kB / 0.6066 GB, free: 42.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.5582, allocations: 40.14 kB / 0.6066 GB, free: 42.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5582, allocations: 6.562 kB / 0.6066 GB, free: 42.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.5582, allocations: 6.812 kB / 0.6066 GB, free: 42.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.5582, allocations: 6.406 kB / 0.6066 GB, free: 42.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5583, allocations: 0 / 0.6066 GB, free: 42.83 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006115/0.5589, allocations: 424 kB / 0.607 GB, free: 42.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.047e-05/0.559, allocations: 128.7 kB / 0.6072 GB, free: 42.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.559, allocations: 9.875 kB / 0.6072 GB, free: 42.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.5592, allocations: 17 kB / 0.6072 GB, free: 42.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.017e-05/0.5593, allocations: 19.73 kB / 0.6072 GB, free: 42.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.5593, allocations: 5.375 kB / 0.6072 GB, free: 42.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001942/0.5595, allocations: 243.5 kB / 0.6075 GB, free: 42.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5595, allocations: 0 / 0.6075 GB, free: 42.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003094/0.5598, allocations: 73.22 kB / 0.6075 GB, free: 42.47 MB / 0.4981 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.0007523/0.5606, allocations: 0.9599 MB / 0.6085 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004409/0.561, allocations: 207.7 kB / 0.6087 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.561, allocations: 0 / 0.6087 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.5612, allocations: 104.9 kB / 0.6088 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.5618, allocations: 78.3 kB / 0.6088 GB, free: 41.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.5652, allocations: 3.144 MB / 0.6119 GB, free: 39.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.5654, allocations: 0.7925 MB / 0.6127 GB, free: 39.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001532/0.5656, allocations: 36.36 kB / 0.6127 GB, free: 39.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.5657, allocations: 124 kB / 0.6128 GB, free: 39.11 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.5657, allocations: 0 / 0.6128 GB, free: 39.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.5922, allocations: 6.573 MB / 0.6192 GB, free: 38.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.352, allocations: 9.078 kB / 0.6193 GB, free: 38.53 MB / 0.4981 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)