Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 189 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.041/2.041, allocations: 390.2 MB / 0.6644 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 67.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4622/0.4633, allocations: 140.4 MB / 0.9492 GB, free: 9.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1514/0.6147, allocations: 173.7 MB / 1.119 GB, free: 3.734 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01329/0.628, allocations: 12.56 MB / 1.131 GB, free: 7.133 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009077/0.629, allocations: 31.81 kB / 1.131 GB, free: 7.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.63, allocations: 377.7 kB / 1.132 GB, free: 6.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.6322, allocations: 0.8888 MB / 1.132 GB, free: 5.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.6355, allocations: 1.685 MB / 1.134 GB, free: 4.164 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002181/0.6377, allocations: 2.412 MB / 1.136 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.6395, allocations: 1.617 MB / 1.138 GB, free: 84 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003571/0.643, allocations: 1.397 MB / 1.139 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008939/0.6439, allocations: 0.8909 MB / 1.14 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.6442, allocations: 172 kB / 1.14 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.646, allocations: 1.439 MB / 1.142 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000367/0.6464, allocations: 494.5 kB / 1.142 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007352/0.6472, allocations: 0.8512 MB / 1.143 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002612/0.6498, allocations: 2.758 MB / 1.146 GB, free: 8.098 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.6498, allocations: 0 / 1.146 GB, free: 8.098 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6498, allocations: 0 / 1.146 GB, free: 8.098 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.373e-05/0.6498, allocations: 0 / 1.146 GB, free: 8.098 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003224/0.6531, allocations: 2.017 MB / 1.148 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.6531, allocations: 16.02 kB / 1.148 GB, free: 6.004 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002244/0.6533, allocations: 202.7 kB / 1.148 GB, free: 5.797 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/0.6558, allocations: 405.5 kB / 1.148 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.657, allocations: 0.9917 MB / 1.149 GB, free: 4.363 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.905e-05/0.6571, allocations: 98.72 kB / 1.149 GB, free: 4.266 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.6573, allocations: 132 kB / 1.15 GB, free: 4.137 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.6595, allocations: 1.526 MB / 1.151 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.6596, allocations: 0 / 1.151 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.6597, allocations: 56 kB / 1.151 GB, free: 2.48 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.6597, allocations: 36 kB / 1.151 GB, free: 2.445 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002391/0.6621, allocations: 1.583 MB / 1.153 GB, free: 0.8555 MB / 0.9044 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.005872/0.668, allocations: 5.071 MB / 1.158 GB, free: 11.52 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.6703, allocations: 1.517 MB / 1.159 GB, free: 9.926 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007281/0.671, allocations: 483.6 kB / 1.16 GB, free: 9.449 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006281/0.6716, allocations: 425.3 kB / 1.16 GB, free: 8.961 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.6727, allocations: 0.6995 MB / 1.161 GB, free: 8.242 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 2.274e-06/0.6727, allocations: 0 / 1.161 GB, free: 8.242 MB / 0.92 GB Notification: Performance of matching and sorting (n=107): time 0.003754/0.6765, allocations: 1.676 MB / 1.162 GB, free: 6.539 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/0.6766, allocations: 192.9 kB / 1.162 GB, free: 6.305 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009376/0.6775, allocations: 0.8883 MB / 1.163 GB, free: 5.395 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.378e-05/0.6776, allocations: 49.7 kB / 1.163 GB, free: 5.34 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.678, allocations: 0.6013 MB / 1.164 GB, free: 4.73 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.6782, allocations: 347 kB / 1.164 GB, free: 4.387 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.6785, allocations: 198.5 kB / 1.164 GB, free: 4.188 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.6786, allocations: 345.9 kB / 1.165 GB, free: 3.844 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006716/0.6793, allocations: 365.8 kB / 1.165 GB, free: 3.488 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008137/0.6801, allocations: 0.5711 MB / 1.166 GB, free: 2.852 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.6816, allocations: 0.9331 MB / 1.167 GB, free: 1.879 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.6816, allocations: 0 / 1.167 GB, free: 1.879 MB / 0.92 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002295/0.6839, allocations: 1.188 MB / 1.168 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.6839, allocations: 7.984 kB / 1.168 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.6839, allocations: 4 kB / 1.168 GB, free: 0.668 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005436/0.6845, allocations: 85.19 kB / 1.168 GB, free: 0.582 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009698/0.6855, allocations: 243.7 kB / 1.168 GB, free: 352 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.6872, allocations: 1.666 MB / 1.17 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008824/0.6881, allocations: 142.9 kB / 1.17 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.512e-05/0.6882, allocations: 43.97 kB / 1.17 GB, free: 14.35 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004258/0.6887, allocations: 341.5 kB / 1.17 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.6889, allocations: 118.6 kB / 1.17 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/0.6917, allocations: 1.449 MB / 1.172 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.6917, allocations: 16 kB / 1.172 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6917, allocations: 3.984 kB / 1.172 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.6917, allocations: 7.984 kB / 1.172 GB, free: 12.4 MB / 0.9356 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.003978/0.6957, allocations: 2.87 MB / 1.175 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.6957, allocations: 0 / 1.175 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008975/0.6966, allocations: 223.7 kB / 1.175 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003989/0.6971, allocations: 76.72 kB / 1.175 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.6971, allocations: 39.97 kB / 1.175 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.6988, allocations: 1.67 MB / 1.177 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6988, allocations: 0 / 1.177 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.7011, allocations: 1.316 MB / 1.178 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/0.7015, allocations: 351.2 kB / 1.178 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.7017, allocations: 36 kB / 1.178 GB, free: 5.555 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009073/0.7026, allocations: 109.2 kB / 1.178 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.7027, allocations: 84.83 kB / 1.178 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-05/0.7028, allocations: 51.95 kB / 1.178 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0006712/0.7035, allocations: 0.6189 MB / 1.179 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7035, allocations: 0 / 1.179 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009294/0.7045, allocations: 474.9 kB / 1.179 GB, free: 4.223 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003824/0.7083, allocations: 2.484 MB / 1.182 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002876/0.7112, allocations: 1.433 MB / 1.183 GB, free: 468 kB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.7112, allocations: 0 / 1.183 GB, free: 468 kB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.7123, allocations: 0.6797 MB / 1.184 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.714, allocations: 0.5164 MB / 1.184 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/0.7287, allocations: 10.11 MB / 1.194 GB, free: 4.785 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.7294, allocations: 1.205 MB / 1.196 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001213/0.7306, allocations: 389.8 kB / 1.196 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.7313, allocations: 0.5695 MB / 1.196 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of SimCode: time 2.8e-07/0.7313, allocations: 0 / 1.196 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.234/7.965, allocations: 32.88 MB / 1.229 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004432/7.966, allocations: 292.9 kB / 1.229 GB, free: 1.773 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.108/11.07, allocations: 2.812 kB / 1.229 GB, free: 1.773 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)