Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009686/0.0009689, allocations: 91.69 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7792/0.7792, allocations: 132.3 MB / 423.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.000355, allocations: 13.03 kB / 0.5035 GB, free: 4.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5015/0.5019, allocations: 81.57 MB / 0.5831 GB, free: 3.969 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002953/0.5049, allocations: 1.697 MB / 0.5848 GB, free: 2.746 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.5061, allocations: 0.4977 MB / 0.5853 GB, free: 2.395 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.692e-05/0.5062, allocations: 5.938 kB / 0.5853 GB, free: 2.391 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.5063, allocations: 15.77 kB / 0.5853 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.5065, allocations: 34.09 kB / 0.5853 GB, free: 2.359 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.5067, allocations: 43.14 kB / 0.5854 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.5069, allocations: 167.3 kB / 0.5855 GB, free: 2.254 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.5071, allocations: 53.8 kB / 0.5856 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.5073, allocations: 55.12 kB / 0.5856 GB, free: 2.211 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.5074, allocations: 68.53 kB / 0.5857 GB, free: 2.18 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.5074, allocations: 11.84 kB / 0.5857 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.787e-05/0.5075, allocations: 6.719 kB / 0.5857 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.029e-05/0.5075, allocations: 29.64 kB / 0.5858 GB, free: 2.156 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.5076, allocations: 50.55 kB / 0.5858 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.5078, allocations: 119.5 kB / 0.5859 GB, free: 2.086 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.5078, allocations: 0 / 0.5859 GB, free: 2.086 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5078, allocations: 0 / 0.5859 GB, free: 2.086 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.5078, allocations: 0 / 0.5859 GB, free: 2.086 MB / 430.1 MB 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.0007234/0.5085, allocations: 478.7 kB / 0.5864 GB, free: 1.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.5086, allocations: 13.41 kB / 0.5864 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.5086, allocations: 50.52 kB / 0.5864 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.799e-05/0.5087, allocations: 29.17 kB / 0.5865 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.5089, allocations: 205.1 kB / 0.5867 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.793e-05/0.509, allocations: 37.48 kB / 0.5867 GB, free: 1.348 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.509, allocations: 12.31 kB / 0.5867 GB, free: 1.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.5095, allocations: 173.1 kB / 0.5869 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.5095, allocations: 0 / 0.5869 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.5095, allocations: 4.844 kB / 0.5869 GB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.5095, allocations: 4.203 kB / 0.5869 GB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000524/0.5101, allocations: 173.6 kB / 0.587 GB, free: 1.227 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008444/0.5109, allocations: 0.5356 MB / 0.5876 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004706/0.5114, allocations: 143 kB / 0.5877 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000252/0.5117, allocations: 93.58 kB / 0.5878 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.5117, allocations: 1.781 kB / 0.5878 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.5117, allocations: 35.94 kB / 0.5878 GB, free: 0.668 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.5117, allocations: 0 / 0.5878 GB, free: 0.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.000777/0.5125, allocations: 264.3 kB / 0.5881 GB, free: 0.582 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.5126, allocations: 59.89 kB / 0.5881 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.5127, allocations: 150.8 kB / 0.5883 GB, free: 404 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.5127, allocations: 26.61 kB / 0.5883 GB, free: 372 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.5128, allocations: 130.8 kB / 0.5884 GB, free: 248 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.5128, allocations: 39.42 kB / 0.5885 GB, free: 216 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.5128, allocations: 5.312 kB / 0.5885 GB, free: 212 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.513, allocations: 325.6 kB / 0.5888 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.5132, allocations: 74.22 kB / 0.5889 GB, free: 15.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.5134, allocations: 94.48 kB / 0.5889 GB, free: 15.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.5137, allocations: 78.91 kB / 0.589 GB, free: 15.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.5137, allocations: 0 / 0.589 GB, free: 15.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005251/0.5142, allocations: 212.8 kB / 0.5892 GB, free: 15.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.5142, allocations: 7.578 kB / 0.5892 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5142, allocations: 1.156 kB / 0.5892 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.5143, allocations: 1.969 kB / 0.5892 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.5145, allocations: 49.98 kB / 0.5893 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.5145, allocations: 2.156 kB / 0.5893 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.5147, allocations: 38.92 kB / 0.5893 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.5147, allocations: 4.891 kB / 0.5893 GB, free: 15.71 MB / 446.1 MB 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.0001156/0.5148, allocations: 124.4 kB / 0.5894 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.5149, allocations: 14.3 kB / 0.5895 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.5149, allocations: 25.92 kB / 0.5895 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.5149, allocations: 0.5 kB / 0.5895 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5149, allocations: 5.391 kB / 0.5895 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.515, allocations: 0.7031 kB / 0.5895 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002908/0.5152, allocations: 247.4 kB / 0.5897 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5153, allocations: 0.7031 kB / 0.5897 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.5155, allocations: 42.36 kB / 0.5898 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.5155, allocations: 1.031 kB / 0.5898 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.5155, allocations: 5.5 kB / 0.5898 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.5155, allocations: 0.9375 kB / 0.5898 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5155, allocations: 0.7969 kB / 0.5898 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008069/0.5163, allocations: 384.4 kB / 0.5901 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.625e-05/0.5164, allocations: 86 kB / 0.5902 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.5164, allocations: 1.516 kB / 0.5902 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.5166, allocations: 41.34 kB / 0.5903 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.5167, allocations: 11.78 kB / 0.5903 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.5167, allocations: 3.172 kB / 0.5903 GB, free: 15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.441e-05/0.5168, allocations: 117.6 kB / 0.5904 GB, free: 14.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5168, allocations: 0 / 0.5904 GB, free: 14.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.5171, allocations: 39.44 kB / 0.5904 GB, free: 14.9 MB / 446.1 MB 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.001024/0.5181, allocations: 0.9144 MB / 0.5913 GB, free: 14.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.5186, allocations: 164.9 kB / 0.5915 GB, free: 14.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5186, allocations: 3.938 kB / 0.5915 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.5189, allocations: 90.11 kB / 0.5916 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.5192, allocations: 17.22 kB / 0.5916 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.5213, allocations: 1.098 MB / 0.5927 GB, free: 13.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.5216, allocations: 0.7216 MB / 0.5934 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.716e-05/0.5217, allocations: 8.594 kB / 0.5934 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.647e-05/0.5218, allocations: 42.41 kB / 0.5934 GB, free: 12.71 MB / 446.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5218, allocations: 0 / 0.5934 GB, free: 12.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01392/0.5357, allocations: 2.79 MB / 0.5961 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/0.536, allocations: 189.1 kB / 0.5963 GB, free: 12.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/2.268, allocations: 4 kB / 0.5963 GB, free: 12.07 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1) Environment - environmentSimulation: