Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.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.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.373/2.373, allocations: 284.8 MB / 292.1 MB, free: 10.79 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.001683/0.001683, allocations: 177.2 kB / 360.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.1 MB / 0.6187 GB, free: 13.22 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.001723/0.001723, allocations: 89.61 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3283/0.3301, allocations: 121.4 MB / 0.8502 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.647/0.9771, allocations: 115.2 MB / 0.9628 GB, free: 78.63 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.383/6.36, allocations: 2.386 GB / 3.349 GB, free: 92.37 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/6.361, allocations: 93.75 kB / 3.349 GB, free: 92.32 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 10.52/16.88, allocations: 2.32 GB / 5.669 GB, free: 13.52 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/16.88, allocations: 8 kB / 5.669 GB, free: 13.52 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01481/16.89, allocations: 1.37 MB / 5.67 GB, free: 12.14 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03065/16.92, allocations: 7.175 MB / 5.677 GB, free: 4.875 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/16.92, allocations: 132 kB / 5.678 GB, free: 4.746 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/16.93, allocations: 267.9 kB / 5.678 GB, free: 4.484 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5086/17.43, allocations: 4.798 MB / 5.683 GB, free: 197 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02091/17.46, allocations: 5.297 MB / 5.688 GB, free: 196.6 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002089/17.46, allocations: 9.406 kB / 5.688 GB, free: 196.6 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001245/17.46, allocations: 8.562 kB / 5.688 GB, free: 196.6 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002433/17.46, allocations: 206.6 kB / 5.688 GB, free: 196.5 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06404/17.52, allocations: 26.06 MB / 5.713 GB, free: 186.3 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/17.53, allocations: 3.829 MB / 5.717 GB, free: 185.9 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005823/17.54, allocations: 2.214 MB / 5.719 GB, free: 185.9 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001644/17.54, allocations: 1.079 MB / 5.72 GB, free: 184.8 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005801/17.55, allocations: 2.039 MB / 5.722 GB, free: 184.6 MB / 1.01 GB Notification: Performance of pre-optimization done (n=286): time 7.394e-06/17.55, allocations: 3.75 kB / 5.722 GB, free: 184.6 MB / 1.01 GB Notification: Performance of matching and sorting (n=290): time 0.04382/17.59, allocations: 10.07 MB / 5.732 GB, free: 182 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/17.59, allocations: 286.1 kB / 5.732 GB, free: 181.7 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01138/17.6, allocations: 3.978 MB / 5.736 GB, free: 181.5 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.001043/17.6, allocations: 34.67 kB / 5.736 GB, free: 181.4 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.003214/17.61, allocations: 1.584 MB / 5.738 GB, free: 180.9 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.003236/17.61, allocations: 0.9743 MB / 5.739 GB, free: 180.3 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003576/17.61, allocations: 0 / 5.739 GB, free: 180.3 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0003209/17.61, allocations: 426.5 kB / 5.739 GB, free: 180 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/17.61, allocations: 1.546 MB / 5.741 GB, free: 180 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005667/17.62, allocations: 2.409 MB / 5.743 GB, free: 179.2 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006491/17.63, allocations: 2.082 MB / 5.745 GB, free: 179.1 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-05/17.63, allocations: 3.5 kB / 5.745 GB, free: 179.1 MB / 1.01 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01598/17.64, allocations: 4.456 MB / 5.75 GB, free: 178.8 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.001365/17.64, allocations: 5.849 MB / 5.755 GB, free: 172.6 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/17.64, allocations: 13.16 kB / 5.755 GB, free: 172.6 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/17.64, allocations: 210.5 kB / 5.755 GB, free: 172.6 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006719/17.65, allocations: 0.6768 MB / 5.756 GB, free: 172.6 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004645/17.66, allocations: 3.328 MB / 5.759 GB, free: 170.2 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01066/17.67, allocations: 452.5 kB / 5.76 GB, free: 170.2 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/17.67, allocations: 120 kB / 5.76 GB, free: 170.2 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/17.67, allocations: 3.781 kB / 5.76 GB, free: 170.2 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0132/17.68, allocations: 3.926 MB / 5.764 GB, free: 170.1 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.279e-05/17.68, allocations: 17.69 kB / 5.764 GB, free: 170.1 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/17.68, allocations: 213.7 kB / 5.764 GB, free: 170.1 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/17.69, allocations: 0.6631 MB / 5.765 GB, free: 170.1 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006186/17.69, allocations: 3.805 MB / 5.768 GB, free: 167.6 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/17.71, allocations: 440.3 kB / 5.769 GB, free: 167.5 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/17.71, allocations: 128.9 kB / 5.769 GB, free: 167.5 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.001317/17.71, allocations: 209.5 kB / 5.769 GB, free: 167.4 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/17.71, allocations: 462.6 kB / 5.77 GB, free: 167.2 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/17.72, allocations: 4.179 MB / 5.774 GB, free: 167 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.47e-05/17.72, allocations: 28.19 kB / 5.774 GB, free: 167 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/17.72, allocations: 0 / 5.774 GB, free: 167 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01125/17.74, allocations: 3.489 MB / 5.777 GB, free: 166.7 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03384/17.77, allocations: 10.47 MB / 5.787 GB, free: 165.6 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/17.77, allocations: 5.531 kB / 5.787 GB, free: 165.6 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006671/17.78, allocations: 0.6356 MB / 5.788 GB, free: 165.6 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008546/17.78, allocations: 179.6 kB / 5.788 GB, free: 165.6 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008006/17.78, allocations: 47.81 kB / 5.788 GB, free: 165.6 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003981/17.78, allocations: 3.249 MB / 5.791 GB, free: 163.2 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/17.78, allocations: 6.219 kB / 5.791 GB, free: 163.2 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01838/17.8, allocations: 7.146 MB / 5.798 GB, free: 161.8 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02489/17.83, allocations: 10.22 MB / 5.808 GB, free: 160 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005546/17.83, allocations: 1.115 MB / 5.809 GB, free: 159.7 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002408/17.83, allocations: 37.06 kB / 5.809 GB, free: 159.7 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009086/17.84, allocations: 391.2 kB / 5.81 GB, free: 159.7 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009631/17.84, allocations: 164 kB / 5.81 GB, free: 159.7 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005246/17.84, allocations: 115 kB / 5.81 GB, free: 159.7 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.00952/17.85, allocations: 3.076 MB / 5.813 GB, free: 159.5 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.02447/17.88, allocations: 3.571 MB / 5.816 GB, free: 159.5 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.007443/17.89, allocations: 3.372 MB / 5.82 GB, free: 158.4 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.01784/17.9, allocations: 6.385 MB / 5.826 GB, free: 157.9 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.702e-05/17.9, allocations: 7.75 kB / 5.826 GB, free: 157.9 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.005573/17.91, allocations: 2.008 MB / 5.828 GB, free: 157.7 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02572/17.93, allocations: 2.708 MB / 5.831 GB, free: 157.7 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/17.97, allocations: 10.65 MB / 5.841 GB, free: 155.7 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01291/17.98, allocations: 4.677 MB / 5.846 GB, free: 154.9 MB / 1.01 GB Notification: Performance of SimCode: time 2.185e-06/17.98, allocations: 0 / 5.846 GB, free: 154.9 MB / 1.01 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.pipe 2>&1)