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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.961/1.961, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.001135/0.001134, allocations: 180.8 kB / 366.7 MB, free: 1.641 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.723/1.723, allocations: 205.2 MB / 0.626 GB, free: 7.16 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.0008796/0.0008796, allocations: 89.92 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.612e-05/2.613e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8847/0.8847, allocations: 116.3 MB / 0.9733 GB, free: 76.05 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.829/7.714, allocations: 2.387 GB / 3.36 GB, free: 51.18 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/7.714, allocations: 90.11 kB / 3.361 GB, free: 51.14 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 10.24/17.96, allocations: 2.294 GB / 5.654 GB, free: 108.4 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.244e-06/17.96, allocations: 0.8125 kB / 5.654 GB, free: 108.4 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.001565/17.96, allocations: 148.1 kB / 5.655 GB, free: 108.4 MB / 1.01 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 0.02933/17.99, allocations: 5.658 MB / 5.66 GB, free: 107.7 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/17.99, allocations: 10.66 kB / 5.66 GB, free: 107.7 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01242/18, allocations: 1.325 MB / 5.661 GB, free: 107.3 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02852/18.03, allocations: 7.035 MB / 5.668 GB, free: 106.7 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004568/18.03, allocations: 132.2 kB / 5.668 GB, free: 106.7 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00275/18.03, allocations: 263.2 kB / 5.669 GB, free: 106.7 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01485/18.05, allocations: 4.606 MB / 5.673 GB, free: 106.7 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01797/18.06, allocations: 5.141 MB / 5.678 GB, free: 106.3 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001571/18.06, allocations: 15.81 kB / 5.678 GB, free: 106.3 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000631/18.07, allocations: 4.438 kB / 5.678 GB, free: 106.3 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002246/18.07, allocations: 197.5 kB / 5.678 GB, free: 106.2 MB / 1.01 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05226/18.12, allocations: 24.72 MB / 5.703 GB, free: 96.3 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006937/18.12, allocations: 5.209 MB / 5.708 GB, free: 94.48 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003783/18.13, allocations: 2.068 MB / 5.71 GB, free: 94.44 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/18.13, allocations: 0.9158 MB / 5.711 GB, free: 93.5 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003911/18.13, allocations: 1.88 MB / 5.712 GB, free: 93.34 MB / 1.01 GB Notification: Performance of pre-optimization done (n=284): time 7.063e-06/18.13, allocations: 0 / 5.712 GB, free: 93.34 MB / 1.01 GB Notification: Performance of matching and sorting (n=288): time 0.03804/18.17, allocations: 9.559 MB / 5.722 GB, free: 90.62 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/18.17, allocations: 294.7 kB / 5.722 GB, free: 90.3 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/18.18, allocations: 3.877 MB / 5.726 GB, free: 90.01 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.001374/18.19, allocations: 31.58 kB / 5.726 GB, free: 89.98 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.003871/18.19, allocations: 2.462 MB / 5.728 GB, free: 89.18 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.002111/18.19, allocations: 0.9663 MB / 5.729 GB, free: 88.54 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/18.19, allocations: 0 / 5.729 GB, free: 88.54 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0002698/18.19, allocations: 426.5 kB / 5.73 GB, free: 88.23 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/18.19, allocations: 1.426 MB / 5.731 GB, free: 88.22 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003633/18.2, allocations: 2.281 MB / 5.733 GB, free: 87.36 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0043/18.2, allocations: 1.935 MB / 5.735 GB, free: 87.31 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-05/18.2, allocations: 3.875 kB / 5.735 GB, free: 87.31 MB / 1.01 GB Notification: Performance of matching and sorting (n=378) (initialization): time 0.01325/18.22, allocations: 4.24 MB / 5.739 GB, free: 86.94 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.002689/18.22, allocations: 5.885 MB / 5.745 GB, free: 80.79 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.311e-05/18.22, allocations: 16.94 kB / 5.745 GB, free: 80.79 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008943/18.22, allocations: 194.1 kB / 5.745 GB, free: 80.77 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/18.22, allocations: 0.6776 MB / 5.746 GB, free: 80.77 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/18.23, allocations: 3.375 MB / 5.749 GB, free: 78.39 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/18.24, allocations: 493.9 kB / 5.75 GB, free: 78.35 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/18.24, allocations: 124.4 kB / 5.75 GB, free: 78.35 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/18.24, allocations: 5.062 kB / 5.75 GB, free: 78.35 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00883/18.25, allocations: 3.722 MB / 5.753 GB, free: 78.24 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.731e-05/18.25, allocations: 16.62 kB / 5.753 GB, free: 78.24 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006608/18.25, allocations: 196.8 kB / 5.754 GB, free: 78.22 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00291/18.25, allocations: 0.6623 MB / 5.754 GB, free: 78.22 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004542/18.26, allocations: 3.918 MB / 5.758 GB, free: 75.6 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008315/18.27, allocations: 477.2 kB / 5.758 GB, free: 75.57 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/18.27, allocations: 124.8 kB / 5.759 GB, free: 75.57 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 (355): * Single equations (assignments): 349 * 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 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001588/18.27, allocations: 215 kB / 5.759 GB, free: 75.42 MB / 1.01 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009872/18.28, allocations: 3.56 MB / 5.762 GB, free: 75.04 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003606/18.28, allocations: 457.3 kB / 5.763 GB, free: 74.81 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/18.29, allocations: 3.902 MB / 5.767 GB, free: 74.59 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-05/18.29, allocations: 28.41 kB / 5.767 GB, free: 74.59 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/18.29, allocations: 4.656 kB / 5.767 GB, free: 74.59 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005932/18.3, allocations: 3.274 MB / 5.77 GB, free: 74.32 MB / 1.01 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02482/18.33, allocations: 10.01 MB / 5.78 GB, free: 73.19 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/18.33, allocations: 3.5 kB / 5.78 GB, free: 73.19 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002906/18.33, allocations: 0.6582 MB / 5.78 GB, free: 73.19 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004479/18.33, allocations: 162.3 kB / 5.78 GB, free: 73.17 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/18.33, allocations: 47.56 kB / 5.78 GB, free: 73.17 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/18.33, allocations: 3.253 MB / 5.784 GB, free: 70.79 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/18.33, allocations: 8.906 kB / 5.784 GB, free: 70.79 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/18.34, allocations: 6.59 MB / 5.79 GB, free: 69.48 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004595/18.35, allocations: 1.095 MB / 5.791 GB, free: 69.15 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002166/18.35, allocations: 24.03 kB / 5.791 GB, free: 69.15 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006335/18.35, allocations: 425.7 kB / 5.791 GB, free: 69.13 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/18.36, allocations: 177.2 kB / 5.792 GB, free: 69.12 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004032/18.36, allocations: 121.3 kB / 5.792 GB, free: 69.12 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.00648/18.36, allocations: 2.992 MB / 5.795 GB, free: 68.94 MB / 1.01 GB Notification: Performance of sort global known variables: time 6.21e-07/18.36, allocations: 2 kB / 5.795 GB, free: 68.94 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.01917/18.38, allocations: 2.774 MB / 5.797 GB, free: 68.92 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01677/18.4, allocations: 11.17 MB / 5.808 GB, free: 65.31 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.01076/18.41, allocations: 6.132 MB / 5.814 GB, free: 64.72 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.09e-05/18.41, allocations: 3.719 kB / 5.814 GB, free: 64.72 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.002876/18.41, allocations: 1.901 MB / 5.816 GB, free: 64.54 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01695/18.43, allocations: 2.812 MB / 5.819 GB, free: 64.49 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03186/18.46, allocations: 12.02 MB / 5.831 GB, free: 62.27 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005017/18.47, allocations: 4.232 MB / 5.835 GB, free: 61.43 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.01481/18.48, allocations: 4.001 MB / 5.839 GB, free: 61.38 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00462/18.49, allocations: 2.23 MB / 5.841 GB, free: 61.37 MB / 1.01 GB Notification: Performance of SimCode: time 1.533e-06/18.49, allocations: 0 / 5.841 GB, free: 61.37 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2935/18.78, allocations: 166.5 MB / 6.003 GB, free: 1.305 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/18.78, allocations: 186.5 kB / 6.004 GB, free: 1.109 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.471/27.25, allocations: 0 / 6.004 GB, free: 1.109 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)