Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001043/0.001043, allocations: 174.7 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.7099/0.7099, 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.475/1.475, allocations: 221.3 MB / 396.8 MB, free: 9.148 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.0008839/0.0008838, allocations: 98.27 kB / 478.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.015e-05/4.02e-05, allocations: 2.094 kB / 0.5551 GB, free: 86.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1617, allocations: 81.59 MB / 0.6348 GB, free: 12.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5659/0.7276, allocations: 113.3 MB / 0.7454 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.7279, allocations: 72.55 kB / 0.7455 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.007696/0.7356, allocations: 2.857 MB / 0.7483 GB, free: 27.61 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7356, allocations: 0 / 0.7483 GB, free: 27.61 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.497e-05/0.7356, allocations: 7.641 kB / 0.7483 GB, free: 27.61 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.0006143/0.7363, allocations: 461.4 kB / 0.7487 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.7363, allocations: 11.62 kB / 0.7487 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.7364, allocations: 19.31 kB / 0.7488 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.7366, allocations: 209.1 kB / 0.749 GB, free: 27 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.0001188/0.7367, allocations: 47.5 kB / 0.749 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/0.7368, allocations: 15.25 kB / 0.749 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.737, allocations: 126.6 kB / 0.7491 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.737, allocations: 1.203 kB / 0.7491 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.7371, allocations: 7.781 kB / 0.7492 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7371, allocations: 3.984 kB / 0.7492 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.7373, allocations: 84.27 kB / 0.7492 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009036/0.7382, allocations: 0.5686 MB / 0.7498 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.7385, allocations: 108.3 kB / 0.7499 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.01e-05/0.7386, allocations: 53.53 kB / 0.7499 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.7386, allocations: 11.45 kB / 0.75 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.7386, allocations: 30.56 kB / 0.75 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.7386, allocations: 3.938 kB / 0.75 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002427/0.7389, allocations: 111.7 kB / 0.7501 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.7389, allocations: 55.19 kB / 0.7501 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.235e-05/0.739, allocations: 129.2 kB / 0.7503 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.739, allocations: 28.7 kB / 0.7503 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.536e-05/0.7391, allocations: 131.1 kB / 0.7504 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.7392, allocations: 41.23 kB / 0.7505 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.7392, allocations: 3 kB / 0.7505 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7393, allocations: 330.3 kB / 0.7508 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.239e-05/0.7394, allocations: 31.16 kB / 0.7508 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.06e-05/0.7394, allocations: 54.41 kB / 0.7509 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.757e-05/0.7395, allocations: 33.72 kB / 0.7509 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7395, allocations: 0 / 0.7509 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001991/0.7397, allocations: 146.4 kB / 0.751 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.7398, allocations: 3.812 kB / 0.751 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.7398, allocations: 3.969 kB / 0.751 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.7398, allocations: 3.094 kB / 0.751 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.74, allocations: 48.75 kB / 0.7511 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.74, allocations: 0 / 0.7511 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.7401, allocations: 30.52 kB / 0.7511 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.7402, allocations: 3.844 kB / 0.7511 GB, free: 25.7 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 8.179e-05/0.7403, allocations: 123.5 kB / 0.7512 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.7403, allocations: 22.53 kB / 0.7513 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/0.7403, allocations: 14.81 kB / 0.7513 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.7404, allocations: 3.875 kB / 0.7513 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.7404, allocations: 0 / 0.7513 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.7404, allocations: 2.672 kB / 0.7513 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.7406, allocations: 239.9 kB / 0.7515 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7406, allocations: 0 / 0.7515 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.7408, allocations: 43.47 kB / 0.7516 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.7408, allocations: 0 / 0.7516 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.7409, allocations: 3.062 kB / 0.7516 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7409, allocations: 0 / 0.7516 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7409, allocations: 0 / 0.7516 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.7412, allocations: 262.5 kB / 0.7518 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/0.7413, allocations: 88.23 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.7413, allocations: 3.875 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.7415, allocations: 31.64 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.7416, allocations: 13.92 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.7416, allocations: 3.875 kB / 0.7519 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 7.098e-05/0.7417, allocations: 109.8 kB / 0.752 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7417, allocations: 0 / 0.752 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002363/0.7419, allocations: 45.91 kB / 0.7521 GB, free: 25.04 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.0001287/0.742, allocations: 107.8 kB / 0.7522 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001878/0.7422, allocations: 83.5 kB / 0.7523 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.7422, allocations: 0 / 0.7523 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.282e-05/0.7423, allocations: 52.16 kB / 0.7523 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.7425, allocations: 21.8 kB / 0.7523 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.7431, allocations: 273.6 kB / 0.7526 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.7434, allocations: 0.7225 MB / 0.7533 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.896e-05/0.7435, allocations: 11.48 kB / 0.7533 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.7436, allocations: 14.7 kB / 0.7533 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.7436, allocations: 0 / 0.7533 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.003374/0.7469, allocations: 1.313 MB / 0.7546 GB, free: 23.95 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)