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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, 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.001725/0.001725, 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.49/1.49, allocations: 223.3 MB / 240 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.053/1.053, allocations: 135.3 MB / 426.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004069, allocations: 8 kB / 0.5071 GB, free: 5.059 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2085, allocations: 82.31 MB / 0.5875 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.00245/0.2111, allocations: 1.684 MB / 0.5891 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008433/0.2119, allocations: 0.499 MB / 0.5896 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.577e-05/0.212, allocations: 0 / 0.5896 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.2122, allocations: 15.86 kB / 0.5896 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2123, allocations: 35.7 kB / 0.5896 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.2125, allocations: 47.89 kB / 0.5897 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.2128, allocations: 179.2 kB / 0.5899 GB, free: 452 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2129, allocations: 45.84 kB / 0.5899 GB, free: 408 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.2131, allocations: 63.77 kB / 0.59 GB, free: 344 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.2132, allocations: 67.69 kB / 0.59 GB, free: 276 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2132, allocations: 4 kB / 0.59 GB, free: 272 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.261e-05/0.2133, allocations: 8 kB / 0.59 GB, free: 264 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.2133, allocations: 23.86 kB / 0.5901 GB, free: 240 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.785e-05/0.2134, allocations: 57.64 kB / 0.5901 GB, free: 176 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.2135, allocations: 115.9 kB / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2135, allocations: 0 / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2136, allocations: 0 / 0.5902 GB, free: 60 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2136, allocations: 0 / 0.5902 GB, free: 60 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.0008118/0.2144, allocations: 482.8 kB / 0.5907 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.2144, allocations: 8.031 kB / 0.5907 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.673e-05/0.2145, allocations: 46.55 kB / 0.5907 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.368e-05/0.2146, allocations: 23.72 kB / 0.5908 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.2148, allocations: 210 kB / 0.591 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-05/0.2149, allocations: 49.67 kB / 0.591 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.215, allocations: 16 kB / 0.591 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004281/0.2154, allocations: 165.5 kB / 0.5912 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.2154, allocations: 0 / 0.5912 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.2154, allocations: 8 kB / 0.5912 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.2155, allocations: 4 kB / 0.5912 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.2159, allocations: 172.4 kB / 0.5914 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008686/0.2168, allocations: 0.5463 MB / 0.5919 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/0.2173, allocations: 148.1 kB / 0.592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.2175, allocations: 92.8 kB / 0.5921 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.2175, allocations: 3.938 kB / 0.5921 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2176, allocations: 30.56 kB / 0.5921 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.2176, allocations: 0 / 0.5921 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007257/0.2183, allocations: 265.3 kB / 0.5924 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.2184, allocations: 51.41 kB / 0.5924 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.2185, allocations: 153.5 kB / 0.5926 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.2185, allocations: 29.7 kB / 0.5926 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2187, allocations: 132.1 kB / 0.5927 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.117e-05/0.2187, allocations: 39.39 kB / 0.5928 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.2187, allocations: 8 kB / 0.5928 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2189, allocations: 322.8 kB / 0.5931 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.2191, allocations: 71.95 kB / 0.5932 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2193, allocations: 98.45 kB / 0.5933 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.2195, allocations: 75.95 kB / 0.5933 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.2195, allocations: 4 kB / 0.5933 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004734/0.22, allocations: 209.3 kB / 0.5935 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.22, allocations: 8 kB / 0.5935 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2201, allocations: 3.938 kB / 0.5936 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2201, allocations: 0 / 0.5936 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.2203, allocations: 47.97 kB / 0.5936 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2203, allocations: 0 / 0.5936 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.2205, allocations: 32.03 kB / 0.5936 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.2205, allocations: 8 kB / 0.5936 GB, free: 12.3 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.0001218/0.2206, allocations: 133.7 kB / 0.5938 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.2207, allocations: 11.81 kB / 0.5938 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.2207, allocations: 24.7 kB / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2207, allocations: 0 / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2207, allocations: 0 / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2207, allocations: 4 kB / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.221, allocations: 237.5 kB / 0.594 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2211, allocations: 0 / 0.594 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.2212, allocations: 43.97 kB / 0.5941 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2213, allocations: 0 / 0.5941 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2213, allocations: 4 kB / 0.5941 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2213, allocations: 0 / 0.5941 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2213, allocations: 4 kB / 0.5941 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007512/0.2221, allocations: 386.6 kB / 0.5944 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.2221, allocations: 89.05 kB / 0.5945 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2222, allocations: 4 kB / 0.5945 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.2223, allocations: 35.84 kB / 0.5946 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.2224, allocations: 16.05 kB / 0.5946 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.2224, allocations: 4 kB / 0.5946 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.83e-05/0.2225, allocations: 115.2 kB / 0.5947 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2225, allocations: 0 / 0.5947 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002593/0.2228, allocations: 31.91 kB / 0.5947 GB, free: 11.09 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.001021/0.2238, allocations: 0.9199 MB / 0.5956 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004579/0.2243, allocations: 172 kB / 0.5958 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2243, allocations: 0 / 0.5958 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.2245, allocations: 79.95 kB / 0.5959 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.2249, allocations: 27.22 kB / 0.5959 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.2268, allocations: 1.096 MB / 0.597 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.2271, allocations: 0.7199 MB / 0.5977 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.101e-05/0.2272, allocations: 12.56 kB / 0.5977 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.453e-05/0.2273, allocations: 43.41 kB / 0.5977 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.2273, allocations: 0 / 0.5977 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01364/0.2409, allocations: 2.789 MB / 0.6004 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.2411, allocations: 191.9 kB / 0.6006 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.134, allocations: 0 / 0.6006 GB, free: 5.051 MB / 0.4981 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) Environment - environmentSimulation: