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.001192/0.001192, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001212/0.001212, allocations: 193 kB / 16.13 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.245/1.245, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8683/0.8683, allocations: 135.1 MB / 425.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 64.22 kB / 0.5048 GB, free: 5.641 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1345, allocations: 80.92 MB / 0.5838 GB, free: 4.891 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.004568/0.1391, allocations: 2.085 MB / 0.5858 GB, free: 2.785 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1403, allocations: 0.5182 MB / 0.5863 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1404, allocations: 0 / 0.5863 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.1406, allocations: 19.84 kB / 0.5864 GB, free: 2.242 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.1407, allocations: 35.69 kB / 0.5864 GB, free: 2.207 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.141, allocations: 55.89 kB / 0.5864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.1413, allocations: 175.2 kB / 0.5866 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.1415, allocations: 71.83 kB / 0.5867 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.1416, allocations: 71.72 kB / 0.5868 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.1418, allocations: 75.67 kB / 0.5868 GB, free: 1.766 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.1418, allocations: 8 kB / 0.5868 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.44e-05/0.1419, allocations: 12 kB / 0.5868 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.374e-05/0.1419, allocations: 31.84 kB / 0.5869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.1421, allocations: 75.59 kB / 0.5869 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.1423, allocations: 167.6 kB / 0.5871 GB, free: 1.477 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1423, allocations: 4 kB / 0.5871 GB, free: 1.473 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1423, allocations: 0 / 0.5871 GB, free: 1.473 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.1423, allocations: 0 / 0.5871 GB, free: 1.473 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.001026/0.1434, allocations: 490.8 kB / 0.5876 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1434, allocations: 12.03 kB / 0.5876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.1435, allocations: 50.73 kB / 0.5876 GB, free: 0.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.1436, allocations: 24.66 kB / 0.5877 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.1438, allocations: 211.9 kB / 0.5879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.144, allocations: 38.27 kB / 0.5879 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.144, allocations: 12.38 kB / 0.5879 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006193/0.1446, allocations: 153.5 kB / 0.5881 GB, free: 408 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.1447, allocations: 4 kB / 0.5881 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.1447, allocations: 8 kB / 0.5881 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1447, allocations: 4 kB / 0.5881 GB, free: 392 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006611/0.1454, allocations: 143.8 kB / 0.5882 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.1465, allocations: 0.5385 MB / 0.5887 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.1471, allocations: 138.6 kB / 0.5889 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.1474, allocations: 76.81 kB / 0.5889 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.1474, allocations: 4 kB / 0.5889 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.1475, allocations: 38.55 kB / 0.589 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.1475, allocations: 0 / 0.589 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0009295/0.1484, allocations: 213.5 kB / 0.5892 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1485, allocations: 51.41 kB / 0.5892 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1486, allocations: 165.4 kB / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1487, allocations: 29.7 kB / 0.5894 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.1487, allocations: 124.1 kB / 0.5895 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.1488, allocations: 47.39 kB / 0.5896 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.1489, allocations: 29.7 kB / 0.5896 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002166/0.1491, allocations: 322.8 kB / 0.5899 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.1494, allocations: 55.95 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.1497, allocations: 90.03 kB / 0.5901 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.1502, allocations: 146.4 kB / 0.5902 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1503, allocations: 0 / 0.5902 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006596/0.1509, allocations: 188.2 kB / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.151, allocations: 11.94 kB / 0.5904 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.151, allocations: 64 / 0.5904 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.151, allocations: 4 kB / 0.5904 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.1513, allocations: 35.97 kB / 0.5904 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/0.1513, allocations: 0 / 0.5904 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.1515, allocations: 35.81 kB / 0.5905 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.1515, allocations: 4 kB / 0.5905 GB, free: 13.77 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.0001462/0.1517, allocations: 130.2 kB / 0.5906 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.1517, allocations: 15.81 kB / 0.5906 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.406e-05/0.1518, allocations: 24.7 kB / 0.5906 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1518, allocations: 0 / 0.5906 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1518, allocations: 0 / 0.5906 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1518, allocations: 0 / 0.5906 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.1522, allocations: 241.5 kB / 0.5909 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1522, allocations: 4 kB / 0.5909 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.1524, allocations: 31.97 kB / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1525, allocations: 0 / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.1525, allocations: 8 kB / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.1525, allocations: 4 kB / 0.5909 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1525, allocations: 0 / 0.5909 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009571/0.1535, allocations: 347 kB / 0.5912 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.1535, allocations: 88.98 kB / 0.5913 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.1536, allocations: 4 kB / 0.5913 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.1538, allocations: 19.97 kB / 0.5913 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.1539, allocations: 7.984 kB / 0.5914 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1539, allocations: 8 kB / 0.5914 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001032/0.154, allocations: 111.2 kB / 0.5915 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.154, allocations: 4.062 kB / 0.5915 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004071/0.1544, allocations: 35.91 kB / 0.5915 GB, free: 12.61 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.0013/0.1558, allocations: 0.8795 MB / 0.5924 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006611/0.1564, allocations: 139.8 kB / 0.5925 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1564, allocations: 0 / 0.5925 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.1568, allocations: 84 kB / 0.5926 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000502/0.1573, allocations: 16 kB / 0.5926 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.1609, allocations: 2.02 MB / 0.5946 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.1613, allocations: 0.72 MB / 0.5953 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001065/0.1614, allocations: 8.547 kB / 0.5953 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.1615, allocations: 39.42 kB / 0.5953 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1615, allocations: 0 / 0.5953 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2382/0.3997, allocations: 2.914 MB / 0.5982 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/0.4, allocations: 211.2 kB / 0.5984 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.095, allocations: 3.938 kB / 0.5984 GB, free: 5.523 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)