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.01204/0.01204, allocations: 170.9 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8951/0.8951, 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.59/1.59, allocations: 223.2 MB / 406.8 MB, free: 3.234 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.0008771/0.0008771, allocations: 93.28 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004706/0.0004709, allocations: 12 kB / 0.5692 GB, free: 14.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5155/0.516, allocations: 82.3 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.6945, allocations: 113.7 MB / 0.7605 GB, free: 2.336 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/0.695, allocations: 67.97 kB / 0.7606 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009379/0.7044, allocations: 2.868 MB / 0.7634 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.765e-06/0.7044, allocations: 0 / 0.7634 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.524e-05/0.7045, allocations: 12 kB / 0.7634 GB, free: 15.37 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.001013/0.7055, allocations: 478.7 kB / 0.7638 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001169/0.7056, allocations: 8.031 kB / 0.7639 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.7057, allocations: 46.55 kB / 0.7639 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.7058, allocations: 23.72 kB / 0.7639 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.7062, allocations: 216.5 kB / 0.7641 GB, free: 14.52 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.0002238/0.7064, allocations: 41.7 kB / 0.7642 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.436e-05/0.7065, allocations: 12 kB / 0.7642 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.707, allocations: 169.6 kB / 0.7643 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.707, allocations: 7.984 kB / 0.7643 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.707, allocations: 4 kB / 0.7644 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.7071, allocations: 7.938 kB / 0.7644 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.7076, allocations: 163.9 kB / 0.7645 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.7088, allocations: 0.5697 MB / 0.7651 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/0.7093, allocations: 138.7 kB / 0.7652 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.7094, allocations: 4 kB / 0.7652 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.7094, allocations: 38.48 kB / 0.7652 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.7094, allocations: 4 kB / 0.7652 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12): time 0.000891/0.7103, allocations: 249.4 kB / 0.7655 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.7104, allocations: 63.39 kB / 0.7655 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.7105, allocations: 134.7 kB / 0.7657 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.7106, allocations: 33.92 kB / 0.7657 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.7107, allocations: 124.2 kB / 0.7658 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.543e-05/0.7108, allocations: 39.39 kB / 0.7659 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-06/0.7108, allocations: 0 / 0.7659 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.7109, allocations: 330.8 kB / 0.7662 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.7112, allocations: 75.94 kB / 0.7663 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.7114, allocations: 108.8 kB / 0.7664 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.7116, allocations: 78.83 kB / 0.7664 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.7117, allocations: 0 / 0.7664 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005392/0.7122, allocations: 213.3 kB / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.7122, allocations: 4 kB / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.7122, allocations: 0 / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.7123, allocations: 4 kB / 0.7666 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.7125, allocations: 48.03 kB / 0.7667 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.7125, allocations: 4 kB / 0.7667 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.7127, allocations: 27.97 kB / 0.7667 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.7127, allocations: 8 kB / 0.7667 GB, free: 11.71 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.000138/0.7129, allocations: 130.3 kB / 0.7668 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.303e-05/0.7129, allocations: 15.81 kB / 0.7669 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.521e-05/0.713, allocations: 12.72 kB / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.713, allocations: 7.984 kB / 0.7669 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.713, allocations: 0 / 0.7669 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.713, allocations: 0 / 0.7669 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.7134, allocations: 249.5 kB / 0.7671 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.7134, allocations: 0 / 0.7671 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.7136, allocations: 43.97 kB / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.7136, allocations: 4 kB / 0.7672 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.7136, allocations: 0 / 0.7672 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.7136, allocations: 3.938 kB / 0.7672 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.7136, allocations: 0 / 0.7672 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008101/0.7145, allocations: 379.1 kB / 0.7675 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/0.7145, allocations: 89.03 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.7146, allocations: 7.938 kB / 0.7676 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.7148, allocations: 24.05 kB / 0.7676 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.7148, allocations: 19.97 kB / 0.7677 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.7148, allocations: 4 kB / 0.7677 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000109/0.715, allocations: 111.4 kB / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.715, allocations: 0 / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002816/0.7153, allocations: 43.84 kB / 0.7678 GB, free: 10.49 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.001105/0.7164, allocations: 0.9119 MB / 0.7687 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005011/0.7169, allocations: 172.1 kB / 0.7689 GB, free: 9.387 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7169, allocations: 0 / 0.7689 GB, free: 9.387 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.7171, allocations: 91.83 kB / 0.769 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.7174, allocations: 26.38 kB / 0.769 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.7196, allocations: 1.417 MB / 0.7704 GB, free: 7.789 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.72, allocations: 0.7277 MB / 0.7711 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.226e-05/0.7201, allocations: 8.547 kB / 0.7711 GB, free: 7.027 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.742e-05/0.7202, allocations: 43.42 kB / 0.7711 GB, free: 6.984 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.7202, allocations: 4 kB / 0.7711 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.7374, allocations: 2.752 MB / 0.7738 GB, free: 4.363 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002744/0.7377, allocations: 190.6 kB / 0.774 GB, free: 4.113 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/2.458, allocations: 3.938 kB / 0.774 GB, free: 4.109 MB / 0.5417 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)