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.00177/0.00177, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7677/0.7677, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.759/1.759, allocations: 221.3 MB / 400.4 MB, free: 5.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001011, allocations: 99.75 kB / 483.3 MB, free: 5.859 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.117e-05/4.127e-05, allocations: 2.906 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1794, allocations: 82.31 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6631/0.8426, allocations: 113.6 MB / 0.7514 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.8428, allocations: 71.61 kB / 0.7515 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.007572/0.8504, allocations: 2.861 MB / 0.7543 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8504, allocations: 0 / 0.7543 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.772e-05/0.8505, allocations: 7.75 kB / 0.7543 GB, free: 27.41 MB / 0.5105 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.0006684/0.8511, allocations: 468.2 kB / 0.7547 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.8512, allocations: 7.656 kB / 0.7547 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.567e-05/0.8513, allocations: 44.34 kB / 0.7548 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.8513, allocations: 23.38 kB / 0.7548 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.8516, allocations: 216.8 kB / 0.755 GB, free: 26.77 MB / 0.5105 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.0001351/0.8517, allocations: 45.25 kB / 0.7551 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.8518, allocations: 11.34 kB / 0.7551 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.852, allocations: 126.6 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.852, allocations: 0 / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.8521, allocations: 7.25 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.8521, allocations: 3.688 kB / 0.7552 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.8523, allocations: 81.28 kB / 0.7553 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009227/0.8532, allocations: 0.5749 MB / 0.7558 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.8535, allocations: 106.1 kB / 0.7559 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.899e-05/0.8536, allocations: 49.95 kB / 0.756 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.8536, allocations: 7.938 kB / 0.756 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.8536, allocations: 36.47 kB / 0.756 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.8537, allocations: 0 / 0.756 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12): time 0.0002564/0.8539, allocations: 109.8 kB / 0.7561 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.854, allocations: 51.41 kB / 0.7562 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.8541, allocations: 137.9 kB / 0.7563 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.8541, allocations: 25.7 kB / 0.7563 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.429e-05/0.8542, allocations: 127.8 kB / 0.7565 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.8542, allocations: 46.92 kB / 0.7565 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.8542, allocations: 0 / 0.7565 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.8544, allocations: 330.5 kB / 0.7568 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.8545, allocations: 32.25 kB / 0.7569 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.279e-05/0.8545, allocations: 53.73 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.876e-05/0.8546, allocations: 31.42 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.8546, allocations: 4 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002169/0.8548, allocations: 136.8 kB / 0.7571 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.8549, allocations: 7.781 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.8549, allocations: 3.438 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.8549, allocations: 0 / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.8551, allocations: 48.81 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.8551, allocations: 4.844 kB / 0.7571 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.8553, allocations: 34.08 kB / 0.7572 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.8553, allocations: 3.688 kB / 0.7572 GB, free: 25.48 MB / 0.5105 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.394e-05/0.8554, allocations: 116.4 kB / 0.7573 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.8554, allocations: 18.23 kB / 0.7573 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.8555, allocations: 26.97 kB / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8555, allocations: 0 / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.8555, allocations: 0 / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.8555, allocations: 2.531 kB / 0.7573 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.8557, allocations: 238.9 kB / 0.7575 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8558, allocations: 0 / 0.7575 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.856, allocations: 39.89 kB / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.856, allocations: 7.875 kB / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.856, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.856, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.856, allocations: 0 / 0.7576 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003358/0.8563, allocations: 265.1 kB / 0.7578 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.936e-05/0.8564, allocations: 81.58 kB / 0.7579 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.8564, allocations: 9.656 kB / 0.7579 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.8566, allocations: 30.97 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.8567, allocations: 12.38 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.8567, allocations: 6.938 kB / 0.758 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.529e-05/0.8568, allocations: 112.7 kB / 0.7581 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8568, allocations: 0 / 0.7581 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002419/0.857, allocations: 41.72 kB / 0.7581 GB, free: 24.81 MB / 0.5105 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.0006057/0.8576, allocations: 0.7979 MB / 0.7589 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001874/0.8578, allocations: 89.16 kB / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.8579, allocations: 0 / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.285e-05/0.8579, allocations: 46.61 kB / 0.759 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.8582, allocations: 14.34 kB / 0.7591 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000784/0.859, allocations: 317.2 kB / 0.7594 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.8593, allocations: 0.724 MB / 0.7601 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.828e-05/0.8594, allocations: 6.469 kB / 0.7601 GB, free: 23.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.152e-05/0.8594, allocations: 46.59 kB / 0.7601 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of SimCode: time 3.21e-07/0.8594, allocations: 4 kB / 0.7601 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0139/0.8733, allocations: 2.771 MB / 0.7628 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.8736, allocations: 160.4 kB / 0.763 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.679, allocations: 0 / 0.763 GB, free: 21.89 MB / 0.5105 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)