Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003034/0.003034, allocations: 182.9 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7417/0.7417, allocations: 133.5 MB / 141.4 MB, free: 15.73 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 221.3 MB / 395 MB, free: 10.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 105.7 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4351/0.4362, allocations: 88.42 MB / 0.5529 GB, free: 89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.6283, allocations: 82.3 MB / 0.6333 GB, free: 14.06 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.339/1.967, allocations: 414.2 MB / 1.038 GB, free: 193.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/1.968, allocations: 94.08 kB / 1.038 GB, free: 193.8 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 4.325/6.293, allocations: 1.186 GB / 2.224 GB, free: 70.77 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.36e-05/6.293, allocations: 11.75 kB / 2.224 GB, free: 70.76 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00233/6.295, allocations: 483.2 kB / 2.224 GB, free: 70.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005836/6.301, allocations: 2.3 MB / 2.227 GB, free: 68.02 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/6.301, allocations: 38.69 kB / 2.227 GB, free: 67.99 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/6.301, allocations: 72 kB / 2.227 GB, free: 67.92 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001533/6.303, allocations: 0.7854 MB / 2.228 GB, free: 67.13 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/6.304, allocations: 1.058 MB / 2.229 GB, free: 65.98 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/6.304, allocations: 3.938 kB / 2.229 GB, free: 65.97 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.467e-05/6.305, allocations: 7.984 kB / 2.229 GB, free: 65.96 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/6.305, allocations: 44.73 kB / 2.229 GB, free: 65.92 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008731/6.313, allocations: 6.966 MB / 2.235 GB, free: 58.58 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/6.314, allocations: 443.3 kB / 2.236 GB, free: 58.14 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/6.314, allocations: 350.4 kB / 2.236 GB, free: 57.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004888/6.319, allocations: 2.924 MB / 2.239 GB, free: 54.58 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00048/6.32, allocations: 341.2 kB / 2.239 GB, free: 54.24 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 3.637e-06/6.32, allocations: 0 / 2.239 GB, free: 54.24 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.002253/6.322, allocations: 0.8491 MB / 2.24 GB, free: 53.38 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/6.322, allocations: 107.5 kB / 2.24 GB, free: 53.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/6.324, allocations: 1.229 MB / 2.242 GB, free: 52.02 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.808e-05/6.324, allocations: 37.03 kB / 2.242 GB, free: 51.98 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000382/6.324, allocations: 0.5599 MB / 2.242 GB, free: 51.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/6.324, allocations: 236.6 kB / 2.242 GB, free: 51.18 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/6.324, allocations: 0 / 2.242 GB, free: 51.18 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.289e-05/6.324, allocations: 344.8 kB / 2.243 GB, free: 50.84 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/6.325, allocations: 269.9 kB / 2.243 GB, free: 50.57 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/6.325, allocations: 0.6547 MB / 2.244 GB, free: 49.74 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/6.327, allocations: 0.5072 MB / 2.244 GB, free: 49.25 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/6.327, allocations: 4 kB / 2.244 GB, free: 49.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002217/6.329, allocations: 1.138 MB / 2.245 GB, free: 48.11 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001427/6.33, allocations: 4.413 MB / 2.249 GB, free: 43.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/6.33, allocations: 16 kB / 2.249 GB, free: 43.33 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.344e-05/6.331, allocations: 19.19 kB / 2.249 GB, free: 43.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/6.332, allocations: 251.6 kB / 2.25 GB, free: 43.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.204e-05/6.332, allocations: 27.92 kB / 2.25 GB, free: 43.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/6.333, allocations: 158.8 kB / 2.25 GB, free: 42.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/6.333, allocations: 55.98 kB / 2.25 GB, free: 42.83 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/6.333, allocations: 0 / 2.25 GB, free: 42.83 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002083/6.336, allocations: 0.9242 MB / 2.251 GB, free: 41.91 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/6.336, allocations: 8 kB / 2.251 GB, free: 41.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/6.336, allocations: 20 kB / 2.251 GB, free: 41.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008842/6.336, allocations: 251.7 kB / 2.251 GB, free: 41.63 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/6.337, allocations: 23.92 kB / 2.251 GB, free: 41.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/6.338, allocations: 130.7 kB / 2.251 GB, free: 41.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/6.338, allocations: 55.98 kB / 2.251 GB, free: 41.43 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 1 * Algorithm blocks: 1 * 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.0002675/6.338, allocations: 140.6 kB / 2.251 GB, free: 41.29 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/6.338, allocations: 169.8 kB / 2.252 GB, free: 41.12 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/6.341, allocations: 1.118 MB / 2.253 GB, free: 40 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/6.341, allocations: 11.98 kB / 2.253 GB, free: 39.98 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/6.341, allocations: 0 / 2.253 GB, free: 39.98 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001514/6.343, allocations: 0.897 MB / 2.254 GB, free: 39.03 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/6.347, allocations: 2.158 MB / 2.256 GB, free: 36.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/6.347, allocations: 0 / 2.256 GB, free: 36.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007525/6.348, allocations: 151.8 kB / 2.256 GB, free: 36.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/6.348, allocations: 32.84 kB / 2.256 GB, free: 36.66 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.096e-05/6.349, allocations: 15.98 kB / 2.256 GB, free: 36.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008476/6.349, allocations: 1.255 MB / 2.257 GB, free: 35.28 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/6.349, allocations: 4.031 kB / 2.257 GB, free: 35.28 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002406/6.352, allocations: 1.42 MB / 2.259 GB, free: 33.82 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003217/6.355, allocations: 2.265 MB / 2.261 GB, free: 31.51 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008972/6.356, allocations: 342.7 kB / 2.261 GB, free: 31.15 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004545/6.356, allocations: 3.984 kB / 2.261 GB, free: 31.15 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/6.358, allocations: 83.77 kB / 2.261 GB, free: 31.07 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/6.358, allocations: 48.58 kB / 2.261 GB, free: 31.02 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.697e-05/6.358, allocations: 35.66 kB / 2.261 GB, free: 30.99 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.001585/6.359, allocations: 0.9149 MB / 2.262 GB, free: 30.08 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.005962/6.365, allocations: 1.238 MB / 2.263 GB, free: 28.84 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002765/6.368, allocations: 1.185 MB / 2.264 GB, free: 27.87 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002403/6.371, allocations: 1.276 MB / 2.266 GB, free: 26.59 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/6.371, allocations: 1.625 kB / 2.266 GB, free: 26.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007251/6.371, allocations: 460 kB / 2.266 GB, free: 26.13 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003187/6.375, allocations: 0.5867 MB / 2.267 GB, free: 25.55 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006317/6.381, allocations: 2.349 MB / 2.269 GB, free: 23.18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/6.383, allocations: 1.562 MB / 2.271 GB, free: 21.59 MB / 0.698 GB Notification: Performance of SimCode: time 1.513e-06/6.383, allocations: 0 / 2.271 GB, free: 21.59 MB / 0.698 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)