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") [: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.001802/0.001802, allocations: 175 kB / 7.459 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5863/0.5863, allocations: 133.5 MB / 141.4 MB, free: 15.68 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.083/1.083, allocations: 221.3 MB / 395 MB, free: 10.2 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.000813/0.000813, allocations: 99.28 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.45e-06/5.56e-06, allocations: 3.531 kB / 0.5528 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1019, allocations: 82.3 MB / 0.6332 GB, free: 14.14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3052/0.4072, allocations: 112.8 MB / 0.7434 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001764/0.4074, allocations: 77.98 kB / 0.7435 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.006533/0.4139, allocations: 2.566 MB / 0.746 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.697e-06/0.4139, allocations: 1.859 kB / 0.746 GB, free: 10.53 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.000572/0.4145, allocations: 473.1 kB / 0.7464 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.834e-05/0.4146, allocations: 8.25 kB / 0.7464 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.4146, allocations: 19.44 kB / 0.7465 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.4148, allocations: 208.7 kB / 0.7467 GB, free: 25.92 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.0001005/0.4149, allocations: 42.69 kB / 0.7467 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.4149, allocations: 11.69 kB / 0.7467 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001853/0.4151, allocations: 77.28 kB / 0.7468 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.4153, allocations: 102.2 kB / 0.7469 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.4153, allocations: 0 / 0.7469 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.4154, allocations: 0.5625 kB / 0.7469 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4154, allocations: 3.844 kB / 0.7469 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.4162, allocations: 0.5395 MB / 0.7474 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.4164, allocations: 92.95 kB / 0.7475 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.541e-05/0.4165, allocations: 46.59 kB / 0.7476 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.4165, allocations: 3.906 kB / 0.7476 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.4165, allocations: 39.12 kB / 0.7476 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.4165, allocations: 0 / 0.7476 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002162/0.4167, allocations: 103.1 kB / 0.7477 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.4168, allocations: 51.41 kB / 0.7477 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.4168, allocations: 135.8 kB / 0.7479 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.4169, allocations: 25.7 kB / 0.7479 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.056e-05/0.4169, allocations: 121.5 kB / 0.748 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.417, allocations: 38.33 kB / 0.748 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.417, allocations: 0.75 kB / 0.748 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.665e-05/0.4171, allocations: 329.8 kB / 0.7484 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-05/0.4171, allocations: 30.33 kB / 0.7484 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.806e-05/0.4172, allocations: 48.25 kB / 0.7484 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.258e-05/0.4172, allocations: 29.06 kB / 0.7485 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4172, allocations: 0 / 0.7485 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001693/0.4174, allocations: 134.2 kB / 0.7486 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/0.4174, allocations: 3.969 kB / 0.7486 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.4174, allocations: 3.938 kB / 0.7486 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.4175, allocations: 0 / 0.7486 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.4177, allocations: 58.8 kB / 0.7487 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-06/0.4177, allocations: 0 / 0.7487 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.4178, allocations: 38.16 kB / 0.7487 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.4179, allocations: 4.453 kB / 0.7487 GB, free: 24.66 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.271e-05/0.4179, allocations: 104.9 kB / 0.7488 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.415e-05/0.418, allocations: 16.16 kB / 0.7488 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/0.418, allocations: 16.36 kB / 0.7488 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.418, allocations: 4.469 kB / 0.7488 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.418, allocations: 3.984 kB / 0.7488 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.418, allocations: 0.6562 kB / 0.7488 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.4182, allocations: 209.8 kB / 0.749 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4182, allocations: 4 kB / 0.749 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.4184, allocations: 45.72 kB / 0.7491 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.4185, allocations: 0.75 kB / 0.7491 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.4185, allocations: 0 / 0.7491 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4185, allocations: 4.656 kB / 0.7491 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4185, allocations: 4 kB / 0.7491 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000244/0.4187, allocations: 242.2 kB / 0.7493 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.4188, allocations: 89.55 kB / 0.7494 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.4188, allocations: 4.594 kB / 0.7494 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.419, allocations: 34.3 kB / 0.7494 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.4191, allocations: 16.88 kB / 0.7495 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.4191, allocations: 4.578 kB / 0.7495 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.253e-05/0.4191, allocations: 104.8 kB / 0.7496 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002279/0.4194, allocations: 38.94 kB / 0.7496 GB, free: 24.02 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.111e-05/0.4195, allocations: 102.2 kB / 0.7497 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.4196, allocations: 82.53 kB / 0.7498 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.4196, allocations: 0 / 0.7498 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.113e-05/0.4197, allocations: 41.36 kB / 0.7498 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000184/0.4199, allocations: 22.69 kB / 0.7498 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005121/0.4204, allocations: 247 kB / 0.7501 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.4207, allocations: 0.7438 MB / 0.7508 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of SimCode: time 2.51e-07/0.4207, allocations: 0 / 0.7508 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of Templates: time 0.003532/0.4243, allocations: 1.537 MB / 0.7523 GB, free: 22.96 MB / 0.5105 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)