Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008827/0.0008827, allocations: 98.77 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.0008874/0.0008877, allocations: 177.3 kB / 15.94 MB, free: 228 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.28/1.28, allocations: 223.2 MB / 239.9 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8513/0.8513, allocations: 135.2 MB / 426.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002909, allocations: 8 kB / 0.5068 GB, free: 5.223 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.145, allocations: 82.3 MB / 0.5872 GB, free: 3.086 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002179/0.1472, allocations: 1.636 MB / 0.5888 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007148/0.148, allocations: 0.5009 MB / 0.5893 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.999e-05/0.148, allocations: 7.938 kB / 0.5893 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.1481, allocations: 7.922 kB / 0.5893 GB, free: 0.918 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.1482, allocations: 51.83 kB / 0.5893 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.1484, allocations: 39.94 kB / 0.5894 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001965/0.1486, allocations: 131.7 kB / 0.5895 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1487, allocations: 53.77 kB / 0.5895 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1488, allocations: 63.77 kB / 0.5896 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1489, allocations: 67.69 kB / 0.5897 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.149, allocations: 4 kB / 0.5897 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.118e-05/0.149, allocations: 8 kB / 0.5897 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.634e-05/0.149, allocations: 19.92 kB / 0.5897 GB, free: 500 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.1491, allocations: 53.64 kB / 0.5898 GB, free: 440 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.1492, allocations: 120 kB / 0.5899 GB, free: 320 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1492, allocations: 4 kB / 0.5899 GB, free: 316 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1492, allocations: 0 / 0.5899 GB, free: 316 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1492, allocations: 3.938 kB / 0.5899 GB, free: 312 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.0006851/0.1499, allocations: 482.6 kB / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.15, allocations: 8.031 kB / 0.5903 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.75e-05/0.15, allocations: 23.7 kB / 0.5904 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.1502, allocations: 206 kB / 0.5906 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.177e-05/0.1503, allocations: 49.62 kB / 0.5906 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.1503, allocations: 12 kB / 0.5906 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.1507, allocations: 165.6 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1507, allocations: 0 / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.1507, allocations: 4 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1507, allocations: 4 kB / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.1513, allocations: 168.4 kB / 0.5909 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007768/0.152, allocations: 0.5502 MB / 0.5915 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004267/0.1525, allocations: 142.7 kB / 0.5916 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1525, allocations: 0 / 0.5916 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.1525, allocations: 34.78 kB / 0.5917 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.545e-06/0.1525, allocations: 0 / 0.5917 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007212/0.1533, allocations: 261.3 kB / 0.5919 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.1533, allocations: 55.41 kB / 0.592 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1534, allocations: 153.7 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.1535, allocations: 29.7 kB / 0.5921 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.1536, allocations: 132.1 kB / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.1536, allocations: 43.41 kB / 0.5923 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-06/0.1536, allocations: 0 / 0.5923 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1537, allocations: 334.8 kB / 0.5926 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1539, allocations: 67.95 kB / 0.5927 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.1542, allocations: 102 kB / 0.5928 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.1544, allocations: 75.89 kB / 0.5929 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1544, allocations: 0 / 0.5929 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004947/0.1549, allocations: 213.4 kB / 0.5931 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1549, allocations: 12 kB / 0.5931 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1549, allocations: 0 / 0.5931 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1549, allocations: 4 kB / 0.5931 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.1551, allocations: 39.97 kB / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1551, allocations: 0 / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.1553, allocations: 43.88 kB / 0.5932 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.1553, allocations: 0 / 0.5932 GB, free: 12.71 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.448e-05/0.1554, allocations: 133.7 kB / 0.5933 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.1555, allocations: 15.81 kB / 0.5933 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.1555, allocations: 20.7 kB / 0.5933 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1555, allocations: 4 kB / 0.5933 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1555, allocations: 0 / 0.5933 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.1555, allocations: 7.938 kB / 0.5933 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.1557, allocations: 241.5 kB / 0.5936 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-06/0.1558, allocations: 0 / 0.5936 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.1559, allocations: 39.97 kB / 0.5936 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.156, allocations: 3.984 kB / 0.5936 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.156, allocations: 8 kB / 0.5936 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.156, allocations: 0 / 0.5936 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.156, allocations: 0 / 0.5936 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1567, allocations: 388.3 kB / 0.594 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1567, allocations: 85 kB / 0.5941 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.1568, allocations: 8 kB / 0.5941 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.1569, allocations: 19.98 kB / 0.5941 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.157, allocations: 15.97 kB / 0.5941 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.157, allocations: 4 kB / 0.5941 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.798e-05/0.1571, allocations: 115.3 kB / 0.5942 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1571, allocations: 0 / 0.5942 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002384/0.1573, allocations: 39.84 kB / 0.5943 GB, free: 11.49 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.0001141/0.1575, allocations: 100.3 kB / 0.5943 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004466/0.1579, allocations: 167.8 kB / 0.5945 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1579, allocations: 0 / 0.5945 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.1582, allocations: 95.55 kB / 0.5946 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.1584, allocations: 19.98 kB / 0.5946 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/0.1591, allocations: 477.4 kB / 0.5951 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.1594, allocations: 0.7238 MB / 0.5958 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.024e-05/0.1594, allocations: 8.547 kB / 0.5958 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.1595, allocations: 15.44 kB / 0.5958 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1595, allocations: 0 / 0.5958 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of Templates: time 0.003454/0.1629, allocations: 1.296 MB / 0.5971 GB, free: 8.547 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1) Environment - environmentSimulation: