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.001548/0.001548, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.249/1.249, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8782/0.8782, allocations: 135.1 MB / 425.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 67.39 kB / 0.5054 GB, free: 5.215 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1259, allocations: 80.91 MB / 0.5845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002963/0.1289, allocations: 2.024 MB / 0.5864 GB, free: 2.41 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007917/0.1297, allocations: 0.5299 MB / 0.587 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.331e-05/0.1298, allocations: 7.938 kB / 0.587 GB, free: 1.867 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.1299, allocations: 19.8 kB / 0.587 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.554e-05/0.13, allocations: 43.56 kB / 0.587 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.1302, allocations: 59.86 kB / 0.5871 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.1304, allocations: 191.2 kB / 0.5873 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.1306, allocations: 70.3 kB / 0.5873 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.1307, allocations: 67.78 kB / 0.5874 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1308, allocations: 79.67 kB / 0.5875 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.1308, allocations: 16 kB / 0.5875 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.891e-05/0.1309, allocations: 16 kB / 0.5875 GB, free: 1.309 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.481e-05/0.1309, allocations: 39.83 kB / 0.5875 GB, free: 1.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.883e-05/0.131, allocations: 79.61 kB / 0.5876 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.1311, allocations: 167.6 kB / 0.5878 GB, free: 1.027 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1311, allocations: 4 kB / 0.5878 GB, free: 1.023 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1311, allocations: 0 / 0.5878 GB, free: 1.023 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1312, allocations: 0 / 0.5878 GB, free: 1.023 MB / 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.0006589/0.1318, allocations: 490.8 kB / 0.5882 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.1319, allocations: 12.03 kB / 0.5883 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.287e-05/0.1319, allocations: 50.73 kB / 0.5883 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.985e-05/0.132, allocations: 24.64 kB / 0.5883 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.1321, allocations: 215.5 kB / 0.5885 GB, free: 160 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.1322, allocations: 34.27 kB / 0.5886 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.1322, allocations: 16.38 kB / 0.5886 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.1326, allocations: 158.9 kB / 0.5887 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1326, allocations: 0 / 0.5887 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.1326, allocations: 8 kB / 0.5887 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1326, allocations: 4 kB / 0.5887 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.1331, allocations: 143.9 kB / 0.5889 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/0.1338, allocations: 0.5346 MB / 0.5894 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.1341, allocations: 142.6 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.1344, allocations: 80.8 kB / 0.5896 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.1344, allocations: 0 / 0.5896 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.1344, allocations: 34.56 kB / 0.5896 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 8.31e-07/0.1344, allocations: 0 / 0.5896 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006398/0.1351, allocations: 217.4 kB / 0.5899 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.1351, allocations: 59.34 kB / 0.5899 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.1352, allocations: 158 kB / 0.5901 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.1352, allocations: 25.7 kB / 0.5901 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.1353, allocations: 128.1 kB / 0.5902 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.1353, allocations: 43.39 kB / 0.5902 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.1354, allocations: 37.64 kB / 0.5903 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.729e-05/0.1355, allocations: 318.8 kB / 0.5906 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.1357, allocations: 63.95 kB / 0.5907 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.1359, allocations: 85.47 kB / 0.5907 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003653/0.1362, allocations: 145.2 kB / 0.5909 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1363, allocations: 0 / 0.5909 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004368/0.1367, allocations: 189.4 kB / 0.5911 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.1367, allocations: 4 kB / 0.5911 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.1367, allocations: 4.062 kB / 0.5911 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1367, allocations: 4 kB / 0.5911 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.1369, allocations: 39.91 kB / 0.5911 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1369, allocations: 0 / 0.5911 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.1371, allocations: 31.81 kB / 0.5911 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1371, allocations: 4 kB / 0.5911 GB, free: 13.32 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 8.488e-05/0.1372, allocations: 125.8 kB / 0.5913 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.1372, allocations: 15.81 kB / 0.5913 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.1372, allocations: 24.7 kB / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1373, allocations: 0 / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1373, allocations: 0 / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1373, allocations: 0 / 0.5913 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.1375, allocations: 241.5 kB / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1375, allocations: 0 / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1377, allocations: 35.91 kB / 0.5916 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1377, allocations: 0 / 0.5916 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1377, allocations: 12 kB / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1377, allocations: 0 / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1377, allocations: 7.938 kB / 0.5916 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006537/0.1384, allocations: 342.5 kB / 0.5919 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.732e-05/0.1384, allocations: 88.98 kB / 0.592 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.1384, allocations: 4 kB / 0.592 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1386, allocations: 23.95 kB / 0.592 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.1386, allocations: 11.98 kB / 0.592 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.1387, allocations: 4 kB / 0.592 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.379e-05/0.1387, allocations: 111.2 kB / 0.5921 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1387, allocations: 0 / 0.5921 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002349/0.139, allocations: 39.97 kB / 0.5922 GB, free: 12.16 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.0008513/0.1398, allocations: 0.88 MB / 0.593 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004226/0.1403, allocations: 139.8 kB / 0.5932 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.1403, allocations: 4 kB / 0.5932 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.1405, allocations: 88 kB / 0.5933 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.1408, allocations: 16.97 kB / 0.5933 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.143, allocations: 1.971 MB / 0.5952 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.1432, allocations: 0.7158 MB / 0.5959 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.89e-05/0.1433, allocations: 12.53 kB / 0.5959 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.96e-05/0.1433, allocations: 43.42 kB / 0.5959 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of SimCode: time 2e-07/0.1434, allocations: 0 / 0.5959 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.228/2.372, allocations: 3.231 MB / 0.5991 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/16.11, allocations: 8.047 kB / 0.5991 GB, free: 5.027 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/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)