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.0009925/0.0009924, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006417/0.006417, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9986/0.9986, allocations: 135.3 MB / 426.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 0.5077 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1278, allocations: 82.31 MB / 0.5881 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.001906/0.1297, allocations: 1.723 MB / 0.5898 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007494/0.1305, allocations: 0.5183 MB / 0.5903 GB, free: 260 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.782e-05/0.1306, allocations: 4 kB / 0.5903 GB, free: 256 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.051e-05/0.1307, allocations: 11.86 kB / 0.5903 GB, free: 244 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.1308, allocations: 35.69 kB / 0.5903 GB, free: 208 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.131, allocations: 55.89 kB / 0.5904 GB, free: 152 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.1312, allocations: 179.2 kB / 0.5905 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.1314, allocations: 65.86 kB / 0.5906 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.1315, allocations: 59.72 kB / 0.5907 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.1316, allocations: 59.7 kB / 0.5907 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.1317, allocations: 11.98 kB / 0.5907 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.287e-05/0.1317, allocations: 8 kB / 0.5907 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.1317, allocations: 27.84 kB / 0.5908 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.682e-05/0.1318, allocations: 97.31 kB / 0.5908 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.132, allocations: 159.6 kB / 0.591 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.132, allocations: 4 kB / 0.591 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.132, allocations: 0 / 0.591 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.132, allocations: 0 / 0.591 GB, free: 15.48 MB / 0.4981 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.00065/0.1327, allocations: 482.9 kB / 0.5915 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.1327, allocations: 8.031 kB / 0.5915 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.1328, allocations: 50.73 kB / 0.5915 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.1328, allocations: 20.66 kB / 0.5915 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.133, allocations: 207.3 kB / 0.5917 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.1331, allocations: 38.27 kB / 0.5918 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.1331, allocations: 12.38 kB / 0.5918 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.1335, allocations: 173.5 kB / 0.5919 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1335, allocations: 0 / 0.5919 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.1335, allocations: 11.94 kB / 0.592 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1336, allocations: 0 / 0.592 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004895/0.1341, allocations: 171.9 kB / 0.5921 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007291/0.1348, allocations: 0.5385 MB / 0.5927 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.1352, allocations: 158.5 kB / 0.5928 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.1355, allocations: 92.81 kB / 0.5929 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1355, allocations: 0 / 0.5929 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.1355, allocations: 34.55 kB / 0.5929 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.124e-06/0.1355, allocations: 3.984 kB / 0.5929 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007151/0.1362, allocations: 261.4 kB / 0.5932 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.1363, allocations: 55.34 kB / 0.5932 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.1364, allocations: 157.9 kB / 0.5934 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.1364, allocations: 33.7 kB / 0.5934 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.092e-05/0.1365, allocations: 116.2 kB / 0.5935 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.1365, allocations: 51.39 kB / 0.5936 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.1366, allocations: 21.7 kB / 0.5936 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.881e-05/0.1367, allocations: 322.8 kB / 0.5939 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.1369, allocations: 71.95 kB / 0.594 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.1371, allocations: 98.03 kB / 0.5941 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.1375, allocations: 177.9 kB / 0.5942 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1375, allocations: 0 / 0.5942 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004933/0.138, allocations: 209.4 kB / 0.5944 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1381, allocations: 8 kB / 0.5944 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.1381, allocations: 0 / 0.5944 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.1381, allocations: 0 / 0.5944 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.1383, allocations: 52.03 kB / 0.5945 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1383, allocations: 0 / 0.5945 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.1385, allocations: 35.81 kB / 0.5945 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.1385, allocations: 15.98 kB / 0.5945 GB, free: 11.59 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 (con.y_boolean,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.267e-05/0.1386, allocations: 130.2 kB / 0.5947 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.1386, allocations: 11.81 kB / 0.5947 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/0.1387, allocations: 20.7 kB / 0.5947 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1387, allocations: 0 / 0.5947 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1387, allocations: 8 kB / 0.5947 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1387, allocations: 0 / 0.5947 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.1389, allocations: 237.5 kB / 0.5949 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1389, allocations: 0 / 0.5949 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.1391, allocations: 47.97 kB / 0.595 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1392, allocations: 0 / 0.595 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.1392, allocations: 0 / 0.595 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.1392, allocations: 4 kB / 0.595 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1392, allocations: 7.875 kB / 0.595 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007268/0.1399, allocations: 375.1 kB / 0.5953 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.14, allocations: 88.98 kB / 0.5954 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.14, allocations: 8 kB / 0.5954 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.1402, allocations: 28.03 kB / 0.5955 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.1402, allocations: 19.92 kB / 0.5955 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.1402, allocations: 0 / 0.5955 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.84e-05/0.1403, allocations: 111.2 kB / 0.5956 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1403, allocations: 0 / 0.5956 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002492/0.1406, allocations: 35.91 kB / 0.5956 GB, free: 10.39 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009355/0.1415, allocations: 0.9227 MB / 0.5965 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.142, allocations: 168 kB / 0.5967 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.142, allocations: 0 / 0.5967 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.1422, allocations: 91.83 kB / 0.5968 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.1426, allocations: 19.98 kB / 0.5968 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.145, allocations: 2.124 MB / 0.5989 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/0.1453, allocations: 0.72 MB / 0.5996 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.143e-05/0.1453, allocations: 8.547 kB / 0.5996 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.554e-05/0.1454, allocations: 39.42 kB / 0.5996 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1454, allocations: 0 / 0.5996 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3273/0.4727, allocations: 2.836 MB / 0.6024 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003414/0.4731, allocations: 203.2 kB / 0.6026 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.163, allocations: 0 / 0.6026 GB, free: 3.234 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/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)