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.000875/0.0008751, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.0008862/0.0008862, allocations: 177.3 kB / 15.95 MB, free: 216 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.316/1.316, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.937/0.937, allocations: 135.2 MB / 426.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.000313, allocations: 12 kB / 0.5069 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1717, allocations: 82.32 MB / 0.5873 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.001907/0.1736, allocations: 1.644 MB / 0.5889 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007161/0.1744, allocations: 0.493 MB / 0.5894 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.301e-05/0.1744, allocations: 0 / 0.5894 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.1745, allocations: 23.86 kB / 0.5894 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.1746, allocations: 47.81 kB / 0.5894 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.1748, allocations: 39.95 kB / 0.5895 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.175, allocations: 131.6 kB / 0.5896 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1752, allocations: 57.77 kB / 0.5897 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.1753, allocations: 55.84 kB / 0.5897 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.1754, allocations: 63.69 kB / 0.5898 GB, free: 468 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.1754, allocations: 8 kB / 0.5898 GB, free: 460 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.557e-05/0.1755, allocations: 8 kB / 0.5898 GB, free: 452 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.748e-05/0.1755, allocations: 31.84 kB / 0.5898 GB, free: 420 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.098e-05/0.1756, allocations: 49.64 kB / 0.5899 GB, free: 364 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.1757, allocations: 119.9 kB / 0.59 GB, free: 244 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1757, allocations: 0 / 0.59 GB, free: 244 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1757, allocations: 0 / 0.59 GB, free: 244 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1757, allocations: 0 / 0.59 GB, free: 244 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.0007029/0.1764, allocations: 474.8 kB / 0.5904 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1765, allocations: 8.031 kB / 0.5904 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.315e-05/0.1765, allocations: 50.55 kB / 0.5905 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.214e-05/0.1766, allocations: 19.72 kB / 0.5905 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.1768, allocations: 214.7 kB / 0.5907 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.312e-05/0.1769, allocations: 49.67 kB / 0.5908 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.1769, allocations: 12 kB / 0.5908 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.1773, allocations: 169.5 kB / 0.5909 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1773, allocations: 4 kB / 0.5909 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1773, allocations: 4 kB / 0.5909 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1773, allocations: 4 kB / 0.5909 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.1778, allocations: 164.4 kB / 0.5911 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.1786, allocations: 0.5425 MB / 0.5916 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.179, allocations: 146.6 kB / 0.5918 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.1791, allocations: 0 / 0.5918 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.1791, allocations: 42.78 kB / 0.5918 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 8.41e-07/0.1791, allocations: 3.938 kB / 0.5918 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007398/0.1798, allocations: 257.4 kB / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.1799, allocations: 51.41 kB / 0.5921 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.18, allocations: 157.7 kB / 0.5923 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1801, allocations: 25.7 kB / 0.5923 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.1802, allocations: 124.2 kB / 0.5924 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.1802, allocations: 43.39 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.1802, allocations: 4 kB / 0.5924 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1803, allocations: 326.8 kB / 0.5928 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.1806, allocations: 75.94 kB / 0.5928 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.1808, allocations: 98.52 kB / 0.5929 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.181, allocations: 71.97 kB / 0.593 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.181, allocations: 0 / 0.593 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004786/0.1815, allocations: 209.4 kB / 0.5932 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1815, allocations: 11.94 kB / 0.5932 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1815, allocations: 3.984 kB / 0.5932 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1815, allocations: 0 / 0.5932 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1817, allocations: 51.97 kB / 0.5933 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1818, allocations: 0 / 0.5933 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.1819, allocations: 39.81 kB / 0.5933 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.1819, allocations: 4 kB / 0.5933 GB, free: 12.58 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.000104/0.182, allocations: 133.7 kB / 0.5934 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.1821, allocations: 11.81 kB / 0.5934 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.1821, allocations: 16.72 kB / 0.5935 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1821, allocations: 4 kB / 0.5935 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1822, allocations: 0 / 0.5935 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1822, allocations: 3.984 kB / 0.5935 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.1824, allocations: 237.5 kB / 0.5937 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1824, allocations: 0 / 0.5937 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.1826, allocations: 47.95 kB / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1826, allocations: 0 / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1826, allocations: 4 kB / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1826, allocations: 4 kB / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1826, allocations: 0 / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.1834, allocations: 383 kB / 0.5941 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/0.1834, allocations: 85.05 kB / 0.5942 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.1835, allocations: 7.984 kB / 0.5942 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.1836, allocations: 31.98 kB / 0.5942 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.1837, allocations: 15.97 kB / 0.5942 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1837, allocations: 0 / 0.5942 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.69e-05/0.1838, allocations: 115.2 kB / 0.5943 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1838, allocations: 0 / 0.5943 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002417/0.184, allocations: 35.91 kB / 0.5944 GB, free: 11.37 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.0009638/0.185, allocations: 0.9276 MB / 0.5953 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004589/0.1855, allocations: 164 kB / 0.5954 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1855, allocations: 0 / 0.5954 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.1857, allocations: 83.95 kB / 0.5955 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.186, allocations: 19.98 kB / 0.5955 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.1879, allocations: 1.386 MB / 0.5969 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.1881, allocations: 0.7238 MB / 0.5976 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.247e-05/0.1882, allocations: 12.55 kB / 0.5976 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.979e-05/0.1883, allocations: 47.42 kB / 0.5977 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.1883, allocations: 0 / 0.5977 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.082/2.27, allocations: 2.773 MB / 0.6004 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/2.271, allocations: 187.4 kB / 0.6005 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/3.983, allocations: 2.109 kB / 0.6006 GB, free: 5.047 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/linux/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) Environment - environmentSimulation: