Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",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.001718/0.001718, allocations: 108 kB / 15.61 MB, free: 152 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.001857/0.001857, allocations: 197 kB / 16.53 MB, free: 6.664 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9474/0.9474, allocations: 135.1 MB / 425.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 59.67 kB / 0.5054 GB, free: 5.273 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.146, allocations: 80.93 MB / 0.5845 GB, free: 4.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003109/0.1492, allocations: 2.024 MB / 0.5864 GB, free: 2.457 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008271/0.15, allocations: 0.5299 MB / 0.587 GB, free: 1.922 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1502, allocations: 4 kB / 0.587 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1503, allocations: 19.73 kB / 0.587 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.1504, allocations: 39.58 kB / 0.587 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.1506, allocations: 63.84 kB / 0.5871 GB, free: 1.797 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.1509, allocations: 183.2 kB / 0.5873 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.151, allocations: 78.31 kB / 0.5873 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1512, allocations: 71.7 kB / 0.5874 GB, free: 1.465 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.1513, allocations: 79.67 kB / 0.5875 GB, free: 1.387 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.1514, allocations: 12 kB / 0.5875 GB, free: 1.375 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.183e-05/0.1514, allocations: 16 kB / 0.5875 GB, free: 1.359 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.018e-05/0.1514, allocations: 35.86 kB / 0.5875 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.841e-05/0.1515, allocations: 83.53 kB / 0.5876 GB, free: 1.242 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.1517, allocations: 175.6 kB / 0.5878 GB, free: 1.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1517, allocations: 3.984 kB / 0.5878 GB, free: 1.066 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1517, allocations: 0 / 0.5878 GB, free: 1.066 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.1518, allocations: 0 / 0.5878 GB, free: 1.066 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007813/0.1525, allocations: 490.8 kB / 0.5883 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1526, allocations: 8.031 kB / 0.5883 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.1526, allocations: 42.75 kB / 0.5883 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.1527, allocations: 24.66 kB / 0.5883 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.1529, allocations: 219.5 kB / 0.5885 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.153, allocations: 42.25 kB / 0.5886 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.153, allocations: 12.38 kB / 0.5886 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004027/0.1534, allocations: 158.8 kB / 0.5887 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1535, allocations: 0 / 0.5887 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1535, allocations: 8 kB / 0.5887 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1535, allocations: 0 / 0.5887 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.154, allocations: 147.8 kB / 0.5889 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008097/0.1548, allocations: 0.5346 MB / 0.5894 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.1552, allocations: 138.6 kB / 0.5895 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.1555, allocations: 76.81 kB / 0.5896 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.1555, allocations: 4 kB / 0.5896 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.1555, allocations: 34.55 kB / 0.5897 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.1556, allocations: 0 / 0.5897 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007063/0.1563, allocations: 213.5 kB / 0.5899 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.1563, allocations: 55.39 kB / 0.5899 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1564, allocations: 153.9 kB / 0.5901 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.1565, allocations: 37.62 kB / 0.5901 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.523e-05/0.1566, allocations: 132.1 kB / 0.5902 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.801e-05/0.1566, allocations: 43.39 kB / 0.5903 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.1567, allocations: 29.7 kB / 0.5903 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1568, allocations: 326.8 kB / 0.5906 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.157, allocations: 59.95 kB / 0.5907 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.1572, allocations: 86.52 kB / 0.5907 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003918/0.1576, allocations: 145.2 kB / 0.5909 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1576, allocations: 4 kB / 0.5909 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004653/0.1581, allocations: 185.4 kB / 0.5911 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1581, allocations: 8 kB / 0.5911 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1581, allocations: 0 / 0.5911 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1581, allocations: 0 / 0.5911 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1583, allocations: 40.03 kB / 0.5911 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.1584, allocations: 0 / 0.5911 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.1585, allocations: 31.81 kB / 0.5911 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.1585, allocations: 7.938 kB / 0.5911 GB, free: 13.37 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001024/0.1586, allocations: 129.7 kB / 0.5913 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.1587, allocations: 15.81 kB / 0.5913 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.1587, allocations: 16.7 kB / 0.5913 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1587, allocations: 8 kB / 0.5913 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.1587, allocations: 0 / 0.5913 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1587, allocations: 0 / 0.5913 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.159, allocations: 241.5 kB / 0.5915 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.159, allocations: 0 / 0.5915 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.1592, allocations: 35.97 kB / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1592, allocations: 0 / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.1592, allocations: 0 / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1592, allocations: 0 / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.1592, allocations: 0 / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007138/0.1599, allocations: 347.1 kB / 0.5919 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.16, allocations: 92.94 kB / 0.592 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.16, allocations: 8.062 kB / 0.592 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1602, allocations: 15.98 kB / 0.592 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.1603, allocations: 15.97 kB / 0.592 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1603, allocations: 3.984 kB / 0.592 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.373e-05/0.1604, allocations: 115.2 kB / 0.5921 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1604, allocations: 0 / 0.5921 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002619/0.1606, allocations: 35.91 kB / 0.5922 GB, free: 12.21 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0009668/0.1616, allocations: 0.882 MB / 0.593 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000478/0.1621, allocations: 147.9 kB / 0.5932 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1621, allocations: 0 / 0.5932 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000219/0.1623, allocations: 75.83 kB / 0.5932 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.1627, allocations: 32.09 kB / 0.5933 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.1655, allocations: 1.961 MB / 0.5952 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.1658, allocations: 0.7158 MB / 0.5959 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.114e-05/0.1659, allocations: 16.53 kB / 0.5959 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.031e-05/0.166, allocations: 51.14 kB / 0.596 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.166, allocations: 0 / 0.596 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.1861, allocations: 3.226 MB / 0.5991 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.294/7.48, allocations: 10.25 kB / 0.5991 GB, free: 5.074 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)