Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_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.001101/0.001101, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001562/0.001562, allocations: 168.7 kB / 15.95 MB, free: 204 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.508/1.508, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8099/0.8099, allocations: 132.3 MB / 423.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 8 kB / 0.5035 GB, free: 4.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5131/0.5135, allocations: 81.57 MB / 0.5831 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002297/0.5159, allocations: 1.697 MB / 0.5848 GB, free: 2.797 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008384/0.5167, allocations: 0.4959 MB / 0.5853 GB, free: 2.449 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.992e-05/0.5168, allocations: 1.375 kB / 0.5853 GB, free: 2.449 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.5169, allocations: 15.2 kB / 0.5853 GB, free: 2.441 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 9.89e-05/0.5171, allocations: 40.53 kB / 0.5853 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/0.5173, allocations: 44.66 kB / 0.5854 GB, free: 2.391 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.5175, allocations: 167.1 kB / 0.5855 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.5177, allocations: 52.98 kB / 0.5856 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.5178, allocations: 66.44 kB / 0.5857 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.518, allocations: 64.03 kB / 0.5857 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.518, allocations: 6.781 kB / 0.5857 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.9e-05/0.5181, allocations: 6.844 kB / 0.5857 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.846e-05/0.5181, allocations: 27.06 kB / 0.5858 GB, free: 2.215 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.5182, allocations: 54.8 kB / 0.5858 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.5184, allocations: 118.6 kB / 0.5859 GB, free: 2.141 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.5184, allocations: 0 / 0.5859 GB, free: 2.141 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5184, allocations: 0 / 0.5859 GB, free: 2.141 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.5184, allocations: 0.75 kB / 0.5859 GB, free: 2.141 MB / 430.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.0007475/0.5192, allocations: 483.2 kB / 0.5864 GB, free: 1.727 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.5192, allocations: 8.812 kB / 0.5864 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.593e-05/0.5193, allocations: 46.55 kB / 0.5864 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.02e-05/0.5194, allocations: 21.19 kB / 0.5865 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.5195, allocations: 208.8 kB / 0.5867 GB, free: 1.445 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.95e-05/0.5196, allocations: 37.25 kB / 0.5867 GB, free: 1.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.5197, allocations: 13.31 kB / 0.5867 GB, free: 1.406 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004395/0.5201, allocations: 171.9 kB / 0.5869 GB, free: 1.332 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.5201, allocations: 0 / 0.5869 GB, free: 1.332 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.5202, allocations: 5.688 kB / 0.5869 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.5202, allocations: 3.5 kB / 0.5869 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005111/0.5207, allocations: 165.7 kB / 0.587 GB, free: 1.297 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.5215, allocations: 0.5437 MB / 0.5876 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.522, allocations: 142.7 kB / 0.5877 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.5223, allocations: 93.41 kB / 0.5878 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.5223, allocations: 9.359 kB / 0.5878 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.5224, allocations: 32.78 kB / 0.5878 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.893e-06/0.5224, allocations: 0 / 0.5878 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007661/0.5231, allocations: 267.4 kB / 0.5881 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.5232, allocations: 52.78 kB / 0.5881 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.5233, allocations: 155.1 kB / 0.5883 GB, free: 468 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.5233, allocations: 29.7 kB / 0.5883 GB, free: 432 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.732e-05/0.5234, allocations: 127.6 kB / 0.5884 GB, free: 312 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.5235, allocations: 39.53 kB / 0.5885 GB, free: 280 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.5235, allocations: 3.938 kB / 0.5885 GB, free: 276 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.5236, allocations: 331.3 kB / 0.5888 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.5238, allocations: 73.83 kB / 0.5889 GB, free: 15.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.5241, allocations: 100.4 kB / 0.589 GB, free: 15.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.5243, allocations: 78.95 kB / 0.589 GB, free: 15.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5243, allocations: 1.344 kB / 0.589 GB, free: 15.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005409/0.5249, allocations: 207.6 kB / 0.5892 GB, free: 15.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.5249, allocations: 9.469 kB / 0.5892 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.5249, allocations: 1.062 kB / 0.5892 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.5249, allocations: 5.281 kB / 0.5892 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.5252, allocations: 46.73 kB / 0.5893 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.5252, allocations: 9.219 kB / 0.5893 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.5253, allocations: 36.52 kB / 0.5893 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.5254, allocations: 6.703 kB / 0.5893 GB, free: 15.76 MB / 446.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 ($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.0001271/0.5255, allocations: 125.9 kB / 0.5895 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/0.5255, allocations: 13.97 kB / 0.5895 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.5256, allocations: 16.75 kB / 0.5895 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.5256, allocations: 2.266 kB / 0.5895 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.5256, allocations: 1.188 kB / 0.5895 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.5256, allocations: 0.6562 kB / 0.5895 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.526, allocations: 242.9 kB / 0.5897 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.526, allocations: 4.75 kB / 0.5897 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.5262, allocations: 45.66 kB / 0.5898 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.5262, allocations: 1.938 kB / 0.5898 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.5262, allocations: 1.641 kB / 0.5898 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5262, allocations: 0.9688 kB / 0.5898 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5262, allocations: 0 / 0.5898 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007964/0.527, allocations: 381.8 kB / 0.5901 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.5271, allocations: 85 kB / 0.5902 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.5271, allocations: 10.97 kB / 0.5902 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.5273, allocations: 24.62 kB / 0.5903 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.5274, allocations: 16.52 kB / 0.5903 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.5274, allocations: 2.156 kB / 0.5903 GB, free: 15.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.685e-05/0.5275, allocations: 112.8 kB / 0.5904 GB, free: 14.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5275, allocations: 0 / 0.5904 GB, free: 14.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.5278, allocations: 45.45 kB / 0.5904 GB, free: 14.96 MB / 446.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 (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.001058/0.5289, allocations: 0.9143 MB / 0.5913 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.5294, allocations: 168.5 kB / 0.5915 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5294, allocations: 0 / 0.5915 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.5297, allocations: 89.8 kB / 0.5916 GB, free: 14.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.53, allocations: 24.2 kB / 0.5916 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.5322, allocations: 1.107 MB / 0.5927 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.5325, allocations: 0.7188 MB / 0.5934 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.105e-05/0.5326, allocations: 8.359 kB / 0.5934 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.365e-05/0.5327, allocations: 49.23 kB / 0.5934 GB, free: 12.76 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.5327, allocations: 0 / 0.5934 GB, free: 12.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.5488, allocations: 2.78 MB / 0.5961 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.549, allocations: 186.3 kB / 0.5963 GB, free: 12.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.311, allocations: 3.875 kB / 0.5963 GB, free: 12.13 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1) Environment - environmentSimulation: