Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_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.003291/0.003291, allocations: 182.6 kB / 7.461 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7145/0.7145, allocations: 133.5 MB / 141.4 MB, free: 15.74 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.608/1.608, 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.001049/0.001049, allocations: 98.08 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.55/0.5511, allocations: 88.43 MB / 0.5529 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.7674, allocations: 82.31 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.5/2.268, allocations: 414.2 MB / 1.038 GB, free: 219.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/2.268, allocations: 94.95 kB / 1.038 GB, free: 219.2 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.249/6.517, allocations: 1.186 GB / 2.224 GB, free: 80.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/6.517, allocations: 10.44 kB / 2.224 GB, free: 80.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003583/6.521, allocations: 486.5 kB / 2.224 GB, free: 80.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00913/6.53, allocations: 2.296 MB / 2.227 GB, free: 78.17 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/6.53, allocations: 36 kB / 2.227 GB, free: 78.14 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005935/6.531, allocations: 74.56 kB / 2.227 GB, free: 78.07 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002831/6.533, allocations: 0.7925 MB / 2.228 GB, free: 77.27 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003143/6.537, allocations: 1.054 MB / 2.229 GB, free: 76.12 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-05/6.537, allocations: 6.156 kB / 2.229 GB, free: 76.12 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001736/6.537, allocations: 3.094 kB / 2.229 GB, free: 76.12 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.03e-05/6.537, allocations: 49.97 kB / 2.229 GB, free: 76.07 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01474/6.552, allocations: 6.96 MB / 2.235 GB, free: 68.71 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008557/6.553, allocations: 449.2 kB / 2.236 GB, free: 68.27 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/6.553, allocations: 344.4 kB / 2.236 GB, free: 67.93 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00677/6.56, allocations: 2.933 MB / 2.239 GB, free: 64.71 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005182/6.561, allocations: 342 kB / 2.239 GB, free: 64.38 MB / 0.698 GB Notification: Performance of pre-optimization done (n=66): time 3.888e-06/6.561, allocations: 0 / 2.239 GB, free: 64.38 MB / 0.698 GB Notification: Performance of matching and sorting (n=66): time 0.002689/6.563, allocations: 0.8514 MB / 2.24 GB, free: 63.52 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/6.563, allocations: 115.5 kB / 2.24 GB, free: 63.38 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/6.566, allocations: 1.223 MB / 2.242 GB, free: 62.16 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/6.566, allocations: 33.14 kB / 2.242 GB, free: 62.12 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005793/6.567, allocations: 0.5599 MB / 2.242 GB, free: 61.55 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/6.567, allocations: 232.6 kB / 2.242 GB, free: 61.32 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/6.567, allocations: 4 kB / 2.242 GB, free: 61.32 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.819e-05/6.567, allocations: 341.9 kB / 2.243 GB, free: 60.98 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/6.568, allocations: 261.9 kB / 2.243 GB, free: 60.72 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006268/6.568, allocations: 0.6646 MB / 2.244 GB, free: 59.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/6.57, allocations: 0.5075 MB / 2.244 GB, free: 59.39 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/6.57, allocations: 4 kB / 2.244 GB, free: 59.39 MB / 0.698 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00281/6.573, allocations: 1.137 MB / 2.245 GB, free: 58.26 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001071/6.574, allocations: 4.421 MB / 2.249 GB, free: 53.49 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/6.574, allocations: 8 kB / 2.249 GB, free: 53.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.952e-05/6.574, allocations: 20 kB / 2.249 GB, free: 53.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/6.575, allocations: 247.9 kB / 2.25 GB, free: 53.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/6.575, allocations: 27.92 kB / 2.25 GB, free: 53.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/6.577, allocations: 152 kB / 2.25 GB, free: 53.06 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/6.577, allocations: 63.41 kB / 2.25 GB, free: 53 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/6.577, allocations: 6.656 kB / 2.25 GB, free: 53 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002253/6.579, allocations: 0.9141 MB / 2.251 GB, free: 52.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/6.579, allocations: 12 kB / 2.251 GB, free: 52.08 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/6.579, allocations: 16 kB / 2.251 GB, free: 52.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009902/6.58, allocations: 254.4 kB / 2.251 GB, free: 51.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/6.58, allocations: 23.92 kB / 2.251 GB, free: 51.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/6.582, allocations: 131.5 kB / 2.251 GB, free: 51.68 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/6.582, allocations: 51.98 kB / 2.251 GB, free: 51.62 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.0002991/6.582, allocations: 143.8 kB / 2.251 GB, free: 51.48 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004529/6.583, allocations: 169.8 kB / 2.252 GB, free: 51.31 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/6.586, allocations: 1.122 MB / 2.253 GB, free: 50.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/6.586, allocations: 8 kB / 2.253 GB, free: 50.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/6.586, allocations: 0 / 2.253 GB, free: 50.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00169/6.588, allocations: 0.9013 MB / 2.254 GB, free: 49.25 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005281/6.593, allocations: 2.146 MB / 2.256 GB, free: 47.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/6.593, allocations: 3.938 kB / 2.256 GB, free: 47.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/6.594, allocations: 154.4 kB / 2.256 GB, free: 46.92 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/6.594, allocations: 27.5 kB / 2.256 GB, free: 46.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.826e-05/6.594, allocations: 15.98 kB / 2.256 GB, free: 46.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008536/6.595, allocations: 1.26 MB / 2.257 GB, free: 45.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/6.595, allocations: 0 / 2.257 GB, free: 45.5 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002572/6.598, allocations: 1.427 MB / 2.259 GB, free: 44.05 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003237/6.601, allocations: 2.255 MB / 2.261 GB, free: 41.75 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009922/6.602, allocations: 342.7 kB / 2.261 GB, free: 41.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004936/6.602, allocations: 7.984 kB / 2.261 GB, free: 41.39 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/6.604, allocations: 75.58 kB / 2.261 GB, free: 41.32 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/6.604, allocations: 55.27 kB / 2.261 GB, free: 41.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.912e-05/6.604, allocations: 35.97 kB / 2.261 GB, free: 41.24 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.001834/6.606, allocations: 0.911 MB / 2.262 GB, free: 40.34 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.007021/6.613, allocations: 1.247 MB / 2.263 GB, free: 39.09 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.003451/6.616, allocations: 1.182 MB / 2.264 GB, free: 38.21 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002669/6.619, allocations: 1.279 MB / 2.266 GB, free: 36.93 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/6.619, allocations: 0 / 2.266 GB, free: 36.93 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008173/6.62, allocations: 464 kB / 2.266 GB, free: 36.46 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/6.623, allocations: 0.5849 MB / 2.267 GB, free: 35.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006279/6.629, allocations: 2.342 MB / 2.269 GB, free: 33.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00202/6.631, allocations: 1.573 MB / 2.271 GB, free: 31.93 MB / 0.698 GB Notification: Performance of SimCode: time 2.505e-06/6.631, allocations: 0 / 2.271 GB, free: 31.93 MB / 0.698 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)