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.01744/0.01744, allocations: 172 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8229/0.8229, allocations: 135.2 MB / 151.1 MB, free: 13.83 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.777/1.777, allocations: 223.2 MB / 406.9 MB, free: 3.203 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008945, allocations: 100.5 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004124/0.0004125, allocations: 8 kB / 0.5691 GB, free: 14.19 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.55/0.5505, allocations: 82.29 MB / 0.6495 GB, free: 36.19 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1822/0.7327, allocations: 113.7 MB / 0.7605 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.7331, allocations: 71.95 kB / 0.7605 GB, free: 2.305 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008301/0.7414, allocations: 2.871 MB / 0.7633 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.224e-06/0.7415, allocations: 0 / 0.7633 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.646e-05/0.7415, allocations: 4 kB / 0.7633 GB, free: 15.41 MB / 0.5417 GB 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.0007965/0.7423, allocations: 478.7 kB / 0.7638 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.7424, allocations: 12.03 kB / 0.7638 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.663e-05/0.7425, allocations: 19.72 kB / 0.7638 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.7427, allocations: 216.1 kB / 0.764 GB, free: 14.61 MB / 0.5417 GB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: con.y_boolean = false to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.7429, allocations: 37.69 kB / 0.7641 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.743, allocations: 16 kB / 0.7641 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004198/0.7434, allocations: 165.6 kB / 0.7642 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.7434, allocations: 4 kB / 0.7642 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.7434, allocations: 7.984 kB / 0.7642 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.7435, allocations: 4 kB / 0.7642 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.7439, allocations: 163.9 kB / 0.7644 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.745, allocations: 0.5737 MB / 0.765 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004565/0.7454, allocations: 142.6 kB / 0.7651 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.7455, allocations: 0 / 0.7651 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.7455, allocations: 42.5 kB / 0.7651 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.7455, allocations: 4 kB / 0.7651 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12): time 0.0007706/0.7463, allocations: 253.5 kB / 0.7654 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.7463, allocations: 51.41 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.7465, allocations: 142.6 kB / 0.7656 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.7465, allocations: 25.7 kB / 0.7656 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.7466, allocations: 128.1 kB / 0.7657 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.7466, allocations: 43.67 kB / 0.7658 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-06/0.7467, allocations: 0 / 0.7658 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.7468, allocations: 330.7 kB / 0.7661 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.747, allocations: 75.95 kB / 0.7661 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.7473, allocations: 98.39 kB / 0.7662 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.7475, allocations: 80.83 kB / 0.7663 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7475, allocations: 0 / 0.7663 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004929/0.748, allocations: 209.4 kB / 0.7665 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.748, allocations: 11.94 kB / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.7481, allocations: 0 / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.7481, allocations: 0 / 0.7665 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.7483, allocations: 48.03 kB / 0.7666 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.7483, allocations: 0 / 0.7666 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.7485, allocations: 35.88 kB / 0.7666 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.7485, allocations: 4 kB / 0.7666 GB, free: 11.8 MB / 0.5417 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 0.0001202/0.7486, allocations: 134.3 kB / 0.7667 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.7487, allocations: 11.81 kB / 0.7668 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.7487, allocations: 24.7 kB / 0.7668 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.7487, allocations: 0 / 0.7668 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.7488, allocations: 4 kB / 0.7668 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.7488, allocations: 0 / 0.7668 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.749, allocations: 241.5 kB / 0.767 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.7491, allocations: 0 / 0.767 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002063/0.7493, allocations: 43.97 kB / 0.7671 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.7493, allocations: 0 / 0.7671 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.7493, allocations: 7.938 kB / 0.7671 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.7493, allocations: 4 kB / 0.7671 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7493, allocations: 0 / 0.7671 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.7501, allocations: 382.7 kB / 0.7674 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.7502, allocations: 85.05 kB / 0.7675 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.7502, allocations: 0 / 0.7675 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.7504, allocations: 36.03 kB / 0.7675 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.7504, allocations: 7.984 kB / 0.7676 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.7505, allocations: 11.98 kB / 0.7676 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 8.206e-05/0.7505, allocations: 111.4 kB / 0.7677 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7506, allocations: 0 / 0.7677 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002789/0.7508, allocations: 39.84 kB / 0.7677 GB, free: 10.59 MB / 0.5417 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.000142/0.751, allocations: 107.2 kB / 0.7678 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005096/0.7515, allocations: 175.9 kB / 0.768 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7515, allocations: 0 / 0.768 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.7517, allocations: 83.95 kB / 0.7681 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.752, allocations: 16.75 kB / 0.7681 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008701/0.7529, allocations: 493.7 kB / 0.7685 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.7532, allocations: 0.7277 MB / 0.7693 GB, free: 8.945 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.555e-05/0.7533, allocations: 8.547 kB / 0.7693 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.7534, allocations: 19.38 kB / 0.7693 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of SimCode: time 3.71e-07/0.7534, allocations: 0 / 0.7693 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of Templates: time 0.004173/0.7575, allocations: 1.299 MB / 0.7705 GB, free: 7.633 MB / 0.5417 GB 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)