Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.251/1.251, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009631/0.0009631, allocations: 181.2 kB / 316 MB, free: 3.551 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000853/0.000853, allocations: 84.52 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3197/0.3206, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.477, allocations: 106.3 MB / 0.8847 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.113/4.59, allocations: 2.504 GB / 3.389 GB, free: 244.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/4.591, allocations: 87.95 kB / 3.389 GB, free: 244.8 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1084 * Number of variables: 1084 Notification: Performance of Generate backend data structure: time 6.435/11.03, allocations: 2.257 GB / 5.646 GB, free: 35.43 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/11.03, allocations: 15.92 kB / 5.646 GB, free: 35.41 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008646/11.03, allocations: 1.374 MB / 5.648 GB, free: 34.03 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01423/11.05, allocations: 7.202 MB / 5.655 GB, free: 26.76 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/11.05, allocations: 136 kB / 5.655 GB, free: 26.62 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008804/11.05, allocations: 259.9 kB / 5.655 GB, free: 26.37 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007517/11.06, allocations: 4.827 MB / 5.66 GB, free: 21.54 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00751/11.07, allocations: 5.318 MB / 5.665 GB, free: 16.06 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-05/11.07, allocations: 15.84 kB / 5.665 GB, free: 16.05 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004071/11.07, allocations: 8 kB / 5.665 GB, free: 16.04 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001321/11.07, allocations: 200.2 kB / 5.665 GB, free: 15.84 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3807/11.45, allocations: 26.09 MB / 5.691 GB, free: 160.1 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004718/11.45, allocations: 3.657 MB / 5.694 GB, free: 159.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/11.45, allocations: 2.192 MB / 5.696 GB, free: 159.9 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009464/11.45, allocations: 1.092 MB / 5.697 GB, free: 158.7 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002474/11.46, allocations: 2.035 MB / 5.699 GB, free: 158.6 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=286): time 4.639e-06/11.46, allocations: 0 / 5.699 GB, free: 158.6 MB / 0.9323 GB Notification: Performance of matching and sorting (n=290): time 0.02888/11.49, allocations: 10.05 MB / 5.709 GB, free: 156.3 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/11.49, allocations: 292.5 kB / 5.709 GB, free: 156 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009592/11.5, allocations: 4.001 MB / 5.713 GB, free: 155.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0008868/11.5, allocations: 32.33 kB / 5.713 GB, free: 155.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.002327/11.5, allocations: 1.598 MB / 5.715 GB, free: 155.1 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.002259/11.5, allocations: 0.9641 MB / 5.716 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/11.5, allocations: 0 / 5.716 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001923/11.5, allocations: 431.3 kB / 5.716 GB, free: 154.3 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/11.5, allocations: 1.535 MB / 5.718 GB, free: 154.3 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002327/11.51, allocations: 2.395 MB / 5.72 GB, free: 153.4 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/11.51, allocations: 2.071 MB / 5.722 GB, free: 153.4 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/11.51, allocations: 8.859 kB / 5.722 GB, free: 153.4 MB / 0.9323 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.007038/11.52, allocations: 4.428 MB / 5.726 GB, free: 153 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008578/11.52, allocations: 5.841 MB / 5.732 GB, free: 146.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.123e-05/11.52, allocations: 17.19 kB / 5.732 GB, free: 146.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/11.52, allocations: 213.7 kB / 5.732 GB, free: 146.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/11.52, allocations: 0.674 MB / 5.733 GB, free: 146.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/11.52, allocations: 3.322 MB / 5.736 GB, free: 144.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005701/11.53, allocations: 464.8 kB / 5.737 GB, free: 144.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003566/11.53, allocations: 125.9 kB / 5.737 GB, free: 144.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/11.53, allocations: 3.062 kB / 5.737 GB, free: 144.5 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00577/11.53, allocations: 3.908 MB / 5.741 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/11.53, allocations: 13.81 kB / 5.741 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005362/11.54, allocations: 205.6 kB / 5.741 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002651/11.54, allocations: 0.6659 MB / 5.742 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003436/11.54, allocations: 3.804 MB / 5.745 GB, free: 141.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/11.55, allocations: 449.4 kB / 5.746 GB, free: 141.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/11.55, allocations: 122.1 kB / 5.746 GB, free: 141.8 MB / 0.9323 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.0008733/11.55, allocations: 207.9 kB / 5.746 GB, free: 141.7 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/11.55, allocations: 462.1 kB / 5.746 GB, free: 141.4 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007359/11.56, allocations: 4.155 MB / 5.751 GB, free: 141.2 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/11.56, allocations: 33.5 kB / 5.751 GB, free: 141.2 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/11.56, allocations: 2.875 kB / 5.751 GB, free: 141.2 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004526/11.56, allocations: 3.46 MB / 5.754 GB, free: 141 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/11.58, allocations: 10.28 MB / 5.764 GB, free: 140 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/11.58, allocations: 7.125 kB / 5.764 GB, free: 140 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/11.58, allocations: 0.6301 MB / 5.765 GB, free: 140 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/11.58, allocations: 178 kB / 5.765 GB, free: 140 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002072/11.58, allocations: 55.89 kB / 5.765 GB, free: 140 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/11.58, allocations: 3.243 MB / 5.768 GB, free: 137.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/11.58, allocations: 7.094 kB / 5.768 GB, free: 137.6 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008575/11.59, allocations: 7.123 MB / 5.775 GB, free: 136.2 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0114/11.6, allocations: 10.19 MB / 5.785 GB, free: 134.4 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003549/11.61, allocations: 1.14 MB / 5.786 GB, free: 134.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001478/11.61, allocations: 27.61 kB / 5.786 GB, free: 134.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004744/11.61, allocations: 398.1 kB / 5.786 GB, free: 134.1 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/11.61, allocations: 162.3 kB / 5.787 GB, free: 134.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002659/11.61, allocations: 113.1 kB / 5.787 GB, free: 134.1 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.004574/11.62, allocations: 3.101 MB / 5.79 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.01425/11.63, allocations: 3.584 MB / 5.793 GB, free: 133.9 MB / 0.9323 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.004349/11.64, allocations: 3.372 MB / 5.796 GB, free: 132.8 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.008572/11.65, allocations: 6.356 MB / 5.803 GB, free: 132.3 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/11.65, allocations: 1.062 kB / 5.803 GB, free: 132.3 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.002475/11.65, allocations: 2.008 MB / 5.805 GB, free: 132.1 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01299/11.66, allocations: 2.708 MB / 5.807 GB, free: 132.1 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01951/11.68, allocations: 10.69 MB / 5.818 GB, free: 130.1 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005324/11.69, allocations: 4.71 MB / 5.822 GB, free: 129.3 MB / 0.9323 GB Notification: Performance of SimCode: time 1.322e-06/11.69, allocations: 0 / 5.822 GB, free: 129.3 MB / 0.9323 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1)