Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_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.001072/0.001072, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001097/0.001097, allocations: 193.6 kB / 16.14 MB, free: 6.707 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.326/1.326, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7068/0.7068, allocations: 132.2 MB / 422.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 62.41 kB / 0.5012 GB, free: 9.125 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1276, allocations: 80.21 MB / 0.5795 GB, free: 9.148 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002823/0.1305, allocations: 2.089 MB / 0.5815 GB, free: 7.043 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000655/0.1312, allocations: 0.5182 MB / 0.582 GB, free: 6.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.319e-05/0.1313, allocations: 4 kB / 0.582 GB, free: 6.516 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.1314, allocations: 19.78 kB / 0.5821 GB, free: 6.496 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.429e-05/0.1315, allocations: 43.69 kB / 0.5821 GB, free: 6.453 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.1316, allocations: 47.95 kB / 0.5821 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.1318, allocations: 179.2 kB / 0.5823 GB, free: 6.23 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1319, allocations: 65.86 kB / 0.5824 GB, free: 6.164 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.1321, allocations: 63.78 kB / 0.5824 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.045e-05/0.1322, allocations: 75.62 kB / 0.5825 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.1322, allocations: 12 kB / 0.5825 GB, free: 6.016 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.617e-05/0.1322, allocations: 8 kB / 0.5825 GB, free: 6.008 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.179e-05/0.1322, allocations: 35.89 kB / 0.5826 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.1323, allocations: 79.59 kB / 0.5826 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.1325, allocations: 163.6 kB / 0.5828 GB, free: 5.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1325, allocations: 0 / 0.5828 GB, free: 5.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1325, allocations: 0 / 0.5828 GB, free: 5.734 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1325, allocations: 3.938 kB / 0.5828 GB, free: 5.73 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.0006845/0.1332, allocations: 494.8 kB / 0.5833 GB, free: 5.199 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.1333, allocations: 12.02 kB / 0.5833 GB, free: 5.188 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.1333, allocations: 42.75 kB / 0.5833 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.1334, allocations: 24.66 kB / 0.5834 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.1335, allocations: 212 kB / 0.5836 GB, free: 4.867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.1336, allocations: 38.27 kB / 0.5836 GB, free: 4.824 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.1336, allocations: 12.38 kB / 0.5836 GB, free: 4.812 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.134, allocations: 161.5 kB / 0.5838 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.134, allocations: 7.875 kB / 0.5838 GB, free: 4.641 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.134, allocations: 8 kB / 0.5838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.134, allocations: 0 / 0.5838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.1345, allocations: 143.9 kB / 0.5839 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000677/0.1352, allocations: 0.5346 MB / 0.5844 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/0.1356, allocations: 130.7 kB / 0.5846 GB, free: 3.758 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.1358, allocations: 76.81 kB / 0.5846 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.1358, allocations: 4 kB / 0.5846 GB, free: 3.676 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.1358, allocations: 38.5 kB / 0.5847 GB, free: 3.629 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1359, allocations: 0 / 0.5847 GB, free: 3.629 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006672/0.1365, allocations: 225.1 kB / 0.5849 GB, free: 3.406 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.1366, allocations: 51.41 kB / 0.5849 GB, free: 3.344 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1367, allocations: 158.3 kB / 0.5851 GB, free: 3.184 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.1367, allocations: 25.7 kB / 0.5851 GB, free: 3.152 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.1368, allocations: 128.1 kB / 0.5852 GB, free: 3.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/0.1368, allocations: 43.39 kB / 0.5853 GB, free: 2.977 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-05/0.1369, allocations: 29.72 kB / 0.5853 GB, free: 2.941 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.434e-05/0.1369, allocations: 326.8 kB / 0.5856 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.1372, allocations: 59.95 kB / 0.5857 GB, free: 2.555 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.1374, allocations: 82.52 kB / 0.5857 GB, free: 2.465 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.1377, allocations: 146.4 kB / 0.5859 GB, free: 2.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1377, allocations: 0 / 0.5859 GB, free: 2.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004451/0.1382, allocations: 189.4 kB / 0.5861 GB, free: 2.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1382, allocations: 4 kB / 0.5861 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.1382, allocations: 0 / 0.5861 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.1382, allocations: 4 kB / 0.5861 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1384, allocations: 39.91 kB / 0.5861 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1384, allocations: 0 / 0.5861 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.1386, allocations: 31.81 kB / 0.5861 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.1386, allocations: 8.062 kB / 0.5862 GB, free: 2.035 MB / 494.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 (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.925e-05/0.1387, allocations: 129.8 kB / 0.5863 GB, free: 1.898 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.597e-05/0.1388, allocations: 19.81 kB / 0.5863 GB, free: 1.879 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.903e-05/0.1388, allocations: 20.7 kB / 0.5863 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1388, allocations: 4 kB / 0.5863 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1388, allocations: 0 / 0.5863 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1388, allocations: 0 / 0.5863 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.1391, allocations: 245.4 kB / 0.5866 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1391, allocations: 4 kB / 0.5866 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001872/0.1393, allocations: 35.97 kB / 0.5866 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1393, allocations: 0 / 0.5866 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.1393, allocations: 4 kB / 0.5866 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1393, allocations: 0 / 0.5866 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1393, allocations: 3.938 kB / 0.5866 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006706/0.14, allocations: 342.3 kB / 0.5869 GB, free: 1.172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.14, allocations: 88.94 kB / 0.587 GB, free: 1.066 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.1401, allocations: 11.94 kB / 0.587 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.1402, allocations: 19.97 kB / 0.587 GB, free: 1.035 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.1403, allocations: 7.984 kB / 0.587 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.1403, allocations: 16 kB / 0.5871 GB, free: 1.012 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.369e-05/0.1404, allocations: 111.2 kB / 0.5872 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1404, allocations: 0 / 0.5872 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.1406, allocations: 35.91 kB / 0.5872 GB, free: 0.8672 MB / 494.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 (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.0009083/0.1415, allocations: 0.8683 MB / 0.588 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004315/0.142, allocations: 148 kB / 0.5882 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.142, allocations: 0 / 0.5882 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.1422, allocations: 71.89 kB / 0.5883 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.1425, allocations: 15.98 kB / 0.5883 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.1449, allocations: 2.039 MB / 0.5903 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.1452, allocations: 0.716 MB / 0.591 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.105e-05/0.1452, allocations: 12.55 kB / 0.591 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.574e-05/0.1453, allocations: 43.42 kB / 0.591 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1453, allocations: 0 / 0.591 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6615/0.8069, allocations: 2.897 MB / 0.5938 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.8071, allocations: 204.5 kB / 0.594 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.265, allocations: 0 / 0.594 GB, free: 9.816 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)