Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="IBPSA_latest_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.001401/0.001401, allocations: 103.2 kB / 16.27 MB, free: 6.41 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.001168/0.001168, allocations: 184.6 kB / 17.2 MB, free: 5.953 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.296/1.296, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7429/0.7429, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.89 kB / 0.4912 GB, free: 7.371 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3466, allocations: 77.92 MB / 0.5673 GB, free: 32.74 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003951/0.3506, allocations: 2.96 MB / 0.5702 GB, free: 30.67 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.352, allocations: 0.9089 MB / 0.5711 GB, free: 30.01 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/0.3522, allocations: 14.19 kB / 0.5711 GB, free: 30.01 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.3524, allocations: 65.83 kB / 0.5711 GB, free: 29.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.3527, allocations: 88.7 kB / 0.5712 GB, free: 29.89 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.3531, allocations: 215.7 kB / 0.5714 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.3535, allocations: 497.4 kB / 0.5719 GB, free: 29.51 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.3538, allocations: 221.8 kB / 0.5721 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.354, allocations: 177.9 kB / 0.5723 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.3542, allocations: 179.8 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.675e-05/0.3543, allocations: 46.75 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.247e-05/0.3544, allocations: 41.59 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.684e-05/0.3544, allocations: 92.58 kB / 0.5726 GB, free: 29.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3546, allocations: 203.4 kB / 0.5728 GB, free: 28.99 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.355, allocations: 0.4891 MB / 0.5733 GB, free: 28.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.355, allocations: 1.688 kB / 0.5733 GB, free: 28.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.355, allocations: 0 / 0.5733 GB, free: 28.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.355, allocations: 0.7031 kB / 0.5733 GB, free: 28.77 MB / 446.1 MB 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.0009305/0.356, allocations: 0.7176 MB / 0.574 GB, free: 28.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.356, allocations: 9.594 kB / 0.574 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.166e-05/0.3561, allocations: 63.33 kB / 0.5741 GB, free: 28.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.3562, allocations: 48.72 kB / 0.5741 GB, free: 28.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.3566, allocations: 394.3 kB / 0.5745 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3567, allocations: 24.25 kB / 0.5745 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.3567, allocations: 33.25 kB / 0.5746 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.3572, allocations: 340.5 kB / 0.5749 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3572, allocations: 1.156 kB / 0.5749 GB, free: 27.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.3573, allocations: 16.22 kB / 0.5749 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.3573, allocations: 6.594 kB / 0.5749 GB, free: 27.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.3577, allocations: 216.6 kB / 0.5751 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.359, allocations: 1.176 MB / 0.5763 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.3596, allocations: 240.3 kB / 0.5765 GB, free: 26.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.3598, allocations: 114.5 kB / 0.5766 GB, free: 26.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.3598, allocations: 7.25 kB / 0.5766 GB, free: 26.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.3599, allocations: 40.09 kB / 0.5766 GB, free: 26.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=22): time 1.353e-06/0.3599, allocations: 3.938 kB / 0.5766 GB, free: 26.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006024/0.3605, allocations: 291.6 kB / 0.5769 GB, free: 26.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.3605, allocations: 110.1 kB / 0.577 GB, free: 26.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.3608, allocations: 332.9 kB / 0.5773 GB, free: 26.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.3609, allocations: 30.36 kB / 0.5774 GB, free: 25.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.361, allocations: 219.4 kB / 0.5776 GB, free: 25.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.361, allocations: 83.42 kB / 0.5777 GB, free: 25.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.016e-05/0.3611, allocations: 54.31 kB / 0.5777 GB, free: 25.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.3612, allocations: 342.6 kB / 0.578 GB, free: 25.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.3613, allocations: 80.48 kB / 0.5781 GB, free: 25.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.3615, allocations: 149.1 kB / 0.5783 GB, free: 25.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.3619, allocations: 210 kB / 0.5785 GB, free: 25.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3619, allocations: 5.281 kB / 0.5785 GB, free: 25.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004644/0.3624, allocations: 282.8 kB / 0.5787 GB, free: 24.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3624, allocations: 6.25 kB / 0.5787 GB, free: 24.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3624, allocations: 6.422 kB / 0.5787 GB, free: 24.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3624, allocations: 3.266 kB / 0.5787 GB, free: 24.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.3626, allocations: 57.62 kB / 0.5788 GB, free: 24.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.3627, allocations: 4.797 kB / 0.5788 GB, free: 24.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.3628, allocations: 32.72 kB / 0.5788 GB, free: 24.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.3628, allocations: 7.5 kB / 0.5788 GB, free: 24.94 MB / 446.1 MB 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.0001211/0.363, allocations: 168.2 kB / 0.579 GB, free: 24.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.363, allocations: 32.73 kB / 0.579 GB, free: 24.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.542e-05/0.3631, allocations: 40.97 kB / 0.5791 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3631, allocations: 2.781 kB / 0.5791 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3631, allocations: 0 / 0.5791 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3631, allocations: 6.375 kB / 0.5791 GB, free: 24.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.3635, allocations: 391.8 kB / 0.5795 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3635, allocations: 1.25 kB / 0.5795 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.3637, allocations: 38.59 kB / 0.5795 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3637, allocations: 4.688 kB / 0.5795 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.3638, allocations: 8.094 kB / 0.5795 GB, free: 24.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3638, allocations: 0.6562 kB / 0.5795 GB, free: 24.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3638, allocations: 1.438 kB / 0.5795 GB, free: 24.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.3644, allocations: 432.6 kB / 0.5799 GB, free: 24.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.3645, allocations: 127 kB / 0.58 GB, free: 24.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.3645, allocations: 7.234 kB / 0.5801 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3647, allocations: 16.09 kB / 0.5801 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.688e-05/0.3647, allocations: 16.28 kB / 0.5801 GB, free: 24.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3648, allocations: 11.34 kB / 0.5801 GB, free: 24.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.365, allocations: 236.1 kB / 0.5803 GB, free: 23.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.365, allocations: 0 / 0.5803 GB, free: 23.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.3653, allocations: 75.06 kB / 0.5804 GB, free: 23.9 MB / 446.1 MB 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.0006989/0.366, allocations: 0.9587 MB / 0.5813 GB, free: 23.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004454/0.3664, allocations: 208.5 kB / 0.5815 GB, free: 23.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3665, allocations: 0 / 0.5815 GB, free: 23.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.3666, allocations: 102.6 kB / 0.5816 GB, free: 23.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.3672, allocations: 85.47 kB / 0.5817 GB, free: 22.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.3707, allocations: 3.149 MB / 0.5848 GB, free: 20.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.3709, allocations: 0.7985 MB / 0.5856 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.3711, allocations: 37.53 kB / 0.5856 GB, free: 20.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.3712, allocations: 122 kB / 0.5857 GB, free: 20.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.81e-07/0.3712, allocations: 0 / 0.5857 GB, free: 20.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.3935, allocations: 6.553 MB / 0.5921 GB, free: 16.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.166/7.559, allocations: 11.22 kB / 0.5921 GB, free: 16.91 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & python3 -m fmpy simulate --output-file IBPSA_latest_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 IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)