Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.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.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.443/1.443, allocations: 249.5 MB / 257 MB, free: 6.918 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.001064/0.001064, allocations: 184.8 kB / 316.3 MB, free: 3.227 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.609/1.609, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0009004/0.0009004, allocations: 98.39 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.157e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2145, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.521/6.735, allocations: 2.528 GB / 3.414 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/6.736, allocations: 98.97 kB / 3.414 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 8.756/15.49, allocations: 2.447 GB / 5.861 GB, free: 78.46 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.703e-06/15.49, allocations: 0 / 5.861 GB, free: 78.46 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.00156/15.49, allocations: 271.7 kB / 5.861 GB, free: 78.22 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2036 * Number of variables: 2036 Notification: Performance of Generate backend data structure: time 0.03062/15.52, allocations: 8.888 MB / 5.87 GB, free: 69.32 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/15.52, allocations: 12.03 kB / 5.87 GB, free: 69.31 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/15.54, allocations: 2.036 MB / 5.872 GB, free: 67.26 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03177/15.57, allocations: 11.73 MB / 5.883 GB, free: 55.66 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005509/15.57, allocations: 252 kB / 5.883 GB, free: 55.41 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003697/15.57, allocations: 479.9 kB / 5.884 GB, free: 54.94 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02191/15.6, allocations: 9.093 MB / 5.893 GB, free: 45.84 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02899/15.63, allocations: 9.569 MB / 5.902 GB, free: 35.95 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003656/15.63, allocations: 23.78 kB / 5.902 GB, free: 35.93 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002463/15.63, allocations: 19.61 kB / 5.902 GB, free: 35.91 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002554/15.63, allocations: 339 kB / 5.903 GB, free: 35.58 MB / 0.9167 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.07412/15.7, allocations: 43.72 MB / 5.945 GB, free: 6.395 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01331/15.72, allocations: 7.156 MB / 5.952 GB, free: 15.28 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006511/15.72, allocations: 3.57 MB / 5.956 GB, free: 11.7 MB / 0.948 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 evalFunc (simulation): time 1.275/17, allocations: 17.98 MB / 5.973 GB, free: 119.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0072/17, allocations: 3.133 MB / 5.976 GB, free: 119 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005973/17.01, allocations: 0.6213 MB / 5.977 GB, free: 119 MB / 0.948 GB Notification: Performance of pre-optimization done (n=509): time 1.853e-05/17.01, allocations: 0 / 5.977 GB, free: 119 MB / 0.948 GB Notification: Performance of matching and sorting (n=509): time 0.07166/17.08, allocations: 10.52 MB / 5.987 GB, free: 118.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/17.08, allocations: 367.2 kB / 5.988 GB, free: 118.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01511/17.1, allocations: 6.33 MB / 5.994 GB, free: 118.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001834/17.1, allocations: 30.14 kB / 5.994 GB, free: 118.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006095/17.11, allocations: 4.309 MB / 5.998 GB, free: 117 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003096/17.11, allocations: 1.689 MB / 6 GB, free: 116.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006845/17.11, allocations: 0 / 6 GB, free: 116.1 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0004982/17.11, allocations: 0.562 MB / 6 GB, free: 115.8 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004502/17.11, allocations: 2.953 MB / 6.003 GB, free: 115.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004865/17.12, allocations: 4.646 MB / 6.008 GB, free: 113.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1569/17.28, allocations: 15.99 MB / 6.023 GB, free: 113.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.652e-05/17.28, allocations: 14.34 kB / 6.023 GB, free: 113.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.1729/17.45, allocations: 20.51 MB / 6.043 GB, free: 112.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.004883/17.45, allocations: 23.29 MB / 6.066 GB, free: 87.39 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/17.45, allocations: 50.53 kB / 6.066 GB, free: 87.39 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004713/17.45, allocations: 161.3 kB / 6.066 GB, free: 87.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008468/17.46, allocations: 1.68 MB / 6.068 GB, free: 87.37 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006242/17.46, allocations: 0.7312 MB / 6.069 GB, free: 86.85 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009504/17.47, allocations: 0.5633 MB / 6.069 GB, free: 86.78 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/17.48, allocations: 309.1 kB / 6.069 GB, free: 86.78 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/17.48, allocations: 3.781 kB / 6.069 GB, free: 86.78 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1607/17.64, allocations: 19.7 MB / 6.089 GB, free: 85.75 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001446/17.64, allocations: 48.95 kB / 6.089 GB, free: 85.75 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/17.64, allocations: 162.4 kB / 6.089 GB, free: 85.73 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007416/17.64, allocations: 1.678 MB / 6.09 GB, free: 85.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005696/17.64, allocations: 0.7266 MB / 6.091 GB, free: 85.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00904/17.65, allocations: 0.5374 MB / 6.092 GB, free: 85.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001689/17.66, allocations: 303.8 kB / 6.092 GB, free: 85.14 MB / 0.948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 815 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001951/17.66, allocations: 271.5 kB / 6.092 GB, free: 85.01 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06449/17.72, allocations: 10.48 MB / 6.102 GB, free: 84.21 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002875/17.72, allocations: 0.7225 MB / 6.103 GB, free: 83.83 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06665/17.79, allocations: 11.58 MB / 6.115 GB, free: 83.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-05/17.79, allocations: 55.28 kB / 6.115 GB, free: 83.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/17.79, allocations: 5.969 kB / 6.115 GB, free: 83.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06209/17.85, allocations: 10.07 MB / 6.124 GB, free: 82.37 MB / 0.948 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.08716/17.94, allocations: 19.92 MB / 6.144 GB, free: 81.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/17.94, allocations: 0 / 6.144 GB, free: 81.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005584/17.95, allocations: 1.155 MB / 6.145 GB, free: 81.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002532/17.95, allocations: 83.7 kB / 6.145 GB, free: 81.28 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004741/17.95, allocations: 95.47 kB / 6.145 GB, free: 81.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004153/17.95, allocations: 0.6204 MB / 6.146 GB, free: 80.76 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/17.95, allocations: 3.438 kB / 6.146 GB, free: 80.76 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06854/18.02, allocations: 14.9 MB / 6.16 GB, free: 79.43 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00601/18.02, allocations: 1.852 MB / 6.162 GB, free: 78.93 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002797/18.03, allocations: 26.47 kB / 6.162 GB, free: 78.93 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007891/18.03, allocations: 490.4 kB / 6.163 GB, free: 78.87 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008586/18.03, allocations: 311.4 kB / 6.163 GB, free: 78.86 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006155/18.03, allocations: 217.6 kB / 6.163 GB, free: 78.86 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.008997/18.04, allocations: 4.802 MB / 6.168 GB, free: 78.64 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.81e-07/18.04, allocations: 0 / 6.168 GB, free: 78.64 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.02283/18.07, allocations: 5.011 MB / 6.173 GB, free: 77.86 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.x[1],pum.filter.x[2],exp.m,exp.H) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (534): * Single equations (assignments): 523 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.07453/18.14, allocations: 17.73 MB / 6.19 GB, free: 75.43 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01782/18.16, allocations: 11.21 MB / 6.201 GB, free: 71.73 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/18.16, allocations: 9.062 kB / 6.201 GB, free: 71.73 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.004959/18.16, allocations: 3.041 MB / 6.204 GB, free: 70.09 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.019/18.18, allocations: 3.603 MB / 6.207 GB, free: 68.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04431/18.23, allocations: 19.08 MB / 6.226 GB, free: 54.69 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008496/18.24, allocations: 6.188 MB / 6.232 GB, free: 51.02 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.02033/18.26, allocations: 5.668 MB / 6.238 GB, free: 47.51 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006389/18.26, allocations: 4.009 MB / 6.242 GB, free: 45.94 MB / 0.948 GB Notification: Performance of SimCode: time 9.42e-07/18.26, allocations: 0 / 6.242 GB, free: 45.94 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9712/19.23, allocations: 225.3 MB / 6.462 GB, free: 137.9 MB / 0.9793 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/19.23, allocations: 195.8 kB / 6.462 GB, free: 137.7 MB / 0.9793 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/29.59, allocations: 0 / 6.462 GB, free: 137.7 MB / 0.9793 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1)