Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.095/2.095, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001355/0.001355, allocations: 192.4 kB / 487 MB, free: 5.391 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.459/1.459, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 83.09 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6666/0.6676, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.9463, allocations: 142.3 MB / 1.205 GB, free: 26.16 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.76/5.707, allocations: 2.213 GB / 3.419 GB, free: 87 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/5.707, allocations: 87.95 kB / 3.419 GB, free: 86.91 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 8.829/14.54, allocations: 2.35 GB / 5.769 GB, free: 171.8 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/14.54, allocations: 14.58 kB / 5.769 GB, free: 171.8 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/14.55, allocations: 1.36 MB / 5.771 GB, free: 171.5 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02061/14.57, allocations: 7.237 MB / 5.778 GB, free: 170.8 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/14.57, allocations: 133.8 kB / 5.778 GB, free: 170.8 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001988/14.57, allocations: 258.6 kB / 5.778 GB, free: 170.8 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01161/14.58, allocations: 4.794 MB / 5.783 GB, free: 170.8 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/14.59, allocations: 5.284 MB / 5.788 GB, free: 170.3 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/14.59, allocations: 9.594 kB / 5.788 GB, free: 170.3 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005017/14.6, allocations: 8.719 kB / 5.788 GB, free: 170.3 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001946/14.6, allocations: 208.8 kB / 5.788 GB, free: 170.3 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04419/14.64, allocations: 26.67 MB / 5.814 GB, free: 159.2 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/14.64, allocations: 2.143 MB / 5.816 GB, free: 159.2 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/14.65, allocations: 2.217 MB / 5.818 GB, free: 159.2 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/14.65, allocations: 1.086 MB / 5.819 GB, free: 158 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002911/14.65, allocations: 2.048 MB / 5.821 GB, free: 157.9 MB / 1.214 GB Notification: Performance of pre-optimization done (n=287): time 5.491e-06/14.65, allocations: 3.281 kB / 5.821 GB, free: 157.9 MB / 1.214 GB Notification: Performance of matching and sorting (n=291): time 0.03179/14.68, allocations: 10.11 MB / 5.831 GB, free: 155.2 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/14.68, allocations: 217.8 kB / 5.832 GB, free: 155 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008539/14.69, allocations: 3.994 MB / 5.835 GB, free: 154.7 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001097/14.69, allocations: 31.83 kB / 5.835 GB, free: 154.6 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.002042/14.69, allocations: 1.571 MB / 5.837 GB, free: 153.8 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002437/14.7, allocations: 0.98 MB / 5.838 GB, free: 153.2 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/14.7, allocations: 0 / 5.838 GB, free: 153.2 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002007/14.7, allocations: 427.5 kB / 5.838 GB, free: 152.9 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/14.7, allocations: 1.544 MB / 5.84 GB, free: 152.9 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002516/14.7, allocations: 2.281 MB / 5.842 GB, free: 152.1 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003147/14.71, allocations: 2.068 MB / 5.844 GB, free: 152.1 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/14.71, allocations: 6.75 kB / 5.844 GB, free: 152.1 MB / 1.214 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008155/14.71, allocations: 4.454 MB / 5.849 GB, free: 151.7 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001315/14.71, allocations: 5.834 MB / 5.854 GB, free: 145.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/14.71, allocations: 14.25 kB / 5.854 GB, free: 145.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006466/14.72, allocations: 220.3 kB / 5.854 GB, free: 145.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003021/14.72, allocations: 0.6611 MB / 5.855 GB, free: 145.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002974/14.72, allocations: 3.357 MB / 5.858 GB, free: 143.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006713/14.73, allocations: 475.8 kB / 5.859 GB, free: 143.2 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004078/14.73, allocations: 121.9 kB / 5.859 GB, free: 143.2 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/14.73, allocations: 6.25 kB / 5.859 GB, free: 143.2 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006509/14.74, allocations: 3.926 MB / 5.863 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/14.74, allocations: 11.28 kB / 5.863 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006258/14.74, allocations: 226.6 kB / 5.863 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/14.74, allocations: 0.6532 MB / 5.864 GB, free: 143.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/14.74, allocations: 3.926 MB / 5.867 GB, free: 140.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0069/14.75, allocations: 462.7 kB / 5.868 GB, free: 140.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006828/14.75, allocations: 123.9 kB / 5.868 GB, free: 140.5 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.001237/14.75, allocations: 207.3 kB / 5.868 GB, free: 140.3 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001926/14.75, allocations: 462 kB / 5.869 GB, free: 140.1 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008661/14.76, allocations: 4.203 MB / 5.873 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.589e-05/14.76, allocations: 30.56 kB / 5.873 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/14.76, allocations: 3.906 kB / 5.873 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005407/14.77, allocations: 3.499 MB / 5.876 GB, free: 139.6 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02038/14.79, allocations: 10.28 MB / 5.886 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/14.79, allocations: 10.28 kB / 5.886 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/14.79, allocations: 0.6259 MB / 5.887 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005191/14.79, allocations: 177.7 kB / 5.887 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/14.79, allocations: 49.42 kB / 5.887 GB, free: 138.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/14.79, allocations: 3.251 MB / 5.89 GB, free: 136.3 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/14.79, allocations: 6 kB / 5.89 GB, free: 136.3 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009998/14.8, allocations: 6.837 MB / 5.897 GB, free: 134.9 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01342/14.82, allocations: 9.9 MB / 5.907 GB, free: 133.1 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004824/14.82, allocations: 1.123 MB / 5.908 GB, free: 132.8 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002166/14.83, allocations: 29.67 kB / 5.908 GB, free: 132.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006485/14.83, allocations: 393.5 kB / 5.908 GB, free: 132.8 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004846/14.83, allocations: 158.7 kB / 5.908 GB, free: 132.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004325/14.83, allocations: 123.1 kB / 5.908 GB, free: 132.8 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.006581/14.84, allocations: 3.09 MB / 5.911 GB, free: 132.6 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01867/14.86, allocations: 3.513 MB / 5.915 GB, free: 132.5 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.005466/14.86, allocations: 3.322 MB / 5.918 GB, free: 131.4 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01074/14.87, allocations: 6.333 MB / 5.924 GB, free: 130.9 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 2.216e-05/14.87, allocations: 10.02 kB / 5.924 GB, free: 130.9 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003261/14.88, allocations: 2.021 MB / 5.926 GB, free: 130.8 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01639/14.89, allocations: 2.678 MB / 5.929 GB, free: 130.7 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/14.92, allocations: 10.69 MB / 5.939 GB, free: 128.8 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006772/14.93, allocations: 4.667 MB / 5.944 GB, free: 128 MB / 1.214 GB Notification: Performance of SimCode: time 1.262e-06/14.93, allocations: 0 / 5.944 GB, free: 128 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1)