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.001402/0.001402, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001581/0.001581, allocations: 191.5 kB / 16.25 MB, free: 6.648 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.319/1.319, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9831/0.9831, allocations: 135.1 MB / 425.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 64.08 kB / 0.505 GB, free: 5.547 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1482, allocations: 80.92 MB / 0.584 GB, free: 4.793 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.00312/0.1513, allocations: 2.077 MB / 0.586 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008794/0.1522, allocations: 0.522 MB / 0.5865 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1524, allocations: 4 kB / 0.5865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1525, allocations: 19.84 kB / 0.5865 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.1526, allocations: 31.7 kB / 0.5866 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.1529, allocations: 59.89 kB / 0.5866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.1531, allocations: 183.3 kB / 0.5868 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.1533, allocations: 74.23 kB / 0.5869 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.1534, allocations: 71.77 kB / 0.5869 GB, free: 1.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.1536, allocations: 75.69 kB / 0.587 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.1536, allocations: 16 kB / 0.587 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.732e-05/0.1536, allocations: 15.94 kB / 0.587 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.847e-05/0.1537, allocations: 43.84 kB / 0.5871 GB, free: 1.582 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.957e-05/0.1538, allocations: 79.59 kB / 0.5872 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.154, allocations: 171.6 kB / 0.5873 GB, free: 1.336 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.154, allocations: 3.984 kB / 0.5873 GB, free: 1.332 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.154, allocations: 4 kB / 0.5873 GB, free: 1.328 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.154, allocations: 0 / 0.5873 GB, free: 1.328 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.0007543/0.1548, allocations: 486.8 kB / 0.5878 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1548, allocations: 12.03 kB / 0.5878 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.007e-05/0.1549, allocations: 42.75 kB / 0.5879 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.1549, allocations: 24.66 kB / 0.5879 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.1551, allocations: 219.3 kB / 0.5881 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.1552, allocations: 34.27 kB / 0.5881 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.1552, allocations: 12.38 kB / 0.5881 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.1556, allocations: 161.5 kB / 0.5883 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1557, allocations: 0 / 0.5883 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.1557, allocations: 4 kB / 0.5883 GB, free: 256 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1557, allocations: 8 kB / 0.5883 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.1562, allocations: 139.9 kB / 0.5884 GB, free: 108 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007702/0.157, allocations: 0.5385 MB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.1574, allocations: 138.6 kB / 0.5891 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.1576, allocations: 76.81 kB / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.1576, allocations: 3.938 kB / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.1577, allocations: 30.56 kB / 0.5892 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1577, allocations: 4 kB / 0.5892 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006729/0.1584, allocations: 213.5 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.1584, allocations: 55.41 kB / 0.5895 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.1585, allocations: 153.5 kB / 0.5896 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.1585, allocations: 37.64 kB / 0.5896 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.1586, allocations: 128 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.1587, allocations: 43.39 kB / 0.5898 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.1587, allocations: 29.7 kB / 0.5898 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.1588, allocations: 326.8 kB / 0.5901 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.159, allocations: 59.95 kB / 0.5902 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.1592, allocations: 93.55 kB / 0.5903 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.1596, allocations: 142.4 kB / 0.5904 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1596, allocations: 0 / 0.5904 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004642/0.1601, allocations: 188.3 kB / 0.5906 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1601, allocations: 6.188 kB / 0.5906 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1602, allocations: 0 / 0.5906 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1602, allocations: 4.062 kB / 0.5906 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.1604, allocations: 43.91 kB / 0.5907 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1604, allocations: 4 kB / 0.5907 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1605, allocations: 27.81 kB / 0.5907 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.1606, allocations: 8 kB / 0.5907 GB, free: 13.63 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.885e-05/0.1607, allocations: 130.2 kB / 0.5908 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.755e-05/0.1607, allocations: 19.8 kB / 0.5908 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.1608, allocations: 20.7 kB / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1608, allocations: 0 / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1608, allocations: 0 / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1608, allocations: 4 kB / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.161, allocations: 237.5 kB / 0.5911 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.161, allocations: 0 / 0.5911 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.1612, allocations: 39.97 kB / 0.5911 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.1612, allocations: 4 kB / 0.5911 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1613, allocations: 0 / 0.5911 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1613, allocations: 4 kB / 0.5911 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1613, allocations: 0 / 0.5911 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.162, allocations: 347 kB / 0.5915 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.162, allocations: 88.98 kB / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.162, allocations: 4 kB / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1622, allocations: 19.97 kB / 0.5916 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.1623, allocations: 15.98 kB / 0.5916 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.1623, allocations: 0 / 0.5916 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.9e-05/0.1624, allocations: 115.2 kB / 0.5917 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1624, allocations: 0 / 0.5917 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002577/0.1626, allocations: 39.97 kB / 0.5917 GB, free: 12.47 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.0008929/0.1635, allocations: 0.8761 MB / 0.5926 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004447/0.164, allocations: 143.8 kB / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.164, allocations: 0 / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.1642, allocations: 82.53 kB / 0.5928 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.1646, allocations: 23.92 kB / 0.5928 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.167, allocations: 2.026 MB / 0.5948 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.1673, allocations: 0.7158 MB / 0.5955 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.095e-05/0.1674, allocations: 12.55 kB / 0.5955 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.347e-05/0.1675, allocations: 43.42 kB / 0.5956 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1675, allocations: 0 / 0.5956 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3413/0.5088, allocations: 3.002 MB / 0.5985 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.509, allocations: 203.8 kB / 0.5987 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.304, allocations: 2.672 kB / 0.5987 GB, free: 5.316 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)