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.685/1.685, allocations: 292.6 MB / 307.5 MB, free: 5.184 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.001262/0.001262, allocations: 185 kB / 377.1 MB, free: 1.52 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.787/1.787, allocations: 205.4 MB / 0.6366 GB, free: 9.449 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.0009337/0.0009337, allocations: 91.98 kB / 0.7509 GB, free: 62.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003693, allocations: 19.98 kB / 0.8749 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2765, allocations: 116.3 MB / 0.9884 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.327/6.603, allocations: 2.388 GB / 3.376 GB, free: 153.5 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/6.604, allocations: 95.67 kB / 3.376 GB, free: 153.5 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 8.952/15.56, allocations: 2.317 GB / 5.693 GB, free: 84.15 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.553e-06/15.56, allocations: 0 / 5.693 GB, free: 84.15 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.001097/15.56, allocations: 149.9 kB / 5.693 GB, free: 84 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.02319/15.58, allocations: 6.896 MB / 5.7 GB, free: 77.06 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/15.58, allocations: 8.031 kB / 5.7 GB, free: 77.05 MB / 1.01 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002583/15.58, allocations: 0.5913 MB / 5.701 GB, free: 76.45 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008964/15.59, allocations: 1.329 MB / 5.702 GB, free: 75.11 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/15.61, allocations: 7.077 MB / 5.709 GB, free: 67.97 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000246/15.61, allocations: 324.2 kB / 5.709 GB, free: 67.66 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/15.61, allocations: 447.7 kB / 5.71 GB, free: 67.22 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009986/15.62, allocations: 5.875 MB / 5.715 GB, free: 61.18 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.403e-05/15.62, allocations: 4 kB / 5.715 GB, free: 61.18 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005003/15.62, allocations: 179.9 kB / 5.716 GB, free: 61 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001569/15.62, allocations: 200.1 kB / 5.716 GB, free: 60.8 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007945/15.63, allocations: 5.111 MB / 5.721 GB, free: 55.68 MB / 1.01 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03803/15.67, allocations: 25.47 MB / 5.746 GB, free: 28.69 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004974/15.67, allocations: 4.4 MB / 5.75 GB, free: 24.17 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008408/15.67, allocations: 0.9152 MB / 5.751 GB, free: 23.07 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002658/15.67, allocations: 1.913 MB / 5.753 GB, free: 21.11 MB / 1.01 GB Notification: Performance of pre-optimization done (n=284): time 5e-06/15.67, allocations: 0 / 5.753 GB, free: 21.11 MB / 1.01 GB Notification: Performance of matching and sorting (n=288): time 0.02041/15.7, allocations: 10.22 MB / 5.763 GB, free: 10.67 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.652e-05/15.7, allocations: 235.9 kB / 5.763 GB, free: 10.39 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007896/15.7, allocations: 4.223 MB / 5.767 GB, free: 6.168 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.0009475/15.7, allocations: 93.7 kB / 5.767 GB, free: 6.07 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.002572/15.71, allocations: 2.458 MB / 5.769 GB, free: 3.59 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.00146/15.71, allocations: 1.001 MB / 5.77 GB, free: 2.574 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/15.71, allocations: 63.06 kB / 5.771 GB, free: 2.516 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001765/15.71, allocations: 432.1 kB / 5.771 GB, free: 2.086 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/15.71, allocations: 1.548 MB / 5.772 GB, free: 0.5352 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/15.71, allocations: 2.415 MB / 5.775 GB, free: 13.8 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003152/15.72, allocations: 2.031 MB / 5.777 GB, free: 11.75 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/15.72, allocations: 4 kB / 5.777 GB, free: 11.75 MB / 1.026 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008801/15.73, allocations: 4.576 MB / 5.781 GB, free: 7.113 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.001905/15.73, allocations: 5.716 MB / 5.787 GB, free: 0.9961 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/15.73, allocations: 16 kB / 5.787 GB, free: 0.9805 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006541/15.73, allocations: 209.5 kB / 5.787 GB, free: 0.7695 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003436/15.73, allocations: 0.667 MB / 5.788 GB, free: 104 kB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6094/16.34, allocations: 3.438 MB / 5.791 GB, free: 116.7 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007419/16.35, allocations: 0.5467 MB / 5.792 GB, free: 116.7 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000708/16.35, allocations: 122.8 kB / 5.792 GB, free: 116.7 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/16.35, allocations: 6.625 kB / 5.792 GB, free: 116.7 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007339/16.36, allocations: 4.15 MB / 5.796 GB, free: 116.6 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.315e-05/16.36, allocations: 16.08 kB / 5.796 GB, free: 116.6 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/16.36, allocations: 203.7 kB / 5.796 GB, free: 116.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002706/16.36, allocations: 0.6583 MB / 5.797 GB, free: 116.5 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/16.36, allocations: 4.109 MB / 5.801 GB, free: 113.8 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006404/16.37, allocations: 0.5388 MB / 5.801 GB, free: 113.8 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00042/16.37, allocations: 120.2 kB / 5.801 GB, free: 113.8 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (354): * Single equations (assignments): 348 * 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.005159/16.38, allocations: 2.176 MB / 5.803 GB, free: 113.6 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001637/16.38, allocations: 472.9 kB / 5.804 GB, free: 113.6 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008152/16.39, allocations: 4.282 MB / 5.808 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/16.39, allocations: 29.14 kB / 5.808 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/16.39, allocations: 5.984 kB / 5.808 GB, free: 113.4 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005931/16.39, allocations: 3.581 MB / 5.812 GB, free: 113.1 MB / 1.026 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0227/16.41, allocations: 10.71 MB / 5.822 GB, free: 112.1 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/16.42, allocations: 3.719 kB / 5.822 GB, free: 112.1 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002891/16.42, allocations: 0.6642 MB / 5.823 GB, free: 112.1 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004347/16.42, allocations: 173.6 kB / 5.823 GB, free: 112.1 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/16.42, allocations: 86.7 kB / 5.823 GB, free: 112.1 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/16.42, allocations: 3.352 MB / 5.826 GB, free: 109.7 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/16.42, allocations: 6.469 kB / 5.826 GB, free: 109.7 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009071/16.43, allocations: 7.047 MB / 5.833 GB, free: 108.6 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00366/16.43, allocations: 1.108 MB / 5.834 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000938/16.43, allocations: 75.83 kB / 5.834 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004113/16.44, allocations: 475.8 kB / 5.835 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003291/16.44, allocations: 184.6 kB / 5.835 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002486/16.44, allocations: 107.1 kB / 5.835 GB, free: 108.4 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.005429/16.44, allocations: 3.331 MB / 5.838 GB, free: 108.2 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.51e-07/16.44, allocations: 2.969 kB / 5.838 GB, free: 108.2 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0137/16.46, allocations: 2.977 MB / 5.841 GB, free: 108.2 MB / 1.026 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) * Number of clocked states: 0 () * 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.01525/16.47, allocations: 11.39 MB / 5.852 GB, free: 104.6 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.01003/16.48, allocations: 6.464 MB / 5.859 GB, free: 104 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/16.48, allocations: 4.219 kB / 5.859 GB, free: 104 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.002751/16.49, allocations: 2.051 MB / 5.861 GB, free: 103.8 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01402/16.5, allocations: 2.94 MB / 5.863 GB, free: 103.8 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03556/16.54, allocations: 31.19 MB / 5.894 GB, free: 82.26 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004618/16.54, allocations: 4.218 MB / 5.898 GB, free: 81.43 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.00962/16.55, allocations: 2.416 MB / 5.9 GB, free: 81.38 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005083/16.56, allocations: 2.31 MB / 5.903 GB, free: 81.37 MB / 1.026 GB Notification: Performance of SimCode: time 1.212e-06/16.56, allocations: 0 / 5.903 GB, free: 81.37 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2797/16.84, allocations: 187.8 MB / 6.086 GB, free: 43.12 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/16.84, allocations: 270 kB / 6.086 GB, free: 42.76 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.21/25.05, allocations: 0 / 6.086 GB, free: 42.76 MB / 1.026 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)