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.001097/0.001097, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001173/0.001173, allocations: 197.9 kB / 16.14 MB, free: 6.688 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.207/1.207, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8387/0.8387, allocations: 135.1 MB / 425.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 64.94 kB / 0.5048 GB, free: 5.648 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.156, allocations: 80.92 MB / 0.5838 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003067/0.1591, allocations: 2.085 MB / 0.5858 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007208/0.1599, allocations: 0.5143 MB / 0.5863 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.848e-05/0.1599, allocations: 4 kB / 0.5863 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.1601, allocations: 11.86 kB / 0.5864 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.667e-05/0.1602, allocations: 35.64 kB / 0.5864 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.1604, allocations: 55.95 kB / 0.5864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00019/0.1605, allocations: 183.2 kB / 0.5866 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1607, allocations: 65.86 kB / 0.5867 GB, free: 1.922 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1608, allocations: 59.78 kB / 0.5867 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.1609, allocations: 83.61 kB / 0.5868 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.161, allocations: 12 kB / 0.5868 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.69e-05/0.161, allocations: 8 kB / 0.5868 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/0.161, allocations: 31.89 kB / 0.5869 GB, free: 1.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.364e-05/0.1611, allocations: 75.55 kB / 0.5869 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.1613, allocations: 167.7 kB / 0.5871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1613, allocations: 4 kB / 0.5871 GB, free: 1.488 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.01e-07/0.1613, allocations: 0 / 0.5871 GB, free: 1.488 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1613, allocations: 0 / 0.5871 GB, free: 1.488 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.0007221/0.162, allocations: 486.8 kB / 0.5876 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1621, allocations: 15.97 kB / 0.5876 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.1621, allocations: 50.67 kB / 0.5876 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.1622, allocations: 24.66 kB / 0.5877 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.1624, allocations: 204.7 kB / 0.5879 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-05/0.1625, allocations: 46.14 kB / 0.5879 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.1625, allocations: 12.38 kB / 0.5879 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.1629, allocations: 157.5 kB / 0.5881 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1629, allocations: 4 kB / 0.5881 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.1629, allocations: 4 kB / 0.5881 GB, free: 408 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1629, allocations: 4 kB / 0.5881 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.1634, allocations: 139.9 kB / 0.5882 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007704/0.1642, allocations: 0.5387 MB / 0.5887 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003971/0.1646, allocations: 138.7 kB / 0.5889 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.1648, allocations: 76.8 kB / 0.5889 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.1648, allocations: 0 / 0.5889 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.1649, allocations: 34.56 kB / 0.589 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 9.52e-07/0.1649, allocations: 0 / 0.589 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006618/0.1655, allocations: 221.3 kB / 0.5892 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.1656, allocations: 55.41 kB / 0.5892 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1657, allocations: 158 kB / 0.5894 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.1657, allocations: 29.7 kB / 0.5894 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/0.1658, allocations: 124.2 kB / 0.5895 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.594e-05/0.1659, allocations: 43.3 kB / 0.5896 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.562e-05/0.1659, allocations: 33.7 kB / 0.5896 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.166, allocations: 322.8 kB / 0.5899 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.1663, allocations: 63.95 kB / 0.59 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1665, allocations: 83.64 kB / 0.5901 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.1668, allocations: 142.4 kB / 0.5902 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1669, allocations: 4 kB / 0.5902 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004471/0.1673, allocations: 188.3 kB / 0.5904 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.1673, allocations: 10.09 kB / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1673, allocations: 0 / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.1674, allocations: 4 kB / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.1675, allocations: 39.91 kB / 0.5904 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1676, allocations: 0 / 0.5904 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.1677, allocations: 31.81 kB / 0.5905 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.1677, allocations: 4 kB / 0.5905 GB, free: 13.79 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 9.938e-05/0.1678, allocations: 134.2 kB / 0.5906 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.1679, allocations: 15.81 kB / 0.5906 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.1679, allocations: 20.7 kB / 0.5906 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1679, allocations: 4 kB / 0.5906 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1679, allocations: 0 / 0.5906 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1679, allocations: 0 / 0.5906 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.1682, allocations: 241.5 kB / 0.5909 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1682, allocations: 0 / 0.5909 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.1684, allocations: 39.91 kB / 0.5909 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1684, allocations: 7.938 kB / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.1684, allocations: 0 / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1684, allocations: 0 / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1684, allocations: 0 / 0.5909 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006762/0.1691, allocations: 347.1 kB / 0.5912 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.1692, allocations: 88.98 kB / 0.5913 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.1692, allocations: 4 kB / 0.5913 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.1693, allocations: 19.97 kB / 0.5913 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.1694, allocations: 11.98 kB / 0.5913 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1694, allocations: 7.922 kB / 0.5914 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.111e-05/0.1695, allocations: 115.3 kB / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1695, allocations: 0 / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002462/0.1698, allocations: 39.91 kB / 0.5915 GB, free: 12.62 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.0009615/0.1707, allocations: 0.8665 MB / 0.5924 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000424/0.1712, allocations: 143.8 kB / 0.5925 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1712, allocations: 4.188 kB / 0.5925 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.1714, allocations: 79.88 kB / 0.5926 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.1717, allocations: 12 kB / 0.5926 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.1742, allocations: 2.033 MB / 0.5946 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.1745, allocations: 0.7238 MB / 0.5953 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.615e-05/0.1746, allocations: 8.562 kB / 0.5953 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.728e-05/0.1746, allocations: 39.42 kB / 0.5953 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1746, allocations: 4 kB / 0.5953 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3378/0.5124, allocations: 2.909 MB / 0.5982 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/0.5127, allocations: 214.3 kB / 0.5984 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.195, allocations: 0 / 0.5984 GB, free: 5.535 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)