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-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: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002243/0.002243, allocations: 174.8 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-master/package.mo): time 0.8265/0.8265, allocations: 133.4 MB / 146.7 MB, free: 10.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.843/1.843, allocations: 221.3 MB / 400.4 MB, free: 5.84 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.001037/0.001037, allocations: 99.75 kB / 483.3 MB, free: 5.859 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.442e-05/3.461e-05, allocations: 2.906 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1637, allocations: 82.31 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6656/0.8294, allocations: 113.6 MB / 0.7514 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.8296, allocations: 71.61 kB / 0.7515 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.008266/0.8379, allocations: 2.861 MB / 0.7543 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.833e-06/0.838, allocations: 0 / 0.7543 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.593e-05/0.838, allocations: 7.75 kB / 0.7543 GB, free: 27.41 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.0009261/0.8389, allocations: 468.2 kB / 0.7547 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.839, allocations: 7.656 kB / 0.7547 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.092e-05/0.8391, allocations: 44.34 kB / 0.7548 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.183e-05/0.8392, allocations: 23.38 kB / 0.7548 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.8395, allocations: 216.8 kB / 0.755 GB, free: 26.77 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.0001388/0.8397, allocations: 45.25 kB / 0.7551 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.8397, allocations: 11.34 kB / 0.7551 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.84, allocations: 126.6 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.84, allocations: 0 / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.8401, allocations: 7.25 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.8401, allocations: 3.688 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.8402, allocations: 81.28 kB / 0.7553 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.8413, allocations: 0.5749 MB / 0.7558 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.8416, allocations: 106.1 kB / 0.7559 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.8417, allocations: 49.95 kB / 0.756 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.8417, allocations: 7.938 kB / 0.756 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.8417, allocations: 36.47 kB / 0.756 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 2.615e-06/0.8417, allocations: 0 / 0.756 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002692/0.842, allocations: 109.8 kB / 0.7561 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.842, allocations: 51.41 kB / 0.7562 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.8422, allocations: 137.9 kB / 0.7563 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.8422, allocations: 25.7 kB / 0.7563 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.273e-05/0.8423, allocations: 127.8 kB / 0.7565 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.8423, allocations: 46.92 kB / 0.7565 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.8423, allocations: 0 / 0.7565 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.8425, allocations: 330.5 kB / 0.7568 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.068e-05/0.8426, allocations: 32.25 kB / 0.7569 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.136e-05/0.8427, allocations: 53.73 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.935e-05/0.8427, allocations: 31.42 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.8428, allocations: 4 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002069/0.843, allocations: 136.8 kB / 0.7571 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.843, allocations: 7.781 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.843, allocations: 3.438 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.843, allocations: 0 / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.8432, allocations: 48.81 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.8432, allocations: 4.844 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.8434, allocations: 34.08 kB / 0.7572 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.8434, allocations: 3.688 kB / 0.7572 GB, free: 25.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 8.814e-05/0.8435, allocations: 116.4 kB / 0.7573 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.8436, allocations: 18.23 kB / 0.7573 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.8436, allocations: 26.97 kB / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.8436, allocations: 0 / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.8437, allocations: 0 / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.8437, allocations: 2.531 kB / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.8439, allocations: 238.9 kB / 0.7575 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-06/0.8439, allocations: 0 / 0.7575 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.8441, allocations: 39.89 kB / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.8441, allocations: 7.875 kB / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.8442, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.8442, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8442, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000338/0.8445, allocations: 265.1 kB / 0.7578 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.989e-05/0.8446, allocations: 81.58 kB / 0.7579 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.8446, allocations: 9.656 kB / 0.7579 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.8448, allocations: 30.97 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.608e-05/0.8449, allocations: 12.38 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.8449, allocations: 6.938 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001003/0.845, allocations: 112.7 kB / 0.7581 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.845, allocations: 0 / 0.7581 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002539/0.8453, allocations: 41.72 kB / 0.7581 GB, free: 24.81 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.0006488/0.8459, allocations: 0.7979 MB / 0.7589 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001844/0.8461, allocations: 89.16 kB / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.8461, allocations: 0 / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.463e-05/0.8462, allocations: 46.61 kB / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.8465, allocations: 14.34 kB / 0.7591 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007697/0.8472, allocations: 317.2 kB / 0.7594 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.8476, allocations: 0.724 MB / 0.7601 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.308e-05/0.8477, allocations: 6.469 kB / 0.7601 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.637e-05/0.8478, allocations: 46.59 kB / 0.7601 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/0.8478, allocations: 4 kB / 0.7601 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.8642, allocations: 2.768 MB / 0.7628 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.8645, allocations: 152 kB / 0.763 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.662, allocations: 0 / 0.763 GB, free: 21.89 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)