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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7077/0.7077, allocations: 133.3 MB / 150.1 MB, free: 11.15 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 404.7 MB, free: 6.039 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 106.1 kB / 485.9 MB, free: 7.164 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 51.92 kB / 0.5636 GB, free: 69.94 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1349, allocations: 80.43 MB / 0.6421 GB, free: 5.449 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003199/0.1381, allocations: 2.092 MB / 0.6442 GB, free: 3.34 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008182/0.139, allocations: 0.5221 MB / 0.6447 GB, free: 2.812 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.256e-05/0.1391, allocations: 8 kB / 0.6447 GB, free: 2.805 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1392, allocations: 15.84 kB / 0.6447 GB, free: 2.789 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 9.636e-05/0.1393, allocations: 35.64 kB / 0.6447 GB, free: 2.754 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.1395, allocations: 47.94 kB / 0.6448 GB, free: 2.707 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.1397, allocations: 171.3 kB / 0.6449 GB, free: 2.539 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1399, allocations: 65.83 kB / 0.645 GB, free: 2.469 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.14, allocations: 71.7 kB / 0.6451 GB, free: 2.398 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1402, allocations: 75.69 kB / 0.6451 GB, free: 2.324 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.82e-05/0.1402, allocations: 8 kB / 0.6452 GB, free: 2.316 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.784e-05/0.1402, allocations: 12 kB / 0.6452 GB, free: 2.305 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.1403, allocations: 31.84 kB / 0.6452 GB, free: 2.273 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 8.447e-05/0.1404, allocations: 79.58 kB / 0.6453 GB, free: 2.195 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.1405, allocations: 163.6 kB / 0.6454 GB, free: 2.035 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1405, allocations: 0 / 0.6454 GB, free: 2.035 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1405, allocations: 3.984 kB / 0.6454 GB, free: 2.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1405, allocations: 0 / 0.6454 GB, free: 2.031 MB / 442.7 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.000752/0.1413, allocations: 490.8 kB / 0.6459 GB, free: 1.504 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1413, allocations: 16.02 kB / 0.6459 GB, free: 1.488 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.665e-05/0.1414, allocations: 16.75 kB / 0.6459 GB, free: 1.473 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.1416, allocations: 212 kB / 0.6461 GB, free: 1.227 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.573e-05/0.1417, allocations: 38.27 kB / 0.6462 GB, free: 1.184 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.1417, allocations: 16.36 kB / 0.6462 GB, free: 1.168 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.1421, allocations: 161.7 kB / 0.6463 GB, free: 1.004 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1421, allocations: 4 kB / 0.6463 GB, free: 1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.1422, allocations: 4 kB / 0.6463 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1422, allocations: 4 kB / 0.6464 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004757/0.1427, allocations: 147.8 kB / 0.6465 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007426/0.1434, allocations: 0.5269 MB / 0.647 GB, free: 264 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.1438, allocations: 134.6 kB / 0.6471 GB, free: 120 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.1441, allocations: 80.75 kB / 0.6472 GB, free: 36 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.1441, allocations: 8 kB / 0.6472 GB, free: 28 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.1441, allocations: 34.55 kB / 0.6473 GB, free: 15.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1442, allocations: 0 / 0.6473 GB, free: 15.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=12): time 0.000699/0.1449, allocations: 221.4 kB / 0.6475 GB, free: 15.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.1449, allocations: 59.28 kB / 0.6475 GB, free: 15.69 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.145, allocations: 155.5 kB / 0.6477 GB, free: 15.53 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.145, allocations: 25.7 kB / 0.6477 GB, free: 15.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.1451, allocations: 124.2 kB / 0.6478 GB, free: 15.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.1452, allocations: 47.33 kB / 0.6479 GB, free: 15.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.782e-05/0.1452, allocations: 33.7 kB / 0.6479 GB, free: 15.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1454, allocations: 326.8 kB / 0.6482 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1456, allocations: 55.95 kB / 0.6483 GB, free: 14.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.1458, allocations: 88.06 kB / 0.6483 GB, free: 14.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.1462, allocations: 147.3 kB / 0.6485 GB, free: 14.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1462, allocations: 3.938 kB / 0.6485 GB, free: 14.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004831/0.1467, allocations: 189.3 kB / 0.6487 GB, free: 14.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1467, allocations: 8 kB / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.1468, allocations: 0 / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1468, allocations: 0 / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.147, allocations: 35.97 kB / 0.6487 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.147, allocations: 0 / 0.6487 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.1471, allocations: 35.97 kB / 0.6487 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.1472, allocations: 4 kB / 0.6487 GB, free: 14.38 MB / 458.7 MB 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.367e-05/0.1473, allocations: 125.7 kB / 0.6489 GB, free: 14.24 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.1473, allocations: 15.81 kB / 0.6489 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.634e-05/0.1474, allocations: 24.7 kB / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1474, allocations: 0 / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1474, allocations: 0 / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1474, allocations: 0 / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.1476, allocations: 245.5 kB / 0.6491 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1476, allocations: 0 / 0.6491 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.1479, allocations: 31.97 kB / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1479, allocations: 0 / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.148, allocations: 4 kB / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.148, allocations: 4 kB / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.148, allocations: 0 / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002884/0.1509, allocations: 1.708 MB / 0.6508 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.1509, allocations: 88.95 kB / 0.6509 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.151, allocations: 0 / 0.6509 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.1511, allocations: 23.91 kB / 0.6509 GB, free: 11.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.1512, allocations: 15.98 kB / 0.651 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.1512, allocations: 0 / 0.651 GB, free: 11.89 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.925e-05/0.1513, allocations: 115.3 kB / 0.6511 GB, free: 11.78 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1513, allocations: 4 kB / 0.6511 GB, free: 11.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000349/0.1516, allocations: 51.84 kB / 0.6511 GB, free: 11.72 MB / 458.7 MB 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 9.425e-05/0.1517, allocations: 99.23 kB / 0.6512 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004698/0.1522, allocations: 151.9 kB / 0.6514 GB, free: 11.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1522, allocations: 4 kB / 0.6514 GB, free: 11.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.1525, allocations: 71.89 kB / 0.6514 GB, free: 11.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.1528, allocations: 22.22 kB / 0.6515 GB, free: 11.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008449/0.1537, allocations: 0.5721 MB / 0.652 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1539, allocations: 0.716 MB / 0.6527 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.436e-05/0.154, allocations: 12.55 kB / 0.6527 GB, free: 10 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.835e-05/0.1541, allocations: 11.44 kB / 0.6527 GB, free: 9.992 MB / 458.7 MB Notification: Performance of SimCode: time 2.6e-07/0.1541, allocations: 4 kB / 0.6527 GB, free: 9.988 MB / 458.7 MB Notification: Performance of Templates: time 0.003828/0.1579, allocations: 1.566 MB / 0.6543 GB, free: 8.434 MB / 458.7 MB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (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 & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)