Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_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.01345/0.01345, allocations: 170.5 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.952/0.952, allocations: 135.2 MB / 151 MB, free: 13.82 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.685/1.685, allocations: 223.2 MB / 406.8 MB, free: 3.223 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.0009447/0.0009447, allocations: 101.1 kB / 489.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004342/0.0004342, allocations: 8 kB / 0.5691 GB, free: 14.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5474/0.5478, allocations: 82.3 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1768/0.7248, allocations: 113.6 MB / 0.7605 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003603/0.7252, allocations: 79.95 kB / 0.7606 GB, free: 2.246 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009875/0.7351, allocations: 2.868 MB / 0.7634 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.687e-06/0.7352, allocations: 0 / 0.7634 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.134e-05/0.7352, allocations: 8 kB / 0.7634 GB, free: 15.35 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.0009998/0.7362, allocations: 486.7 kB / 0.7638 GB, free: 14.83 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.431e-05/0.7363, allocations: 8.031 kB / 0.7639 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.403e-05/0.7364, allocations: 58.48 kB / 0.7639 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.753e-05/0.7365, allocations: 19.72 kB / 0.7639 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.7369, allocations: 208.1 kB / 0.7641 GB, free: 14.49 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.0002429/0.7372, allocations: 41.69 kB / 0.7642 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.7372, allocations: 16 kB / 0.7642 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.7377, allocations: 165.6 kB / 0.7643 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.7377, allocations: 0 / 0.7643 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.7378, allocations: 11.98 kB / 0.7643 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.7378, allocations: 4 kB / 0.7644 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005278/0.7383, allocations: 159.9 kB / 0.7645 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.7395, allocations: 0.5697 MB / 0.7651 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005112/0.74, allocations: 146.7 kB / 0.7652 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.7401, allocations: 0 / 0.7652 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.7401, allocations: 38.5 kB / 0.7652 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.7401, allocations: 0 / 0.7652 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12): time 0.0008526/0.741, allocations: 261.7 kB / 0.7655 GB, free: 13 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.741, allocations: 51.41 kB / 0.7655 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.7412, allocations: 138.9 kB / 0.7657 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.7412, allocations: 29.7 kB / 0.7657 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.953e-05/0.7414, allocations: 132.1 kB / 0.7658 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.7414, allocations: 39.44 kB / 0.7659 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.7414, allocations: 8 kB / 0.7659 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.7416, allocations: 322.8 kB / 0.7662 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.7418, allocations: 75.95 kB / 0.7662 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.7421, allocations: 100.5 kB / 0.7663 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.7423, allocations: 75.95 kB / 0.7664 GB, free: 12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7423, allocations: 0 / 0.7664 GB, free: 12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005406/0.7429, allocations: 221.3 kB / 0.7666 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.7429, allocations: 8 kB / 0.7666 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.7429, allocations: 0 / 0.7666 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.743, allocations: 0 / 0.7666 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.7432, allocations: 43.97 kB / 0.7667 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.7432, allocations: 0 / 0.7667 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.7434, allocations: 36.03 kB / 0.7667 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.7434, allocations: 4 kB / 0.7667 GB, free: 11.68 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.0001417/0.7436, allocations: 134.3 kB / 0.7668 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.7436, allocations: 15.8 kB / 0.7669 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.673e-05/0.7437, allocations: 20.72 kB / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.7437, allocations: 0 / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.7437, allocations: 0 / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.7437, allocations: 0 / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.744, allocations: 245.5 kB / 0.7671 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7441, allocations: 3.938 kB / 0.7671 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.7443, allocations: 39.97 kB / 0.7672 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.7443, allocations: 0 / 0.7672 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.7443, allocations: 4 kB / 0.7672 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.7443, allocations: 3.938 kB / 0.7672 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.7443, allocations: 0 / 0.7672 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008276/0.7452, allocations: 394.6 kB / 0.7675 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/0.7453, allocations: 85.05 kB / 0.7676 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.7453, allocations: 0 / 0.7676 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.7455, allocations: 31.97 kB / 0.7676 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.7456, allocations: 16.03 kB / 0.7677 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.7456, allocations: 4 kB / 0.7677 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.744e-05/0.7457, allocations: 119.4 kB / 0.7678 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7457, allocations: 0 / 0.7678 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003179/0.746, allocations: 39.84 kB / 0.7678 GB, free: 10.46 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.001157/0.7472, allocations: 0.9113 MB / 0.7687 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005097/0.7477, allocations: 168 kB / 0.7689 GB, free: 9.359 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.7477, allocations: 0 / 0.7689 GB, free: 9.359 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.748, allocations: 91.88 kB / 0.769 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.7483, allocations: 17.08 kB / 0.769 GB, free: 9.254 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.7506, allocations: 1.419 MB / 0.7704 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.7509, allocations: 0.7316 MB / 0.7711 GB, free: 7.012 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.857e-05/0.751, allocations: 4.562 kB / 0.7711 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.094e-05/0.7511, allocations: 43.42 kB / 0.7711 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of SimCode: time 8.62e-07/0.7511, allocations: 0 / 0.7711 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.7705, allocations: 2.771 MB / 0.7738 GB, free: 4.332 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/0.7708, allocations: 185.2 kB / 0.774 GB, free: 4.094 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.534, allocations: 0 / 0.774 GB, free: 4.094 MB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)