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.009781/0.009781, allocations: 172 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7814/0.7814, allocations: 135.2 MB / 151 MB, free: 13.84 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.511/1.511, allocations: 223.2 MB / 406.8 MB, free: 3.227 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.0009762/0.000976, allocations: 96.75 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003723, allocations: 8 kB / 0.5691 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5134/0.5138, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1775/0.6914, allocations: 113.7 MB / 0.7605 GB, free: 2.348 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003429/0.6918, allocations: 75.91 kB / 0.7606 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008651/0.7005, allocations: 2.86 MB / 0.7634 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.655e-06/0.7005, allocations: 0 / 0.7634 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.19e-05/0.7005, allocations: 11.98 kB / 0.7634 GB, free: 15.38 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.0008426/0.7014, allocations: 482.7 kB / 0.7638 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.7015, allocations: 12.03 kB / 0.7639 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.437e-05/0.7015, allocations: 46.55 kB / 0.7639 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.705e-05/0.7016, allocations: 23.72 kB / 0.7639 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.7019, allocations: 210.9 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.0001865/0.7021, allocations: 38.58 kB / 0.7642 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.7022, allocations: 16 kB / 0.7642 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004628/0.7026, allocations: 165.6 kB / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.7027, allocations: 0 / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.7027, allocations: 4 kB / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.7027, allocations: 4 kB / 0.7643 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.7032, allocations: 163.9 kB / 0.7645 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.7044, allocations: 0.5737 MB / 0.7651 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.7049, allocations: 146.7 kB / 0.7652 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.7049, allocations: 4 kB / 0.7652 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.7049, allocations: 34.5 kB / 0.7652 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=12): time 1.092e-06/0.7049, allocations: 0 / 0.7652 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12): time 0.0007992/0.7057, allocations: 261.4 kB / 0.7655 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.7058, allocations: 51.41 kB / 0.7655 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.7059, allocations: 142.7 kB / 0.7657 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.706, allocations: 29.92 kB / 0.7657 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.7061, allocations: 124.2 kB / 0.7658 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.7061, allocations: 43.39 kB / 0.7659 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.7061, allocations: 0 / 0.7659 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.7063, allocations: 334.7 kB / 0.7662 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.7066, allocations: 75.94 kB / 0.7663 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.7068, allocations: 108.6 kB / 0.7664 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.707, allocations: 63.97 kB / 0.7664 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.707, allocations: 0 / 0.7664 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004994/0.7075, allocations: 222.2 kB / 0.7666 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.7075, allocations: 4 kB / 0.7666 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.7076, allocations: 4 kB / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.7076, allocations: 0 / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.7078, allocations: 43.95 kB / 0.7667 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.7078, allocations: 8.062 kB / 0.7667 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.708, allocations: 27.98 kB / 0.7667 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.708, allocations: 7.984 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.0001161/0.7081, allocations: 126.3 kB / 0.7668 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.7082, allocations: 19.8 kB / 0.7669 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.7082, allocations: 24.72 kB / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.7082, allocations: 0 / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.7082, allocations: 0 / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.7083, allocations: 0 / 0.7669 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.7085, allocations: 245.5 kB / 0.7671 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.7085, allocations: 0 / 0.7671 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.7087, allocations: 39.97 kB / 0.7672 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.7088, allocations: 8 kB / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.7088, allocations: 7.984 kB / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.7088, allocations: 0 / 0.7672 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7088, allocations: 3.938 kB / 0.7672 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008112/0.7096, allocations: 382.7 kB / 0.7675 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.495e-05/0.7097, allocations: 85.05 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.7097, allocations: 4 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.7099, allocations: 28.03 kB / 0.7676 GB, free: 10.67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.71, allocations: 15.97 kB / 0.7677 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.71, allocations: 8 kB / 0.7677 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 8.666e-05/0.7101, allocations: 111.4 kB / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7101, allocations: 0 / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002742/0.7104, allocations: 43.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.001025/0.7114, allocations: 0.9118 MB / 0.7687 GB, free: 9.562 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004928/0.7119, allocations: 176.1 kB / 0.7689 GB, free: 9.391 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.7119, allocations: 4 kB / 0.7689 GB, free: 9.387 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.7121, allocations: 79.89 kB / 0.769 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.7124, allocations: 27.91 kB / 0.769 GB, free: 9.281 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.7146, allocations: 1.409 MB / 0.7704 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.7149, allocations: 0.7277 MB / 0.7711 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.394e-05/0.715, allocations: 8.547 kB / 0.7711 GB, free: 7.043 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.524e-05/0.7151, allocations: 39.42 kB / 0.7711 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of SimCode: time 2.3e-07/0.7151, allocations: 0 / 0.7711 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.7311, allocations: 2.773 MB / 0.7738 GB, free: 4.375 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.7314, allocations: 184 kB / 0.774 GB, free: 4.133 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.4, allocations: 0 / 0.774 GB, free: 4.133 MB / 0.5417 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)