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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7259/0.7259, allocations: 130.5 MB / 143.8 MB, free: 13.58 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.527/1.527, allocations: 221.3 MB / 396.8 MB, free: 9.168 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.001012/0.001012, allocations: 90.55 kB / 478.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.468e-05, allocations: 3.234 kB / 0.5551 GB, free: 86.13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1674, allocations: 81.58 MB / 0.6347 GB, free: 12.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5816/0.749, allocations: 113.3 MB / 0.7454 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001653/0.7493, allocations: 74.16 kB / 0.7455 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.007337/0.7566, allocations: 2.867 MB / 0.7483 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7566, allocations: 0 / 0.7483 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.386e-05/0.7567, allocations: 3.875 kB / 0.7483 GB, free: 27.76 MB / 0.5105 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.000596/0.7573, allocations: 466.4 kB / 0.7487 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.7573, allocations: 7.812 kB / 0.7488 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.7574, allocations: 23.5 kB / 0.7488 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.7576, allocations: 205.8 kB / 0.749 GB, free: 27.15 MB / 0.5105 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.0001166/0.7577, allocations: 40.45 kB / 0.749 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.7578, allocations: 23.22 kB / 0.749 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.758, allocations: 125.2 kB / 0.7491 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.758, allocations: 0 / 0.7491 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.7581, allocations: 7.625 kB / 0.7492 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.7581, allocations: 4.969 kB / 0.7492 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.7582, allocations: 83.09 kB / 0.7492 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008676/0.7591, allocations: 0.5659 MB / 0.7498 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.7594, allocations: 104.9 kB / 0.7499 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.891e-05/0.7595, allocations: 51.2 kB / 0.7499 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.7596, allocations: 3.938 kB / 0.7499 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.7596, allocations: 38.41 kB / 0.75 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.7596, allocations: 0 / 0.75 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002798/0.7599, allocations: 112.4 kB / 0.7501 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.76, allocations: 51.41 kB / 0.7501 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.7601, allocations: 133.1 kB / 0.7503 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.7601, allocations: 29.58 kB / 0.7503 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.7602, allocations: 121.3 kB / 0.7504 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.873e-05/0.7603, allocations: 43.81 kB / 0.7505 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/0.7603, allocations: 4 kB / 0.7505 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.7604, allocations: 328.7 kB / 0.7508 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.7605, allocations: 31.19 kB / 0.7508 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-05/0.7606, allocations: 57.12 kB / 0.7509 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.038e-05/0.7607, allocations: 35.56 kB / 0.7509 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.7607, allocations: 0 / 0.7509 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002071/0.7609, allocations: 138 kB / 0.751 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.7609, allocations: 12.47 kB / 0.751 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.525e-06/0.7609, allocations: 6.766 kB / 0.751 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.761, allocations: 0 / 0.751 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.7612, allocations: 47.39 kB / 0.7511 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.7612, allocations: 3.984 kB / 0.7511 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.7613, allocations: 33.47 kB / 0.7511 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.7614, allocations: 7.781 kB / 0.7511 GB, free: 25.86 MB / 0.5105 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 () * 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.11e-05/0.7615, allocations: 120.2 kB / 0.7512 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.7615, allocations: 19.44 kB / 0.7513 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.566e-05/0.7616, allocations: 18.69 kB / 0.7513 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.7616, allocations: 4 kB / 0.7513 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.7616, allocations: 3.984 kB / 0.7513 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.7616, allocations: 2.344 kB / 0.7513 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.7619, allocations: 241.6 kB / 0.7515 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.7619, allocations: 0 / 0.7515 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.7621, allocations: 38.8 kB / 0.7516 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.7621, allocations: 0 / 0.7516 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.7621, allocations: 3.844 kB / 0.7516 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.7621, allocations: 7 kB / 0.7516 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7621, allocations: 0 / 0.7516 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.7625, allocations: 261.6 kB / 0.7518 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.648e-05/0.7625, allocations: 84.89 kB / 0.7519 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.7626, allocations: 6.859 kB / 0.7519 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.7628, allocations: 29 kB / 0.7519 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.7628, allocations: 13.08 kB / 0.7519 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.7628, allocations: 3.844 kB / 0.7519 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.667e-05/0.7629, allocations: 117.2 kB / 0.7521 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7629, allocations: 0 / 0.7521 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002558/0.7632, allocations: 38.5 kB / 0.7521 GB, free: 25.19 MB / 0.5105 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) * 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.0001378/0.7633, allocations: 103.7 kB / 0.7522 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001831/0.7635, allocations: 89.06 kB / 0.7523 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7635, allocations: 0 / 0.7523 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.606e-05/0.7636, allocations: 52.94 kB / 0.7523 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.7639, allocations: 14.41 kB / 0.7523 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006105/0.7645, allocations: 278.1 kB / 0.7526 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.7648, allocations: 0.7162 MB / 0.7533 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.993e-05/0.7649, allocations: 15 kB / 0.7533 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/0.7649, allocations: 11.25 kB / 0.7533 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of SimCode: time 5.51e-07/0.7649, allocations: 0 / 0.7533 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of Templates: time 0.003495/0.7684, allocations: 1.315 MB / 0.7546 GB, free: 24.11 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (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)