Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.291/2.291, allocations: 390.4 MB / 397.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 181.2 kB / 490.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.65/1.65, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009898/0.0009898, allocations: 91.8 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7814/0.7824, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/1.11, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.195/6.305, allocations: 2.214 GB / 3.426 GB, free: 94.45 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/6.305, allocations: 99.88 kB / 3.426 GB, free: 94.35 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1075 * Number of variables: 1075 Notification: Performance of Generate backend data structure: time 9.579/15.88, allocations: 2.35 GB / 5.776 GB, free: 170.1 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/15.88, allocations: 11.16 kB / 5.776 GB, free: 170.1 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/15.9, allocations: 1.356 MB / 5.778 GB, free: 169.8 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02107/15.92, allocations: 7.236 MB / 5.785 GB, free: 169.1 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/15.92, allocations: 132.4 kB / 5.785 GB, free: 169.1 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002222/15.92, allocations: 253.5 kB / 5.785 GB, free: 169.1 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01221/15.93, allocations: 4.797 MB / 5.79 GB, free: 169.1 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/15.95, allocations: 5.29 MB / 5.795 GB, free: 168.7 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002843/15.95, allocations: 9.219 kB / 5.795 GB, free: 168.6 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/15.95, allocations: 3.906 kB / 5.795 GB, free: 168.6 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002369/15.95, allocations: 210.2 kB / 5.795 GB, free: 168.6 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0546/16, allocations: 26.68 MB / 5.821 GB, free: 157.5 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003776/16.01, allocations: 2.149 MB / 5.823 GB, free: 157.5 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/16.01, allocations: 2.216 MB / 5.826 GB, free: 157.5 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/16.01, allocations: 1.087 MB / 5.827 GB, free: 156.4 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003108/16.02, allocations: 2.043 MB / 5.829 GB, free: 156.2 MB / 1.214 GB Notification: Performance of pre-optimization done (n=287): time 5.821e-06/16.02, allocations: 0 / 5.829 GB, free: 156.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=291): time 0.02856/16.04, allocations: 10.12 MB / 5.839 GB, free: 153.5 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.377e-05/16.04, allocations: 214.7 kB / 5.839 GB, free: 153.3 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007432/16.05, allocations: 3.981 MB / 5.843 GB, free: 153 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001054/16.05, allocations: 39.5 kB / 5.843 GB, free: 152.9 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.002192/16.06, allocations: 1.58 MB / 5.844 GB, free: 152.1 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002648/16.06, allocations: 0.9718 MB / 5.845 GB, free: 151.5 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/16.06, allocations: 0 / 5.845 GB, free: 151.5 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002263/16.06, allocations: 426.7 kB / 5.846 GB, free: 151.2 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/16.06, allocations: 1.543 MB / 5.847 GB, free: 151.2 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/16.06, allocations: 2.281 MB / 5.849 GB, free: 150.5 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003435/16.07, allocations: 2.073 MB / 5.851 GB, free: 150.4 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/16.07, allocations: 2.875 kB / 5.851 GB, free: 150.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008747/16.08, allocations: 4.455 MB / 5.856 GB, free: 150 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001533/16.08, allocations: 5.832 MB / 5.861 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/16.08, allocations: 16.52 kB / 5.861 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007255/16.08, allocations: 225.9 kB / 5.862 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003191/16.08, allocations: 0.6619 MB / 5.862 GB, free: 143.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00313/16.08, allocations: 3.355 MB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007686/16.09, allocations: 477 kB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007699/16.09, allocations: 129.3 kB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/16.09, allocations: 3.969 kB / 5.866 GB, free: 141.5 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007439/16.1, allocations: 3.929 MB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/16.1, allocations: 12.31 kB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006733/16.1, allocations: 224.5 kB / 5.87 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/16.1, allocations: 0.647 MB / 5.871 GB, free: 141.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/16.11, allocations: 3.924 MB / 5.875 GB, free: 138.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007616/16.12, allocations: 454.6 kB / 5.875 GB, free: 138.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000922/16.12, allocations: 123 kB / 5.875 GB, free: 138.8 MB / 1.214 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 (354): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.001211/16.12, allocations: 212.9 kB / 5.875 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002125/16.12, allocations: 462 kB / 5.876 GB, free: 138.4 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009503/16.13, allocations: 4.202 MB / 5.88 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/16.13, allocations: 26.25 kB / 5.88 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.608e-05/16.13, allocations: 3.281 kB / 5.88 GB, free: 138.2 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006137/16.14, allocations: 3.507 MB / 5.883 GB, free: 138 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02784/16.16, allocations: 10.27 MB / 5.893 GB, free: 137.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.223e-05/16.16, allocations: 3.406 kB / 5.893 GB, free: 137.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00369/16.17, allocations: 0.6333 MB / 5.894 GB, free: 137.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006036/16.17, allocations: 177.1 kB / 5.894 GB, free: 137.1 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006072/16.17, allocations: 53.45 kB / 5.894 GB, free: 137.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002862/16.17, allocations: 3.247 MB / 5.897 GB, free: 134.7 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/16.17, allocations: 5.688 kB / 5.897 GB, free: 134.7 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01374/16.19, allocations: 6.838 MB / 5.904 GB, free: 133.3 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01646/16.2, allocations: 9.905 MB / 5.914 GB, free: 131.5 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005147/16.21, allocations: 1.12 MB / 5.915 GB, free: 131.1 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002335/16.21, allocations: 31.94 kB / 5.915 GB, free: 131.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006471/16.22, allocations: 393.6 kB / 5.915 GB, free: 131.1 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004818/16.22, allocations: 155.5 kB / 5.915 GB, free: 131.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005386/16.22, allocations: 118.5 kB / 5.916 GB, free: 131.1 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.008794/16.23, allocations: 3.089 MB / 5.919 GB, free: 130.9 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02426/16.25, allocations: 3.52 MB / 5.922 GB, free: 130.9 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,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 (279): * Single equations (assignments): 271 * 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.008754/16.26, allocations: 3.328 MB / 5.925 GB, free: 129.7 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01452/16.27, allocations: 6.34 MB / 5.931 GB, free: 129.2 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/16.27, allocations: 0.7812 kB / 5.931 GB, free: 129.2 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.004127/16.28, allocations: 2.019 MB / 5.933 GB, free: 129.1 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01787/16.3, allocations: 2.66 MB / 5.936 GB, free: 129.1 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03661/16.33, allocations: 10.7 MB / 5.946 GB, free: 127.1 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01046/16.34, allocations: 4.667 MB / 5.951 GB, free: 126.3 MB / 1.214 GB Notification: Performance of SimCode: time 1.453e-06/16.34, allocations: 0 / 5.951 GB, free: 126.3 MB / 1.214 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1)