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.001165/0.001165, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7861/0.7861, allocations: 133.6 MB / 141.6 MB, free: 2.883 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 221.5 MB / 395.5 MB, free: 10.77 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.0008927/0.0008926, allocations: 95.39 kB / 478.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.875e-05, allocations: 0 / 0.5535 GB, free: 8.961 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5276/0.5276, allocations: 82.3 MB / 0.6339 GB, free: 40.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1624/0.6901, allocations: 112.9 MB / 0.7442 GB, free: 9.766 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.6903, allocations: 75.95 kB / 0.7443 GB, free: 9.691 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008202/0.6986, allocations: 2.837 MB / 0.747 GB, free: 6.836 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.402e-06/0.6986, allocations: 0 / 0.747 GB, free: 6.836 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.626e-05/0.6986, allocations: 8 kB / 0.747 GB, free: 6.828 MB / 0.5261 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.000712/0.6993, allocations: 466 kB / 0.7475 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.6994, allocations: 12.03 kB / 0.7475 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.6995, allocations: 19.72 kB / 0.7475 GB, free: 6.297 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.6997, allocations: 213.2 kB / 0.7477 GB, free: 6.051 MB / 0.5261 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.0001213/0.6999, allocations: 41.62 kB / 0.7478 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.392e-05/0.6999, allocations: 16 kB / 0.7478 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001972/0.7001, allocations: 71.98 kB / 0.7478 GB, free: 5.918 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.7003, allocations: 105.7 kB / 0.7479 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.7003, allocations: 0 / 0.7479 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.7004, allocations: 0 / 0.7479 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.7004, allocations: 4 kB / 0.7479 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009724/0.7014, allocations: 0.5312 MB / 0.7485 GB, free: 5.223 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.7016, allocations: 94.73 kB / 0.7485 GB, free: 5.121 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.7018, allocations: 44.86 kB / 0.7486 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.7018, allocations: 0 / 0.7486 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.7019, allocations: 46.72 kB / 0.7486 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=12): time 3.517e-06/0.7019, allocations: 0 / 0.7486 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12): time 0.0002531/0.7021, allocations: 101.4 kB / 0.7487 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.7022, allocations: 55.41 kB / 0.7488 GB, free: 4.848 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.7023, allocations: 131.4 kB / 0.7489 GB, free: 4.715 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.7023, allocations: 29.7 kB / 0.7489 GB, free: 4.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.016e-05/0.7024, allocations: 120.2 kB / 0.7491 GB, free: 4.555 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.7024, allocations: 43.39 kB / 0.7491 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.7025, allocations: 0 / 0.7491 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7026, allocations: 326.8 kB / 0.7494 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.87e-05/0.7027, allocations: 28 kB / 0.7494 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.866e-05/0.7028, allocations: 58.55 kB / 0.7495 GB, free: 4.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.362e-05/0.7028, allocations: 31.94 kB / 0.7495 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.7028, allocations: 3.938 kB / 0.7495 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001989/0.703, allocations: 129 kB / 0.7496 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.7031, allocations: 4 kB / 0.7497 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.7031, allocations: 0 / 0.7497 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.7031, allocations: 7.984 kB / 0.7497 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.7033, allocations: 43.91 kB / 0.7497 GB, free: 3.871 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.7033, allocations: 7.938 kB / 0.7497 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.7035, allocations: 32.03 kB / 0.7497 GB, free: 3.832 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.7035, allocations: 4 kB / 0.7497 GB, free: 3.828 MB / 0.5261 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 9.034e-05/0.7036, allocations: 112.9 kB / 0.7498 GB, free: 3.711 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001846/0.7038, allocations: 101.4 kB / 0.7499 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.7039, allocations: 7.906 kB / 0.75 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.107e-05/0.7039, allocations: 20.61 kB / 0.75 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.7039, allocations: 4 kB / 0.75 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.7039, allocations: 4 kB / 0.75 GB, free: 3.574 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.7039, allocations: 0 / 0.75 GB, free: 3.574 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.7042, allocations: 210 kB / 0.7502 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7042, allocations: 0 / 0.7502 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.7044, allocations: 39.91 kB / 0.7502 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.7044, allocations: 4 kB / 0.7502 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.7044, allocations: 4 kB / 0.7502 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7044, allocations: 4 kB / 0.7502 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.7045, allocations: 4 kB / 0.7502 GB, free: 3.277 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003213/0.7048, allocations: 247.3 kB / 0.7505 GB, free: 3.02 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.958e-05/0.7049, allocations: 88.95 kB / 0.7506 GB, free: 2.914 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.7049, allocations: 3.984 kB / 0.7506 GB, free: 2.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.7051, allocations: 24.05 kB / 0.7506 GB, free: 2.887 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.7051, allocations: 19.97 kB / 0.7506 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.7052, allocations: 4 kB / 0.7506 GB, free: 2.863 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 7.26e-05/0.7052, allocations: 105.7 kB / 0.7507 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7052, allocations: 0 / 0.7507 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002675/0.7055, allocations: 35.84 kB / 0.7507 GB, free: 2.727 MB / 0.5261 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.0006293/0.7062, allocations: 0.7826 MB / 0.7515 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001883/0.7064, allocations: 83.92 kB / 0.7516 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7064, allocations: 0 / 0.7516 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 7.584e-05/0.7064, allocations: 43.94 kB / 0.7516 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.7067, allocations: 15.98 kB / 0.7516 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007756/0.7075, allocations: 303.2 kB / 0.7519 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.7078, allocations: 0.7236 MB / 0.7526 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.925e-05/0.7079, allocations: 8.547 kB / 0.7526 GB, free: 0.6797 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.312e-05/0.708, allocations: 43.42 kB / 0.7527 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of SimCode: time 2.4e-07/0.708, allocations: 0 / 0.7527 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.7298, allocations: 2.416 MB / 0.755 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.73, allocations: 155.9 kB / 0.7552 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.372, allocations: 4 kB / 0.7552 GB, free: 14.04 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)