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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008089/0.0008087, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0009702/0.0009704, allocations: 168.7 kB / 15.95 MB, free: 204 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.478/1.478, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.005/1.005, allocations: 135.3 MB / 426.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.000394, allocations: 8 kB / 0.5071 GB, free: 5.023 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1985, allocations: 82.31 MB / 0.5875 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002132/0.2007, allocations: 1.677 MB / 0.5891 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008426/0.2016, allocations: 0.5029 MB / 0.5896 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.473e-05/0.2016, allocations: 4 kB / 0.5896 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.638e-05/0.2018, allocations: 11.86 kB / 0.5896 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.231e-05/0.2019, allocations: 39.69 kB / 0.5896 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.2021, allocations: 43.89 kB / 0.5897 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.2023, allocations: 171.3 kB / 0.5898 GB, free: 420 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.2025, allocations: 61.72 kB / 0.5899 GB, free: 360 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.2026, allocations: 55.77 kB / 0.59 GB, free: 304 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.2027, allocations: 67.69 kB / 0.59 GB, free: 236 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.2027, allocations: 8 kB / 0.59 GB, free: 228 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.271e-05/0.2028, allocations: 4 kB / 0.59 GB, free: 224 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.926e-05/0.2028, allocations: 27.86 kB / 0.5901 GB, free: 196 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.298e-05/0.2028, allocations: 49.64 kB / 0.5901 GB, free: 140 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.203, allocations: 115.9 kB / 0.5902 GB, free: 24 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.203, allocations: 8 kB / 0.5902 GB, free: 16 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.203, allocations: 0 / 0.5902 GB, free: 16 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.203, allocations: 0 / 0.5902 GB, free: 16 kB / 494.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.0007275/0.2037, allocations: 478.8 kB / 0.5907 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2038, allocations: 8.031 kB / 0.5907 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.134e-05/0.2039, allocations: 50.55 kB / 0.5907 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.565e-05/0.2039, allocations: 19.72 kB / 0.5908 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.2041, allocations: 214 kB / 0.591 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-05/0.2042, allocations: 45.69 kB / 0.591 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.2043, allocations: 12 kB / 0.591 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.2046, allocations: 169.5 kB / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2047, allocations: 0 / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.2047, allocations: 4 kB / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.2047, allocations: 4 kB / 0.5912 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.2052, allocations: 172.4 kB / 0.5914 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007842/0.206, allocations: 0.5425 MB / 0.5919 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004073/0.2064, allocations: 146.6 kB / 0.592 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.2066, allocations: 88.81 kB / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2067, allocations: 0 / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.2067, allocations: 34.56 kB / 0.5921 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.2067, allocations: 3.938 kB / 0.5921 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006846/0.2074, allocations: 265.3 kB / 0.5924 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2074, allocations: 51.41 kB / 0.5924 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.2076, allocations: 153.5 kB / 0.5926 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.2076, allocations: 25.7 kB / 0.5926 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.2077, allocations: 128.1 kB / 0.5927 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.05e-05/0.2077, allocations: 51.38 kB / 0.5928 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-06/0.2077, allocations: 4 kB / 0.5928 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2079, allocations: 326.8 kB / 0.5931 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.2081, allocations: 67.95 kB / 0.5932 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.2084, allocations: 98.52 kB / 0.5933 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.2086, allocations: 78.83 kB / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2086, allocations: 0 / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000462/0.209, allocations: 217.3 kB / 0.5935 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.2091, allocations: 15.94 kB / 0.5936 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2091, allocations: 0 / 0.5936 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2091, allocations: 0 / 0.5936 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.2093, allocations: 43.97 kB / 0.5936 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.2093, allocations: 0 / 0.5936 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.2095, allocations: 39.91 kB / 0.5936 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.2095, allocations: 8 kB / 0.5936 GB, free: 12.26 MB / 0.4981 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.0001113/0.2096, allocations: 129.7 kB / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.2096, allocations: 15.8 kB / 0.5938 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.2097, allocations: 20.7 kB / 0.5938 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2097, allocations: 4 kB / 0.5938 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2097, allocations: 0 / 0.5938 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2097, allocations: 4 kB / 0.5938 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.21, allocations: 237.5 kB / 0.594 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.21, allocations: 0 / 0.594 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.2102, allocations: 39.97 kB / 0.5941 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.2102, allocations: 0 / 0.5941 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2102, allocations: 0 / 0.5941 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.2102, allocations: 4 kB / 0.5941 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2102, allocations: 0 / 0.5941 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/0.2109, allocations: 394.4 kB / 0.5945 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.211, allocations: 85.05 kB / 0.5945 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.211, allocations: 4 kB / 0.5945 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.2112, allocations: 27.91 kB / 0.5946 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.2113, allocations: 15.98 kB / 0.5946 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.2113, allocations: 3.984 kB / 0.5946 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001495/0.2114, allocations: 115.3 kB / 0.5947 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2114, allocations: 0 / 0.5947 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000247/0.2117, allocations: 31.91 kB / 0.5947 GB, free: 11.06 MB / 0.4981 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.001024/0.2127, allocations: 0.9201 MB / 0.5956 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004779/0.2132, allocations: 163.9 kB / 0.5958 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2132, allocations: 4 kB / 0.5958 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.2135, allocations: 84.06 kB / 0.5959 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.2139, allocations: 19.38 kB / 0.5959 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.2158, allocations: 1.104 MB / 0.597 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.2161, allocations: 0.7198 MB / 0.5977 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.075e-05/0.2162, allocations: 16.55 kB / 0.5977 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8e-05/0.2163, allocations: 39.42 kB / 0.5977 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.2163, allocations: 0 / 0.5977 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.231, allocations: 2.796 MB / 0.6004 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.2313, allocations: 188.7 kB / 0.6006 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.16, allocations: 0 / 0.6006 GB, free: 5.023 MB / 0.4981 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) Environment - environmentSimulation: