Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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/Buildings 8.0.0/package.mo): time 2.271/2.271, allocations: 284.8 MB / 292.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001753/0.001752, allocations: 177.3 kB / 360.3 MB, free: 7.504 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.79/1.79, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001215/0.001215, allocations: 90.89 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2845/0.2858, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6955/0.9813, allocations: 115.2 MB / 0.9627 GB, free: 78.59 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/2.032, allocations: 447 MB / 1.399 GB, free: 117.5 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/2.032, allocations: 92.08 kB / 1.399 GB, free: 117.4 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 5.244/7.276, allocations: 1.136 GB / 2.536 GB, free: 146.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/7.276, allocations: 14.41 kB / 2.536 GB, free: 146.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003078/7.279, allocations: 390.4 kB / 2.536 GB, free: 146.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/7.29, allocations: 2.501 MB / 2.539 GB, free: 145.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.239e-05/7.29, allocations: 44.2 kB / 2.539 GB, free: 145.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00037/7.29, allocations: 81.53 kB / 2.539 GB, free: 145.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002984/7.293, allocations: 0.8718 MB / 2.54 GB, free: 145 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003297/7.297, allocations: 1.186 MB / 2.541 GB, free: 144.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.335e-05/7.297, allocations: 3.938 kB / 2.541 GB, free: 144.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/7.297, allocations: 3.875 kB / 2.541 GB, free: 144.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.262e-05/7.297, allocations: 36.84 kB / 2.541 GB, free: 144.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0156/7.312, allocations: 7.658 MB / 2.548 GB, free: 138.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/7.314, allocations: 0.6516 MB / 2.549 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008167/7.315, allocations: 362.4 kB / 2.549 GB, free: 138.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005394/7.321, allocations: 2.157 MB / 2.551 GB, free: 136.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009045/7.322, allocations: 383.5 kB / 2.552 GB, free: 136.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=72): time 4.959e-06/7.322, allocations: 0 / 2.552 GB, free: 136.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=72): time 0.003598/7.325, allocations: 0.8555 MB / 2.553 GB, free: 136.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/7.325, allocations: 166.2 kB / 2.553 GB, free: 135.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/7.328, allocations: 1.205 MB / 2.554 GB, free: 135.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003107/7.328, allocations: 25.7 kB / 2.554 GB, free: 135.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006425/7.329, allocations: 0.591 MB / 2.554 GB, free: 135 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004319/7.33, allocations: 242.4 kB / 2.555 GB, free: 134.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.347e-05/7.33, allocations: 0 / 2.555 GB, free: 134.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001064/7.33, allocations: 348.3 kB / 2.555 GB, free: 134.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008748/7.331, allocations: 297.9 kB / 2.555 GB, free: 134.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/7.332, allocations: 0.6654 MB / 2.556 GB, free: 133.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002306/7.334, allocations: 0.493 MB / 2.556 GB, free: 133.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.545e-05/7.334, allocations: 6.5 kB / 2.556 GB, free: 133.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.004496/7.339, allocations: 1.151 MB / 2.558 GB, free: 133.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008316/7.34, allocations: 3.696 MB / 2.561 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.131e-05/7.34, allocations: 10.44 kB / 2.561 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.867e-05/7.34, allocations: 16.95 kB / 2.561 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002253/7.342, allocations: 261.5 kB / 2.561 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.861e-05/7.342, allocations: 19.69 kB / 2.561 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/7.345, allocations: 170.6 kB / 2.562 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/7.345, allocations: 59.39 kB / 2.562 GB, free: 129.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/7.345, allocations: 3.812 kB / 2.562 GB, free: 129.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003681/7.349, allocations: 0.9178 MB / 2.563 GB, free: 128.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.53e-05/7.349, allocations: 17.66 kB / 2.563 GB, free: 128.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/7.349, allocations: 15.94 kB / 2.563 GB, free: 128.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/7.351, allocations: 262.4 kB / 2.563 GB, free: 128.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.385e-05/7.351, allocations: 22.11 kB / 2.563 GB, free: 128.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/7.353, allocations: 160.2 kB / 2.563 GB, free: 128.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/7.354, allocations: 51.7 kB / 2.563 GB, free: 128.8 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0004267/7.354, allocations: 141.7 kB / 2.563 GB, free: 128.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004966/7.355, allocations: 166.2 kB / 2.563 GB, free: 128.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004236/7.359, allocations: 1.097 MB / 2.564 GB, free: 128.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/7.359, allocations: 8.188 kB / 2.564 GB, free: 128.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/7.359, allocations: 1.531 kB / 2.564 GB, free: 128.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002474/7.361, allocations: 0.7409 MB / 2.565 GB, free: 127.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007195/7.369, allocations: 2.213 MB / 2.567 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/7.369, allocations: 0 / 2.567 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/7.37, allocations: 171 kB / 2.568 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002677/7.371, allocations: 26.09 kB / 2.568 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.36e-05/7.371, allocations: 19.33 kB / 2.568 GB, free: 126.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/7.372, allocations: 1.261 MB / 2.569 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/7.372, allocations: 0 / 2.569 GB, free: 125.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004213/7.376, allocations: 1.462 MB / 2.57 GB, free: 124.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005524/7.382, allocations: 2.348 MB / 2.573 GB, free: 123.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/7.383, allocations: 355 kB / 2.573 GB, free: 123.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005481/7.384, allocations: 7.969 kB / 2.573 GB, free: 123.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/7.386, allocations: 105.4 kB / 2.573 GB, free: 123.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/7.386, allocations: 60.92 kB / 2.573 GB, free: 123.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/7.387, allocations: 39.67 kB / 2.573 GB, free: 123.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002153/7.389, allocations: 0.9018 MB / 2.574 GB, free: 122.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.008692/7.397, allocations: 1.408 MB / 2.575 GB, free: 122.4 MB / 0.948 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.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (81): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.003173/7.401, allocations: 1.132 MB / 2.576 GB, free: 122 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003805/7.404, allocations: 1.45 MB / 2.578 GB, free: 121.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/7.405, allocations: 6.828 kB / 2.578 GB, free: 121.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001182/7.406, allocations: 488.7 kB / 2.578 GB, free: 121.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006679/7.412, allocations: 0.7059 MB / 2.579 GB, free: 121 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008467/7.421, allocations: 2.432 MB / 2.581 GB, free: 120.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002187/7.423, allocations: 1.622 MB / 2.583 GB, free: 119.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.363e-06/7.423, allocations: 0 / 2.583 GB, free: 119.3 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)