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/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_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 182.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.6966/0.6966, allocations: 133.3 MB / 150.1 MB, free: 11.14 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.363/1.363, allocations: 222.9 MB / 404.7 MB, free: 6.035 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.00105/0.00105, allocations: 107.6 kB / 485.9 MB, free: 7.176 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009495/0.0009495, allocations: 43.92 kB / 0.5636 GB, free: 69.94 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.122, allocations: 80.42 MB / 0.6421 GB, free: 5.449 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003262/0.1253, allocations: 2.092 MB / 0.6442 GB, free: 3.34 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008372/0.1261, allocations: 0.5221 MB / 0.6447 GB, free: 2.812 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1263, allocations: 4 kB / 0.6447 GB, free: 2.809 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.1264, allocations: 11.86 kB / 0.6447 GB, free: 2.797 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.1265, allocations: 43.62 kB / 0.6447 GB, free: 2.754 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.1267, allocations: 35.97 kB / 0.6448 GB, free: 2.719 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.127, allocations: 191.1 kB / 0.645 GB, free: 2.531 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.1271, allocations: 61.89 kB / 0.645 GB, free: 2.465 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1273, allocations: 67.77 kB / 0.6451 GB, free: 2.398 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.1274, allocations: 75.67 kB / 0.6451 GB, free: 2.324 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.1274, allocations: 8 kB / 0.6452 GB, free: 2.316 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.886e-05/0.1275, allocations: 12 kB / 0.6452 GB, free: 2.305 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 3.872e-05/0.1275, allocations: 35.84 kB / 0.6452 GB, free: 2.27 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 7.601e-05/0.1276, allocations: 75.59 kB / 0.6453 GB, free: 2.195 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1278, allocations: 163.6 kB / 0.6454 GB, free: 2.035 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1278, allocations: 0 / 0.6454 GB, free: 2.035 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1278, allocations: 4 kB / 0.6454 GB, free: 2.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1278, 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.0007648/0.1286, allocations: 490.7 kB / 0.6459 GB, free: 1.504 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1286, allocations: 12.03 kB / 0.6459 GB, free: 1.492 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.1287, allocations: 16.75 kB / 0.6459 GB, free: 1.477 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000197/0.1289, allocations: 216 kB / 0.6461 GB, free: 1.227 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.149e-05/0.129, allocations: 38.27 kB / 0.6462 GB, free: 1.184 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.129, allocations: 12.38 kB / 0.6462 GB, free: 1.172 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.1294, allocations: 169.6 kB / 0.6463 GB, free: 1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1294, allocations: 3.984 kB / 0.6463 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1294, allocations: 4 kB / 0.6464 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.361e-06/0.1295, allocations: 4 kB / 0.6464 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004753/0.1299, allocations: 139.9 kB / 0.6465 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007738/0.1307, allocations: 0.5269 MB / 0.647 GB, free: 268 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.1312, allocations: 142.5 kB / 0.6471 GB, free: 116 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.1314, allocations: 76.81 kB / 0.6472 GB, free: 36 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1314, allocations: 4 kB / 0.6472 GB, free: 32 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.1315, allocations: 34.56 kB / 0.6473 GB, free: 15.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1315, allocations: 0 / 0.6473 GB, free: 15.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=12): time 0.00072/0.1322, allocations: 225.3 kB / 0.6475 GB, free: 15.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.1322, allocations: 51.41 kB / 0.6475 GB, free: 15.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1324, allocations: 155.5 kB / 0.6477 GB, free: 15.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.1324, allocations: 37.64 kB / 0.6477 GB, free: 15.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/0.1325, allocations: 128.1 kB / 0.6478 GB, free: 15.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.1325, allocations: 47.38 kB / 0.6479 GB, free: 15.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-05/0.1326, allocations: 25.72 kB / 0.6479 GB, free: 15.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.82e-05/0.1327, allocations: 322.8 kB / 0.6482 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1329, allocations: 63.94 kB / 0.6483 GB, free: 14.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.1331, allocations: 86.52 kB / 0.6483 GB, free: 14.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.1336, allocations: 147.8 kB / 0.6485 GB, free: 14.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1336, allocations: 3.938 kB / 0.6485 GB, free: 14.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004776/0.1341, allocations: 178.5 kB / 0.6487 GB, free: 14.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1341, allocations: 15.92 kB / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1341, allocations: 0 / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1341, allocations: 0 / 0.6487 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.1343, allocations: 44.03 kB / 0.6487 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1343, allocations: 7.938 kB / 0.6487 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.1345, allocations: 23.91 kB / 0.6487 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.1345, allocations: 8 kB / 0.6488 GB, free: 14.37 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.171e-05/0.1346, allocations: 125.8 kB / 0.6489 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.487e-05/0.1347, allocations: 11.81 kB / 0.6489 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.671e-05/0.1347, allocations: 20.72 kB / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1347, allocations: 0 / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1347, allocations: 3.984 kB / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1347, allocations: 0 / 0.6489 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000245/0.135, allocations: 237.5 kB / 0.6491 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.135, allocations: 0 / 0.6491 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.1352, allocations: 39.91 kB / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1352, allocations: 0 / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1352, allocations: 4 kB / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1352, allocations: 0 / 0.6492 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1352, allocations: 4 kB / 0.6492 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.1379, allocations: 1.699 MB / 0.6508 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.1379, allocations: 92.94 kB / 0.6509 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.138, allocations: 4 kB / 0.6509 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1381, allocations: 23.98 kB / 0.651 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.1382, allocations: 15.97 kB / 0.651 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1382, allocations: 4 kB / 0.651 GB, free: 11.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.063e-05/0.1383, allocations: 111.2 kB / 0.6511 GB, free: 11.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1383, allocations: 0 / 0.6511 GB, free: 11.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003479/0.1387, allocations: 55.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 8.805e-05/0.1388, allocations: 95.25 kB / 0.6512 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004692/0.1392, allocations: 147.9 kB / 0.6514 GB, free: 11.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1392, allocations: 0 / 0.6514 GB, free: 11.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.1395, allocations: 79.88 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.0003368/0.1398, allocations: 16.12 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.0008135/0.1406, allocations: 0.576 MB / 0.652 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.1409, allocations: 0.7238 MB / 0.6527 GB, free: 10.01 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.317e-05/0.141, allocations: 12.55 kB / 0.6527 GB, free: 9.996 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.141, allocations: 19.38 kB / 0.6528 GB, free: 9.977 MB / 458.7 MB Notification: Performance of SimCode: time 1.483e-06/0.141, allocations: 0 / 0.6528 GB, free: 9.977 MB / 458.7 MB Notification: Performance of Templates: time 0.003893/0.1449, allocations: 1.577 MB / 0.6543 GB, free: 8.414 MB / 458.7 MB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (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 & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)