Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.319/2.319, allocations: 248.5 MB / 261 MB, free: 5.953 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.001515/0.001515, allocations: 182.9 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.967/1.967, allocations: 205.2 MB / 0.571 GB, free: 11.84 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.001143/0.001143, allocations: 93.67 kB / 0.6754 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.755e-05, allocations: 4 kB / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2107, allocations: 106.2 MB / 0.8907 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.966/8.177, allocations: 2.502 GB / 3.393 GB, free: 154.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/8.177, allocations: 93.94 kB / 3.393 GB, free: 154.4 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Movers/BaseClasses/IdealSource.mo:14:3-22:27:writable] Error: The conditional expression control_m_flow could not be evaluated. Notification: Performance of FrontEnd - DAE generated: time 63.09/71.27, allocations: 11.23 GB / 14.62 GB, free: 63.79 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.943e-06/71.27, allocations: 2.328 kB / 14.62 GB, free: 63.79 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.007312/71.27, allocations: 434.6 kB / 14.62 GB, free: 63.73 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3533 * Number of variables: 3533 Notification: Performance of Generate backend data structure: time 0.09662/71.37, allocations: 17.91 MB / 14.64 GB, free: 58.32 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/71.37, allocations: 11.5 kB / 14.64 GB, free: 58.32 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01281/71.38, allocations: 2.048 MB / 14.64 GB, free: 58.2 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04114/71.43, allocations: 4.131 MB / 14.65 GB, free: 57.15 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1357/71.56, allocations: 35.29 MB / 14.68 GB, free: 54.77 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002114/71.56, allocations: 1.033 MB / 14.68 GB, free: 54.74 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01002/71.57, allocations: 1.399 MB / 14.68 GB, free: 54.72 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09687/71.67, allocations: 24.91 MB / 14.71 GB, free: 53.68 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001239/71.67, allocations: 35.72 kB / 14.71 GB, free: 53.67 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008362/71.68, allocations: 0.5618 MB / 14.71 GB, free: 53.67 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009096/71.68, allocations: 0.5988 MB / 14.71 GB, free: 53.64 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1016/71.78, allocations: 22.86 MB / 14.73 GB, free: 53.54 MB / 1.042 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.2797/72.06, allocations: 99.13 MB / 14.83 GB, free: 39.83 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03214/72.09, allocations: 12.82 MB / 14.84 GB, free: 39.42 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02398/72.12, allocations: 9.669 MB / 14.85 GB, free: 39.31 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00285/72.12, allocations: 1.012 MB / 14.85 GB, free: 38.36 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02442/72.15, allocations: 8.295 MB / 14.86 GB, free: 38.12 MB / 1.057 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01892/72.17, allocations: 1.981 MB / 14.86 GB, free: 37.76 MB / 1.057 GB Notification: Performance of pre-optimization done (n=781): time 4.429e-05/72.17, allocations: 1.938 kB / 14.86 GB, free: 37.76 MB / 1.057 GB Notification: Performance of matching and sorting (n=783): time 0.1433/72.31, allocations: 36.08 MB / 14.9 GB, free: 30.29 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002532/72.31, allocations: 320.2 kB / 14.9 GB, free: 29.99 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05235/72.36, allocations: 16.67 MB / 14.91 GB, free: 26.5 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 0.003634/72.36, allocations: 193.7 kB / 14.91 GB, free: 26.31 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.01883/72.38, allocations: 8.152 MB / 14.92 GB, free: 18.91 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 0.006623/72.39, allocations: 2.824 MB / 14.92 GB, free: 16.35 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002907/72.39, allocations: 168 kB / 14.92 GB, free: 16.18 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.001552/72.4, allocations: 0.7052 MB / 14.92 GB, free: 15.57 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01837/72.41, allocations: 6.806 MB / 14.93 GB, free: 9.746 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02542/72.44, allocations: 9.6 MB / 14.94 GB, free: 476 kB / 1.057 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0 (sin_2.p = 101325.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.2333/72.67, allocations: 32.73 MB / 14.97 GB, free: 15.84 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/72.67, allocations: 15.56 kB / 14.97 GB, free: 15.83 MB / 1.089 GB Notification: Performance of matching and sorting (n=1079) (initialization): time 0.06038/72.73, allocations: 17.39 MB / 14.99 GB, free: 1.117 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 2.113/74.85, allocations: 30.39 MB / 15.02 GB, free: 71.39 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002698/74.85, allocations: 48.41 kB / 15.02 GB, free: 71.39 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/74.85, allocations: 94.19 kB / 15.02 GB, free: 71.39 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02328/74.87, allocations: 2.326 MB / 15.02 GB, free: 71.39 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/74.87, allocations: 1.296 MB / 15.02 GB, free: 70.23 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0318/74.9, allocations: 1.901 MB / 15.02 GB, free: 70.22 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004069/74.91, allocations: 351.9 kB / 15.02 GB, free: 70.22 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/74.91, allocations: 3.906 kB / 15.02 GB, free: 70.22 MB / 1.089 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05871/74.97, allocations: 16.22 MB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003042/74.97, allocations: 51.62 kB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002388/74.97, allocations: 92.55 kB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02161/74.99, allocations: 2.315 MB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004149/74.99, allocations: 123.5 kB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02932/75.02, allocations: 1.852 MB / 15.04 GB, free: 70.01 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003699/75.02, allocations: 345.7 kB / 15.04 GB, free: 70.01 MB / 1.089 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 214 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1074): * Single equations (assignments): 1071 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007556/75.03, allocations: 0.6584 MB / 15.05 GB, free: 69.87 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008081/75.04, allocations: 1.332 MB / 15.05 GB, free: 69.87 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05598/75.09, allocations: 16.21 MB / 15.06 GB, free: 69.47 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.744e-05/75.09, allocations: 76.66 kB / 15.06 GB, free: 69.47 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/75.09, allocations: 3.953 kB / 15.06 GB, free: 69.46 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04161/75.14, allocations: 13.21 MB / 15.08 GB, free: 68.91 MB / 1.089 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.1459/75.28, allocations: 41 MB / 15.12 GB, free: 66.41 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001113/75.28, allocations: 17.25 kB / 15.12 GB, free: 66.41 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02167/75.3, allocations: 2.327 MB / 15.12 GB, free: 66.41 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/75.3, allocations: 45.02 kB / 15.12 GB, free: 66.41 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002942/75.31, allocations: 259.7 kB / 15.12 GB, free: 66.41 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007829/75.31, allocations: 1.22 MB / 15.12 GB, free: 65.25 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-05/75.31, allocations: 22.3 kB / 15.12 GB, free: 65.24 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07098/75.38, allocations: 29.56 MB / 15.15 GB, free: 59.5 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02107/75.4, allocations: 4.122 MB / 15.15 GB, free: 59.41 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008628/75.41, allocations: 236.9 kB / 15.15 GB, free: 59.41 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02696/75.43, allocations: 1.628 MB / 15.15 GB, free: 59.41 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003429/75.44, allocations: 497.6 kB / 15.15 GB, free: 59.39 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003127/75.44, allocations: 291.9 kB / 15.15 GB, free: 59.39 MB / 1.089 GB Notification: Performance of sorting global known variables: time 0.0413/75.48, allocations: 13.46 MB / 15.17 GB, free: 58.97 MB / 1.089 GB Notification: Performance of sort global known variables: time 1.283e-06/75.48, allocations: 0 / 15.17 GB, free: 58.97 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.05424/75.54, allocations: 7.915 MB / 15.18 GB, free: 58.97 MB / 1.089 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 50 (temSen.T,hex.hexReg[1].ele[1,1].vol1.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,1].mas.T,hex.hexReg[1].ele[1,2].vol1.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,2].mas.T,hex.hexReg[1].ele[1,3].vol1.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,3].mas.T,hex.hexReg[2].ele[1,1].vol1.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,1].mas.T,hex.hexReg[2].ele[1,2].vol1.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,2].mas.T,hex.hexReg[2].ele[1,3].vol1.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,3].mas.T,hex.hexReg[3].ele[1,1].vol1.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,1].mas.T,hex.hexReg[3].ele[1,2].vol1.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,2].mas.T,hex.hexReg[3].ele[1,3].vol1.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,3].mas.T,hex.hexReg[4].ele[1,1].vol1.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,1].mas.T,hex.hexReg[4].ele[1,2].vol1.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,2].mas.T,hex.hexReg[4].ele[1,3].vol1.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,3].mas.T,mot.int.y) * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1,mot.uppHys.y,mot.lowHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (789): * Single equations (assignments): 782 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.08552/75.62, allocations: 34.85 MB / 15.21 GB, free: 50.3 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.06524/75.69, allocations: 23.86 MB / 15.23 GB, free: 49.92 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 4.046e-05/75.69, allocations: 15.19 kB / 15.23 GB, free: 49.91 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 0.02271/75.71, allocations: 7.329 MB / 15.24 GB, free: 49.82 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0863/75.8, allocations: 10.46 MB / 15.25 GB, free: 49.71 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1869/75.98, allocations: 52.23 MB / 15.3 GB, free: 29.82 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04082/76.03, allocations: 14.63 MB / 15.32 GB, free: 21.54 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.1176/76.14, allocations: 27.02 MB / 15.34 GB, free: 5.438 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0289/76.17, allocations: 7.228 MB / 15.35 GB, free: 4.723 MB / 1.089 GB Notification: Performance of SimCode: time 1.743e-06/76.17, allocations: 0 / 15.35 GB, free: 4.723 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.469/79.64, allocations: 0.5955 GB / 15.94 GB, free: 178.3 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003752/79.64, allocations: 240.2 kB / 15.94 GB, free: 178 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.91/111.6, allocations: 4 kB / 15.94 GB, free: 178 MB / 1.182 GB