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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 184.8 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5914/0.5914, allocations: 133.5 MB / 141.4 MB, free: 15.78 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.104/1.104, allocations: 221.3 MB / 395 MB, free: 10.24 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.0008049/0.0008049, allocations: 95.86 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.488e-06/4.518e-06, allocations: 0 / 0.5528 GB, free: 88.87 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1003, allocations: 82.31 MB / 0.6332 GB, free: 14.15 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.296/0.3963, allocations: 112.8 MB / 0.7434 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001572/0.3964, allocations: 73.45 kB / 0.7435 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.006325/0.4028, allocations: 2.566 MB / 0.746 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.4028, allocations: 3.844 kB / 0.746 GB, free: 10.36 MB / 0.4948 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.000565/0.4034, allocations: 473.4 kB / 0.7464 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.716e-05/0.4034, allocations: 11.69 kB / 0.7465 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.4035, allocations: 20.2 kB / 0.7465 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.4036, allocations: 207.8 kB / 0.7467 GB, free: 25.75 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 9.039e-05/0.4037, allocations: 42.08 kB / 0.7467 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.4038, allocations: 7.688 kB / 0.7467 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001565/0.4039, allocations: 76.84 kB / 0.7468 GB, free: 25.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.4041, allocations: 100.7 kB / 0.7469 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4041, allocations: 1.75 kB / 0.7469 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.4041, allocations: 0 / 0.7469 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4042, allocations: 11.86 kB / 0.7469 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007715/0.4049, allocations: 0.5366 MB / 0.7474 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.4052, allocations: 96.2 kB / 0.7475 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.327e-05/0.4052, allocations: 52.52 kB / 0.7476 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.4053, allocations: 3.906 kB / 0.7476 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.453e-05/0.4053, allocations: 31.08 kB / 0.7476 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.4053, allocations: 0 / 0.7476 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.000194/0.4055, allocations: 102.2 kB / 0.7477 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.4055, allocations: 55.25 kB / 0.7478 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.042e-05/0.4056, allocations: 135.3 kB / 0.7479 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.4056, allocations: 25.7 kB / 0.7479 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.4057, allocations: 122.8 kB / 0.748 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.4057, allocations: 42.75 kB / 0.7481 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.4057, allocations: 0 / 0.7481 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.4058, allocations: 326.3 kB / 0.7484 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.009e-05/0.4059, allocations: 30.52 kB / 0.7484 GB, free: 24.58 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.656e-05/0.4059, allocations: 53.64 kB / 0.7485 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.196e-05/0.406, allocations: 28.81 kB / 0.7485 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.406, allocations: 0 / 0.7485 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000164/0.4062, allocations: 124.2 kB / 0.7486 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.4062, allocations: 7.781 kB / 0.7486 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.4062, allocations: 0 / 0.7486 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.4062, allocations: 4.484 kB / 0.7486 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.4064, allocations: 54.34 kB / 0.7487 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.4064, allocations: 0 / 0.7487 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.4066, allocations: 38.61 kB / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.4066, allocations: 3.844 kB / 0.7487 GB, free: 24.48 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 6.733e-05/0.4067, allocations: 105.6 kB / 0.7488 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.249e-05/0.4067, allocations: 19.44 kB / 0.7488 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.4067, allocations: 21.17 kB / 0.7488 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4067, allocations: 0 / 0.7488 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.4068, allocations: 0 / 0.7488 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4068, allocations: 0.6094 kB / 0.7488 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.4069, allocations: 204.9 kB / 0.749 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.407, allocations: 0 / 0.749 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.4072, allocations: 51.19 kB / 0.7491 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.4072, allocations: 0 / 0.7491 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.4072, allocations: 8.609 kB / 0.7491 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4072, allocations: 0 / 0.7491 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4072, allocations: 0 / 0.7491 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002454/0.4074, allocations: 238.9 kB / 0.7493 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.4075, allocations: 96.77 kB / 0.7494 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.4075, allocations: 4.641 kB / 0.7494 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.4077, allocations: 29.73 kB / 0.7494 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.4077, allocations: 14.25 kB / 0.7495 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-06/0.4078, allocations: 3.891 kB / 0.7495 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.274e-05/0.4078, allocations: 109.1 kB / 0.7496 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002245/0.408, allocations: 34.25 kB / 0.7496 GB, free: 23.84 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 9.376e-05/0.4081, allocations: 102 kB / 0.7497 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001421/0.4083, allocations: 83.08 kB / 0.7498 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.4083, allocations: 128 / 0.7498 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 5.997e-05/0.4084, allocations: 43.86 kB / 0.7498 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.4086, allocations: 17.67 kB / 0.7498 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004929/0.4091, allocations: 254.5 kB / 0.7501 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002426/0.4093, allocations: 0.7395 MB / 0.7508 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of SimCode: time 2.21e-07/0.4093, allocations: 3.938 kB / 0.7508 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.003366/0.4127, allocations: 1.525 MB / 0.7523 GB, free: 22.8 MB / 0.5105 GB 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)