Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",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.001574/0.001574, allocations: 97.97 kB / 15.05 MB, free: 1.105 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.001719/0.001719, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.27/2.27, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.056/1.056, allocations: 132.3 MB / 423.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003998/0.0003999, allocations: 9.781 kB / 0.5033 GB, free: 4.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7031/0.7036, allocations: 81.58 MB / 0.583 GB, free: 4.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002692/0.7063, allocations: 1.647 MB / 0.5846 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.7074, allocations: 0.5031 MB / 0.5851 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.7075, allocations: 5.625 kB / 0.5851 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 6.276e-05/0.7076, allocations: 10.52 kB / 0.5851 GB, free: 2.492 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.7078, allocations: 52.52 kB / 0.5851 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.7082, allocations: 39.22 kB / 0.5852 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.7085, allocations: 124.9 kB / 0.5853 GB, free: 2.367 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.7088, allocations: 61.58 kB / 0.5853 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.709, allocations: 58.84 kB / 0.5854 GB, free: 2.312 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.7091, allocations: 68.94 kB / 0.5855 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.7092, allocations: 7.156 kB / 0.5855 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.426e-05/0.7092, allocations: 6.312 kB / 0.5855 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.156e-05/0.7093, allocations: 22.39 kB / 0.5855 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.7093, allocations: 51.06 kB / 0.5855 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.7096, allocations: 118.2 kB / 0.5857 GB, free: 2.199 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7096, allocations: 0 / 0.5857 GB, free: 2.199 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.632e-06/0.7096, allocations: 5.156 kB / 0.5857 GB, free: 2.195 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.7096, allocations: 3.938 kB / 0.5857 GB, free: 2.191 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.0009136/0.7105, allocations: 476.8 kB / 0.5861 GB, free: 1.781 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.7106, allocations: 9.953 kB / 0.5861 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.838e-05/0.7107, allocations: 45.75 kB / 0.5862 GB, free: 1.734 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.552e-05/0.7108, allocations: 25.84 kB / 0.5862 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.711, allocations: 213.1 kB / 0.5864 GB, free: 1.492 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.7111, allocations: 37.77 kB / 0.5864 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.7112, allocations: 12.25 kB / 0.5865 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.7117, allocations: 175.6 kB / 0.5866 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.7117, allocations: 0 / 0.5866 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.7117, allocations: 5.094 kB / 0.5866 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.7118, allocations: 3.906 kB / 0.5866 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006148/0.7124, allocations: 170.1 kB / 0.5868 GB, free: 1.336 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.7134, allocations: 0.535 MB / 0.5873 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005305/0.7139, allocations: 143.9 kB / 0.5874 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.714, allocations: 1.406 kB / 0.5875 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.714, allocations: 39.8 kB / 0.5875 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.714, allocations: 4.531 kB / 0.5875 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008814/0.7149, allocations: 258.8 kB / 0.5877 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.715, allocations: 53.53 kB / 0.5878 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.7151, allocations: 146.8 kB / 0.5879 GB, free: 0.543 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.7151, allocations: 33.7 kB / 0.588 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.332e-05/0.7152, allocations: 130.4 kB / 0.5881 GB, free: 392 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.7153, allocations: 37.11 kB / 0.5881 GB, free: 364 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-06/0.7153, allocations: 4 kB / 0.5881 GB, free: 360 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.439e-05/0.7154, allocations: 327.4 kB / 0.5884 GB, free: 32 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.7156, allocations: 72.02 kB / 0.5885 GB, free: 16 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.716, allocations: 98.16 kB / 0.5886 GB, free: 15.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.7162, allocations: 79.77 kB / 0.5887 GB, free: 15.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7162, allocations: 3.938 kB / 0.5887 GB, free: 15.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000637/0.7169, allocations: 217 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.7169, allocations: 5.125 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.7169, allocations: 5.906 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.717, allocations: 0.9375 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.7172, allocations: 41.58 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.7172, allocations: 6.812 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.7174, allocations: 34.73 kB / 0.589 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.7174, allocations: 4.828 kB / 0.589 GB, free: 15.85 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.0001382/0.7176, allocations: 128.4 kB / 0.5891 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-05/0.7176, allocations: 15.34 kB / 0.5891 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.878e-05/0.7177, allocations: 20.47 kB / 0.5891 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.7177, allocations: 1.375 kB / 0.5891 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.7177, allocations: 2.031 kB / 0.5891 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.7177, allocations: 0.7031 kB / 0.5891 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003559/0.7181, allocations: 246.3 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.7181, allocations: 0.5156 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.7183, allocations: 43.44 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.7184, allocations: 4 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.7184, allocations: 1.953 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.7184, allocations: 2.469 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.7184, allocations: 0 / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009452/0.7194, allocations: 390.1 kB / 0.5898 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.7194, allocations: 85.23 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.7195, allocations: 2.734 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.7197, allocations: 32.5 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.7198, allocations: 15.84 kB / 0.5899 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.7198, allocations: 3.812 kB / 0.5899 GB, free: 15.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.7199, allocations: 116.4 kB / 0.59 GB, free: 15.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7199, allocations: 0 / 0.59 GB, free: 15.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.7202, allocations: 41.66 kB / 0.5901 GB, free: 15.04 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.001298/0.7215, allocations: 0.9095 MB / 0.591 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006495/0.7222, allocations: 168.4 kB / 0.5911 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7222, allocations: 1 kB / 0.5911 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.7225, allocations: 92.98 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.7228, allocations: 16.12 kB / 0.5912 GB, free: 14.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.7255, allocations: 1.398 MB / 0.5926 GB, free: 13.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.7259, allocations: 0.7233 MB / 0.5933 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.845e-05/0.726, allocations: 9.141 kB / 0.5933 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.587e-05/0.7261, allocations: 45.05 kB / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.7261, allocations: 0 / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.7425, allocations: 2.775 MB / 0.5961 GB, free: 12.19 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002272/0.7429, allocations: 188.5 kB / 0.5963 GB, free: 11.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/3.517, allocations: 0 / 0.5963 GB, free: 11.95 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1) Environment - environmentSimulation: