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.0009348/0.0009346, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008986/0.0008989, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9592/0.9592, allocations: 135.2 MB / 426.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 8 kB / 0.5069 GB, free: 5.266 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1716, allocations: 82.32 MB / 0.5873 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.001831/0.1735, allocations: 1.636 MB / 0.5889 GB, free: 1.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006764/0.1742, allocations: 0.5008 MB / 0.5894 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.446e-05/0.1743, allocations: 0 / 0.5894 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.851e-05/0.1743, allocations: 19.84 kB / 0.5894 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1744, allocations: 43.84 kB / 0.5894 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.1746, allocations: 39.95 kB / 0.5895 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.1748, allocations: 135.7 kB / 0.5896 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.175, allocations: 49.81 kB / 0.5896 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1751, allocations: 55.78 kB / 0.5897 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.1752, allocations: 75.69 kB / 0.5898 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.1752, allocations: 4 kB / 0.5898 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.345e-05/0.1753, allocations: 8 kB / 0.5898 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.035e-05/0.1753, allocations: 27.84 kB / 0.5898 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.1753, allocations: 53.64 kB / 0.5899 GB, free: 480 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.1755, allocations: 115.9 kB / 0.59 GB, free: 364 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.1755, allocations: 0 / 0.59 GB, free: 364 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1755, allocations: 0 / 0.59 GB, free: 364 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1755, allocations: 0 / 0.59 GB, free: 364 kB / 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.0007092/0.1762, allocations: 478.8 kB / 0.5904 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1763, allocations: 16.03 kB / 0.5904 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.147e-05/0.1763, allocations: 50.55 kB / 0.5905 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.1764, allocations: 19.72 kB / 0.5905 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.1766, allocations: 214 kB / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.141e-05/0.1766, allocations: 41.69 kB / 0.5907 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.1767, allocations: 12 kB / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.1771, allocations: 169.5 kB / 0.5909 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.1771, allocations: 0 / 0.5909 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.1771, allocations: 4 kB / 0.5909 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.1771, allocations: 4 kB / 0.5909 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.1776, allocations: 172.4 kB / 0.5911 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.1783, allocations: 0.5464 MB / 0.5916 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.1787, allocations: 150.6 kB / 0.5918 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1788, allocations: 0 / 0.5918 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.1788, allocations: 34.56 kB / 0.5918 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 8.42e-07/0.1788, allocations: 0 / 0.5918 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007082/0.1795, allocations: 261.3 kB / 0.5921 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.1796, allocations: 55.41 kB / 0.5921 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.1797, allocations: 149.5 kB / 0.5922 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.1797, allocations: 33.7 kB / 0.5923 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.1798, allocations: 128.1 kB / 0.5924 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.1798, allocations: 39.39 kB / 0.5924 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.616e-06/0.1798, allocations: 8 kB / 0.5924 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1799, allocations: 327 kB / 0.5928 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.1802, allocations: 67.95 kB / 0.5928 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1804, allocations: 102.5 kB / 0.5929 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.1806, allocations: 75.95 kB / 0.593 GB, free: 13 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1806, allocations: 0 / 0.593 GB, free: 13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004664/0.1811, allocations: 213.3 kB / 0.5932 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.1811, allocations: 8.062 kB / 0.5932 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1811, allocations: 0 / 0.5932 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1811, allocations: 4 kB / 0.5932 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1813, allocations: 43.91 kB / 0.5932 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1813, allocations: 3.984 kB / 0.5933 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.1815, allocations: 39.91 kB / 0.5933 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1815, allocations: 8 kB / 0.5933 GB, free: 12.68 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 ($PRE.con.y_boolean,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.624e-05/0.1816, allocations: 124.2 kB / 0.5934 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.1816, allocations: 19.75 kB / 0.5934 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.971e-05/0.1817, allocations: 20.64 kB / 0.5935 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1817, allocations: 4 kB / 0.5935 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1817, allocations: 0 / 0.5935 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1817, allocations: 4 kB / 0.5935 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.182, allocations: 241.5 kB / 0.5937 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.182, allocations: 0 / 0.5937 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.1822, allocations: 39.97 kB / 0.5937 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1822, allocations: 0 / 0.5937 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1822, allocations: 4 kB / 0.5937 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1822, allocations: 0 / 0.5937 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1822, allocations: 4 kB / 0.5937 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007074/0.1829, allocations: 387 kB / 0.5941 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.183, allocations: 89.08 kB / 0.5942 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.183, allocations: 4.031 kB / 0.5942 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.1832, allocations: 27.91 kB / 0.5942 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.1832, allocations: 15.98 kB / 0.5942 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.1832, allocations: 0 / 0.5942 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.056e-05/0.1833, allocations: 115.2 kB / 0.5943 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1833, allocations: 4 kB / 0.5944 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002451/0.1836, allocations: 31.91 kB / 0.5944 GB, free: 11.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000927/0.1845, allocations: 0.9162 MB / 0.5953 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004484/0.185, allocations: 168 kB / 0.5954 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.185, allocations: 3.938 kB / 0.5954 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.1852, allocations: 91.12 kB / 0.5955 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.1854, allocations: 12 kB / 0.5955 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.1872, allocations: 1.4 MB / 0.5969 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.1875, allocations: 0.7199 MB / 0.5976 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.23e-05/0.1875, allocations: 16.53 kB / 0.5976 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.924e-05/0.1876, allocations: 47.42 kB / 0.5977 GB, free: 8 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1876, allocations: 0 / 0.5977 GB, free: 8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.043/2.231, allocations: 2.771 MB / 0.6004 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/2.231, allocations: 187.5 kB / 0.6006 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/3.906, allocations: 0 / 0.6006 GB, free: 5.145 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/linux/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) Environment - environmentSimulation: