Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.006768/0.006768, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001627/0.001627, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8034/0.8034, allocations: 135.1 MB / 425.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 67.98 kB / 0.5851 GB, free: 21.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1562, allocations: 80.9 MB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003761/0.16, allocations: 2.043 MB / 0.6661 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1614, allocations: 0.526 MB / 0.6666 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.1616, allocations: 4 kB / 0.6666 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1619, allocations: 27.72 kB / 0.6667 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.162, allocations: 43.58 kB / 0.6667 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.1623, allocations: 59.81 kB / 0.6667 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002813/0.1626, allocations: 183.2 kB / 0.6669 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.1628, allocations: 72.19 kB / 0.667 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.163, allocations: 67.77 kB / 0.6671 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.1631, allocations: 91.55 kB / 0.6671 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.685e-05/0.1632, allocations: 16 kB / 0.6672 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.227e-05/0.1632, allocations: 16 kB / 0.6672 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.283e-05/0.1633, allocations: 31.91 kB / 0.6672 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.911e-05/0.1634, allocations: 87.53 kB / 0.6673 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.1637, allocations: 175.5 kB / 0.6675 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1637, allocations: 0 / 0.6675 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1637, allocations: 0 / 0.6675 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.1637, allocations: 0 / 0.6675 GB, free: 2.887 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008689/0.1646, allocations: 494.6 kB / 0.6679 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1646, allocations: 9.109 kB / 0.6679 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.485e-05/0.1647, allocations: 46.73 kB / 0.668 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.1647, allocations: 24.8 kB / 0.668 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.165, allocations: 204.1 kB / 0.6682 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.1651, allocations: 54.22 kB / 0.6683 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.1651, allocations: 12.38 kB / 0.6683 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000421/0.1655, allocations: 154.9 kB / 0.6684 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1656, allocations: 3.938 kB / 0.6684 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1656, allocations: 8 kB / 0.6684 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.1656, allocations: 4 kB / 0.6684 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005061/0.1661, allocations: 143.9 kB / 0.6686 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000815/0.1669, allocations: 0.5386 MB / 0.6691 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004431/0.1674, allocations: 134.6 kB / 0.6692 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.1676, allocations: 76.8 kB / 0.6693 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1677, allocations: 0 / 0.6693 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.1677, allocations: 38.5 kB / 0.6693 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 9.81e-07/0.1677, allocations: 0 / 0.6693 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007234/0.1684, allocations: 221.4 kB / 0.6695 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1685, allocations: 59.41 kB / 0.6696 GB, free: 500 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.1686, allocations: 146.2 kB / 0.6697 GB, free: 344 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1686, allocations: 29.7 kB / 0.6698 GB, free: 308 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.1687, allocations: 132.2 kB / 0.6699 GB, free: 168 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.1688, allocations: 47.61 kB / 0.6699 GB, free: 120 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.1688, allocations: 29.72 kB / 0.67 GB, free: 84 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.169, allocations: 322.8 kB / 0.6703 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.1692, allocations: 63.94 kB / 0.6703 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.1694, allocations: 86.52 kB / 0.6704 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004145/0.1698, allocations: 141.3 kB / 0.6705 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1699, allocations: 3.938 kB / 0.6706 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005088/0.1704, allocations: 197.4 kB / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1704, allocations: 4 kB / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1704, allocations: 0 / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1704, allocations: 4 kB / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.1706, allocations: 39.95 kB / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1707, allocations: 4.062 kB / 0.6708 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.1708, allocations: 27.88 kB / 0.6708 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.1708, allocations: 4 kB / 0.6708 GB, free: 15.17 MB / 0.5137 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.0001144/0.171, allocations: 137.7 kB / 0.671 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.171, allocations: 11.91 kB / 0.671 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/0.1711, allocations: 16.72 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1711, allocations: 0 / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1711, allocations: 4 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1711, allocations: 0 / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.1713, allocations: 241.5 kB / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1714, allocations: 0 / 0.6712 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.1716, allocations: 31.97 kB / 0.6712 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1716, allocations: 0 / 0.6712 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1716, allocations: 4 kB / 0.6712 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.019e-05/0.1716, allocations: 11.92 kB / 0.6713 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1716, allocations: 0 / 0.6713 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007685/0.1724, allocations: 343.2 kB / 0.6716 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.1725, allocations: 92.98 kB / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.1725, allocations: 0 / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.1727, allocations: 28.03 kB / 0.6717 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.1728, allocations: 7.984 kB / 0.6717 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.1728, allocations: 4 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.407e-05/0.1729, allocations: 120.1 kB / 0.6718 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1729, allocations: 0 / 0.6718 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002881/0.1732, allocations: 32 kB / 0.6719 GB, free: 14.02 MB / 0.5137 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.001099/0.1743, allocations: 0.8801 MB / 0.6727 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005349/0.1748, allocations: 139.9 kB / 0.6729 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.1748, allocations: 0 / 0.6729 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.1751, allocations: 79.88 kB / 0.6729 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.1755, allocations: 20.06 kB / 0.6729 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.1786, allocations: 1.988 MB / 0.6749 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.179, allocations: 0.7158 MB / 0.6756 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.632e-05/0.1791, allocations: 8.562 kB / 0.6756 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.532e-05/0.1792, allocations: 47.41 kB / 0.6756 GB, free: 10 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.1792, allocations: 0 / 0.6756 GB, free: 10 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/0.2071, allocations: 3.295 MB / 0.6789 GB, free: 6.812 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/8.009, allocations: 4.531 kB / 0.6789 GB, free: 6.809 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating_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_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)