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: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.001568/0.001568, 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-master/package.mo): time 0.8855/0.8855, 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.757/1.757, allocations: 221.3 MB / 400.4 MB, free: 5.812 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.001228/0.001228, allocations: 107.4 kB / 483.3 MB, free: 5.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.945e-05/5.993e-05, allocations: 2.219 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2141, allocations: 82.3 MB / 0.6405 GB, free: 7.738 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8213/1.036, allocations: 113.6 MB / 0.7514 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/1.036, allocations: 74.88 kB / 0.7515 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.009591/1.045, allocations: 2.857 MB / 0.7543 GB, free: 27.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.264e-06/1.046, allocations: 3.906 kB / 0.7543 GB, free: 27.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.743e-05/1.046, allocations: 4 kB / 0.7543 GB, free: 27.54 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.0007989/1.046, allocations: 465.9 kB / 0.7547 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/1.046, allocations: 11.59 kB / 0.7547 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.249e-05/1.047, allocations: 47.23 kB / 0.7548 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.268e-05/1.047, allocations: 19.59 kB / 0.7548 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/1.047, allocations: 214 kB / 0.755 GB, free: 26.89 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.0001557/1.047, allocations: 45.55 kB / 0.755 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/1.047, allocations: 14.91 kB / 0.7551 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/1.048, allocations: 129.3 kB / 0.7552 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/1.048, allocations: 0 / 0.7552 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/1.048, allocations: 10.11 kB / 0.7552 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/1.048, allocations: 3.906 kB / 0.7552 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/1.048, allocations: 79.73 kB / 0.7553 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/1.049, allocations: 0.5694 MB / 0.7558 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/1.049, allocations: 101.4 kB / 0.7559 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/1.05, allocations: 52.36 kB / 0.756 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/1.05, allocations: 7.688 kB / 0.756 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/1.05, allocations: 41.44 kB / 0.756 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.954e-06/1.05, allocations: 0 / 0.756 GB, free: 26.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0003401/1.05, allocations: 108.8 kB / 0.7561 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/1.05, allocations: 55.19 kB / 0.7562 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/1.05, allocations: 135.5 kB / 0.7563 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/1.05, allocations: 29.39 kB / 0.7563 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/1.05, allocations: 124.8 kB / 0.7565 GB, free: 26.03 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/1.05, allocations: 41.2 kB / 0.7565 GB, free: 26 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/1.05, allocations: 7.75 kB / 0.7565 GB, free: 26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001557/1.051, allocations: 327 kB / 0.7568 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.419e-05/1.051, allocations: 33.78 kB / 0.7568 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.813e-05/1.051, allocations: 54.28 kB / 0.7569 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.674e-05/1.051, allocations: 31.62 kB / 0.7569 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.051, allocations: 3.875 kB / 0.7569 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002541/1.051, allocations: 140.5 kB / 0.7571 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/1.051, allocations: 3.844 kB / 0.7571 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/1.051, allocations: 3.969 kB / 0.7571 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/1.051, allocations: 0 / 0.7571 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/1.052, allocations: 47.3 kB / 0.7571 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/1.052, allocations: 0 / 0.7571 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/1.052, allocations: 34.16 kB / 0.7572 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/1.052, allocations: 3.844 kB / 0.7572 GB, free: 25.6 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 0.0001083/1.052, allocations: 122.1 kB / 0.7573 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/1.052, allocations: 19.06 kB / 0.7573 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.782e-05/1.052, allocations: 14.42 kB / 0.7573 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/1.052, allocations: 7.812 kB / 0.7573 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/1.052, allocations: 3.938 kB / 0.7573 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/1.052, allocations: 0 / 0.7573 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/1.052, allocations: 240.2 kB / 0.7575 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.052, allocations: 0 / 0.7575 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/1.053, allocations: 41.64 kB / 0.7576 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/1.053, allocations: 0 / 0.7576 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/1.053, allocations: 2.672 kB / 0.7576 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/1.053, allocations: 8.656 kB / 0.7576 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.053, allocations: 0 / 0.7576 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004201/1.053, allocations: 263.7 kB / 0.7578 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/1.053, allocations: 85.48 kB / 0.7579 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/1.053, allocations: 1.625 kB / 0.7579 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/1.053, allocations: 32.44 kB / 0.758 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.56e-05/1.054, allocations: 10.95 kB / 0.758 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/1.054, allocations: 4.562 kB / 0.758 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001108/1.054, allocations: 117.2 kB / 0.7581 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.81e-07/1.054, allocations: 0 / 0.7581 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003739/1.054, allocations: 37.84 kB / 0.7581 GB, free: 24.93 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.0007476/1.055, allocations: 0.7985 MB / 0.7589 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002576/1.055, allocations: 82.22 kB / 0.759 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/1.055, allocations: 0 / 0.759 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/1.055, allocations: 51.22 kB / 0.759 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/1.056, allocations: 15.89 kB / 0.759 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009465/1.057, allocations: 314 kB / 0.7593 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/1.057, allocations: 0.7247 MB / 0.7601 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.355e-05/1.057, allocations: 11.39 kB / 0.7601 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.335e-05/1.057, allocations: 42.17 kB / 0.7601 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of SimCode: time 4.51e-07/1.057, allocations: 0 / 0.7601 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/1.075, allocations: 2.775 MB / 0.7628 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/1.075, allocations: 161.9 kB / 0.763 GB, free: 22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.882, allocations: 0 / 0.763 GB, free: 22 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)