Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",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.1.4-maint.8.1.x/package.mo): time 1.682/1.682, allocations: 289.8 MB / 297.1 MB, free: 9 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.001138/0.001138, allocations: 196.4 kB / 366.3 MB, free: 11.31 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.593/1.593, allocations: 205.1 MB / 0.6256 GB, free: 11.37 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 77.52 kB / 0.7396 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.5704/0.5715, allocations: 122.4 MB / 0.8591 GB, free: 148 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.8135, allocations: 116.3 MB / 0.9727 GB, free: 31.62 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.564/6.377, allocations: 2.387 GB / 3.36 GB, free: 321.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/6.377, allocations: 87.95 kB / 3.36 GB, free: 321.6 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 8.549/14.93, allocations: 2.32 GB / 5.68 GB, free: 102.5 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/14.93, allocations: 6.844 kB / 5.68 GB, free: 102.5 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0104/14.94, allocations: 1.369 MB / 5.682 GB, free: 102.1 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02024/14.96, allocations: 7.176 MB / 5.689 GB, free: 101.2 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/14.96, allocations: 131.1 kB / 5.689 GB, free: 101.2 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/14.96, allocations: 267.1 kB / 5.689 GB, free: 101.2 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01023/14.97, allocations: 4.798 MB / 5.694 GB, free: 101.2 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/14.98, allocations: 5.302 MB / 5.699 GB, free: 100.8 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/14.98, allocations: 6.656 kB / 5.699 GB, free: 100.8 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004896/14.98, allocations: 7.812 kB / 5.699 GB, free: 100.8 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001978/14.98, allocations: 210.3 kB / 5.699 GB, free: 100.7 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03967/15.02, allocations: 26.06 MB / 5.724 GB, free: 90.05 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005321/15.03, allocations: 3.828 MB / 5.728 GB, free: 89.7 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/15.03, allocations: 2.213 MB / 5.73 GB, free: 89.66 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00103/15.03, allocations: 1.079 MB / 5.731 GB, free: 88.53 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002772/15.03, allocations: 2.043 MB / 5.733 GB, free: 88.37 MB / 1.01 GB Notification: Performance of pre-optimization done (n=286): time 4.899e-06/15.03, allocations: 0 / 5.733 GB, free: 88.37 MB / 1.01 GB Notification: Performance of matching and sorting (n=290): time 0.02763/15.06, allocations: 10.07 MB / 5.743 GB, free: 85.65 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/15.06, allocations: 295.6 kB / 5.743 GB, free: 85.34 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006942/15.07, allocations: 3.967 MB / 5.747 GB, free: 85.05 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.001009/15.07, allocations: 32.92 kB / 5.747 GB, free: 85.02 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.002045/15.07, allocations: 1.587 MB / 5.749 GB, free: 84.21 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.002321/15.07, allocations: 0.9738 MB / 5.75 GB, free: 83.57 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/15.07, allocations: 3.219 kB / 5.75 GB, free: 83.57 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0002201/15.07, allocations: 428.9 kB / 5.75 GB, free: 83.26 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002194/15.07, allocations: 1.544 MB / 5.752 GB, free: 83.25 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/15.08, allocations: 2.404 MB / 5.754 GB, free: 82.4 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003253/15.08, allocations: 2.089 MB / 5.756 GB, free: 82.35 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/15.08, allocations: 3.562 kB / 5.756 GB, free: 82.35 MB / 1.01 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.008368/15.09, allocations: 4.465 MB / 5.761 GB, free: 81.98 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001406/15.09, allocations: 5.85 MB / 5.766 GB, free: 75.86 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.829e-05/15.09, allocations: 14.56 kB / 5.766 GB, free: 75.86 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006676/15.09, allocations: 198.5 kB / 5.766 GB, free: 75.85 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003271/15.09, allocations: 0.6808 MB / 5.767 GB, free: 75.85 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/15.1, allocations: 3.33 MB / 5.77 GB, free: 73.46 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007998/15.11, allocations: 450 kB / 5.771 GB, free: 73.43 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000561/15.11, allocations: 126.3 kB / 5.771 GB, free: 73.43 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/15.11, allocations: 3.844 kB / 5.771 GB, free: 73.43 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007229/15.11, allocations: 3.922 MB / 5.775 GB, free: 73.33 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.238e-05/15.11, allocations: 15.66 kB / 5.775 GB, free: 73.32 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/15.11, allocations: 216 kB / 5.775 GB, free: 73.3 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002942/15.12, allocations: 0.6645 MB / 5.776 GB, free: 73.3 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004173/15.12, allocations: 3.806 MB / 5.779 GB, free: 70.73 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007018/15.13, allocations: 438.5 kB / 5.78 GB, free: 70.7 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006363/15.13, allocations: 122.1 kB / 5.78 GB, free: 70.7 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (357): * Single equations (assignments): 351 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.001561/15.13, allocations: 212.8 kB / 5.78 GB, free: 70.51 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002544/15.13, allocations: 462.3 kB / 5.781 GB, free: 70.28 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/15.14, allocations: 4.174 MB / 5.785 GB, free: 70.05 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/15.14, allocations: 32.91 kB / 5.785 GB, free: 70.05 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/15.14, allocations: 6.891 kB / 5.785 GB, free: 70.05 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005612/15.15, allocations: 3.474 MB / 5.788 GB, free: 69.79 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02488/15.17, allocations: 10.47 MB / 5.798 GB, free: 65.82 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/15.17, allocations: 4.594 kB / 5.798 GB, free: 65.82 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003394/15.18, allocations: 0.637 MB / 5.799 GB, free: 65.77 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005821/15.18, allocations: 176.1 kB / 5.799 GB, free: 65.72 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000297/15.18, allocations: 53.45 kB / 5.799 GB, free: 65.71 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002972/15.18, allocations: 3.241 MB / 5.802 GB, free: 62.95 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/15.18, allocations: 4.719 kB / 5.802 GB, free: 62.95 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01231/15.19, allocations: 7.161 MB / 5.809 GB, free: 59.54 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01395/15.21, allocations: 10.22 MB / 5.819 GB, free: 54.61 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004605/15.21, allocations: 1.118 MB / 5.82 GB, free: 53.98 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001987/15.22, allocations: 30.5 kB / 5.82 GB, free: 53.97 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006058/15.22, allocations: 394.1 kB / 5.821 GB, free: 53.95 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004107/15.22, allocations: 161.5 kB / 5.821 GB, free: 53.92 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004193/15.22, allocations: 112.7 kB / 5.821 GB, free: 53.89 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.008071/15.23, allocations: 3.076 MB / 5.824 GB, free: 52.75 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.02516/15.26, allocations: 3.568 MB / 5.828 GB, free: 51.69 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (278): * Single equations (assignments): 270 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008955/15.26, allocations: 3.376 MB / 5.831 GB, free: 50.4 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0154/15.28, allocations: 6.396 MB / 5.837 GB, free: 47.9 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.213e-05/15.28, allocations: 3.75 kB / 5.837 GB, free: 47.9 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.005281/15.29, allocations: 2.003 MB / 5.839 GB, free: 47.12 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01834/15.3, allocations: 2.709 MB / 5.842 GB, free: 46.07 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03474/15.34, allocations: 10.63 MB / 5.852 GB, free: 37.27 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008349/15.35, allocations: 4.68 MB / 5.857 GB, free: 33.7 MB / 1.01 GB Notification: Performance of SimCode: time 1.442e-06/15.35, allocations: 2.281 kB / 5.857 GB, free: 33.7 MB / 1.01 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1)