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-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_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_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.00972/0.00972, allocations: 168.7 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7946/0.7946, allocations: 135.2 MB / 151 MB, free: 13.83 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.567/1.567, allocations: 223.2 MB / 406.8 MB, free: 3.246 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009547/0.0009546, allocations: 111.9 kB / 489.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 8 kB / 0.5691 GB, free: 14.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5277/0.5281, allocations: 82.3 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1626/0.6907, allocations: 113.6 MB / 0.7605 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.6911, allocations: 83.94 kB / 0.7606 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008785/0.6999, allocations: 2.856 MB / 0.7634 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.185e-06/0.6999, allocations: 192 / 0.7634 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.689e-05/0.7, allocations: 8 kB / 0.7634 GB, free: 15.39 MB / 0.5417 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.000719/0.7007, allocations: 494.6 kB / 0.7639 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.7008, allocations: 12.03 kB / 0.7639 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.31e-05/0.7008, allocations: 42.56 kB / 0.7639 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.7009, allocations: 19.72 kB / 0.7639 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.7011, allocations: 214.7 kB / 0.7641 GB, free: 14.53 MB / 0.5417 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.0001536/0.7013, allocations: 33.7 kB / 0.7642 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/0.7013, allocations: 16 kB / 0.7642 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000426/0.7018, allocations: 169.6 kB / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.7018, allocations: 0 / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.7018, allocations: 8 kB / 0.7643 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.7018, allocations: 4 kB / 0.7644 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.7023, allocations: 159.9 kB / 0.7645 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.7033, allocations: 0.5697 MB / 0.7651 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004524/0.7038, allocations: 146.7 kB / 0.7652 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.7038, allocations: 7.969 kB / 0.7652 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.7039, allocations: 38.56 kB / 0.7652 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=12): time 2.394e-06/0.7039, allocations: 4 kB / 0.7652 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12): time 0.000737/0.7046, allocations: 261.3 kB / 0.7655 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.7047, allocations: 51.41 kB / 0.7655 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.7048, allocations: 143.4 kB / 0.7657 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.7048, allocations: 25.92 kB / 0.7657 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.7049, allocations: 128.1 kB / 0.7658 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.705, allocations: 39.39 kB / 0.7659 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.705, allocations: 8 kB / 0.7659 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.7051, allocations: 322.8 kB / 0.7662 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.7054, allocations: 71.95 kB / 0.7663 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.7056, allocations: 104.7 kB / 0.7664 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.7058, allocations: 75.89 kB / 0.7664 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.7059, allocations: 8 kB / 0.7664 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004818/0.7063, allocations: 213.3 kB / 0.7666 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.7064, allocations: 8 kB / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7064, allocations: 0 / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.7064, allocations: 0 / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.7066, allocations: 48.03 kB / 0.7667 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.7066, allocations: 0 / 0.7667 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.7068, allocations: 31.97 kB / 0.7667 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.7068, allocations: 4 kB / 0.7667 GB, free: 11.72 MB / 0.5417 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 () * Number of clocked 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.0001219/0.707, allocations: 134.2 kB / 0.7668 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.707, allocations: 15.81 kB / 0.7669 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.546e-05/0.7071, allocations: 20.7 kB / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.7071, allocations: 0 / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.7071, allocations: 0 / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.7071, allocations: 4 kB / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.7074, allocations: 245.5 kB / 0.7671 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7074, allocations: 0 / 0.7671 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/0.7076, allocations: 43.97 kB / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.7076, allocations: 0 / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.7076, allocations: 0 / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7076, allocations: 0 / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7076, allocations: 7.984 kB / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007407/0.7084, allocations: 390.7 kB / 0.7675 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.852e-05/0.7084, allocations: 85.05 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.7085, allocations: 0 / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.7087, allocations: 36.03 kB / 0.7677 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.7087, allocations: 7.984 kB / 0.7677 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.7087, allocations: 4 kB / 0.7677 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.534e-05/0.7088, allocations: 117.2 kB / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7088, allocations: 0 / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000259/0.7091, allocations: 39.84 kB / 0.7678 GB, free: 10.5 MB / 0.5417 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) * Number of clocked states: 0 () * 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.001001/0.7101, allocations: 0.9152 MB / 0.7687 GB, free: 9.559 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004734/0.7106, allocations: 168.7 kB / 0.7689 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.7106, allocations: 0 / 0.7689 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.7109, allocations: 91.88 kB / 0.769 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.7111, allocations: 17.25 kB / 0.769 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.7131, allocations: 1.418 MB / 0.7704 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.7134, allocations: 0.7238 MB / 0.7711 GB, free: 7.059 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.709e-05/0.7135, allocations: 8.547 kB / 0.7711 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.367e-05/0.7136, allocations: 43.42 kB / 0.7711 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of SimCode: time 4.91e-07/0.7136, allocations: 3.938 kB / 0.7711 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01377/0.7273, allocations: 2.765 MB / 0.7738 GB, free: 4.375 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.7276, allocations: 179.4 kB / 0.774 GB, free: 4.133 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.456, allocations: 4 kB / 0.774 GB, free: 4.129 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)