Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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: translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.83/1.83, allocations: 292.3 MB / 308.1 MB, free: 4.293 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.001299/0.001299, allocations: 190 kB / 376.9 MB, free: 1.816 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.344/1.344, allocations: 205 MB / 0.6354 GB, free: 9.789 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.000937/0.000937, allocations: 100.5 kB / 0.748 GB, free: 61.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 59.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.229, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5832/0.8122, allocations: 173.5 MB / 1.152 GB, free: 7.961 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.01493/0.8272, allocations: 12.42 MB / 1.164 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.8287, allocations: 31.16 kB / 1.164 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.8299, allocations: 358.7 kB / 1.164 GB, free: 14.94 MB / 0.7761 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.002577/0.8325, allocations: 0.7912 MB / 1.165 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.004334/0.8369, allocations: 1.61 MB / 1.166 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0029/0.8398, allocations: 2.635 MB / 1.169 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002211/0.842, allocations: 1.433 MB / 1.17 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005027/0.8471, allocations: 1.223 MB / 1.172 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.8484, allocations: 0.7863 MB / 1.172 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 0.000364/0.8488, allocations: 85.06 kB / 1.172 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003011/0.8518, allocations: 1.384 MB / 1.174 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0006626/0.8525, allocations: 392.2 kB / 1.174 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.8537, allocations: 0.7236 MB / 1.175 GB, free: 9.898 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.003572/0.8573, allocations: 2.497 MB / 1.177 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.8574, allocations: 0 / 1.177 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.91e-07/0.8574, allocations: 0 / 1.177 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.878e-05/0.8574, allocations: 0 / 1.177 GB, free: 8.945 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003295/0.8607, allocations: 1.872 MB / 1.179 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.8608, allocations: 13.62 kB / 1.179 GB, free: 7.727 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002394/0.8632, allocations: 392.6 kB / 1.18 GB, free: 7.633 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.8647, allocations: 0.9567 MB / 1.181 GB, free: 7.039 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.277e-05/0.8647, allocations: 95.33 kB / 1.181 GB, free: 6.996 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.8649, allocations: 124.7 kB / 1.181 GB, free: 6.957 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.8671, allocations: 1.438 MB / 1.182 GB, free: 6.297 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.8672, allocations: 7 kB / 1.182 GB, free: 6.293 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.8673, allocations: 60.11 kB / 1.182 GB, free: 6.25 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.8673, allocations: 31 kB / 1.182 GB, free: 6.25 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.8697, allocations: 1.518 MB / 1.184 GB, free: 5.859 MB / 0.7761 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.006687/0.8764, allocations: 4.88 MB / 1.188 GB, free: 2.617 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002247/0.8787, allocations: 1.415 MB / 1.19 GB, free: 1.816 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007466/0.8794, allocations: 464 kB / 1.19 GB, free: 1.637 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007108/0.8802, allocations: 421.4 kB / 1.191 GB, free: 1.25 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.8812, allocations: 0.6153 MB / 1.191 GB, free: 1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=98): time 2.504e-06/0.8812, allocations: 0 / 1.191 GB, free: 1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=98): time 0.004098/0.8853, allocations: 1.537 MB / 1.193 GB, free: 376 kB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.8855, allocations: 195.4 kB / 1.193 GB, free: 152 kB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.8868, allocations: 0.8256 MB / 1.194 GB, free: 15.79 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 8.56e-05/0.8869, allocations: 47.7 kB / 1.194 GB, free: 15.75 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.8874, allocations: 0.5616 MB / 1.194 GB, free: 15.3 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002852/0.8877, allocations: 331.7 kB / 1.195 GB, free: 15.04 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003376/0.8881, allocations: 203.8 kB / 1.195 GB, free: 14.95 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.8882, allocations: 345.3 kB / 1.195 GB, free: 14.63 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008226/0.889, allocations: 371 kB / 1.196 GB, free: 14.5 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009991/0.89, allocations: 0.5326 MB / 1.196 GB, free: 14.2 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.8918, allocations: 0.8983 MB / 1.197 GB, free: 13.73 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.8918, allocations: 5.031 kB / 1.197 GB, free: 13.73 MB / 0.7917 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002687/0.8945, allocations: 1.152 MB / 1.198 GB, free: 13.27 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.8946, allocations: 6.625 kB / 1.198 GB, free: 13.27 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.8946, allocations: 4.281 kB / 1.198 GB, free: 13.27 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006047/0.8952, allocations: 87.53 kB / 1.198 GB, free: 13.25 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.8963, allocations: 240.1 kB / 1.198 GB, free: 13.23 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.8983, allocations: 1.535 MB / 1.2 GB, free: 11.79 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.8994, allocations: 136.8 kB / 1.2 GB, free: 11.72 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.8995, allocations: 48.19 kB / 1.2 GB, free: 11.71 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 118 * 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.0007198/0.9002, allocations: 329.6 kB / 1.2 GB, free: 11.48 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.9005, allocations: 114.4 kB / 1.201 GB, free: 11.42 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003142/0.9036, allocations: 1.327 MB / 1.202 GB, free: 10.9 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.9037, allocations: 10.88 kB / 1.202 GB, free: 10.9 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.9037, allocations: 5.062 kB / 1.202 GB, free: 10.89 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.9038, allocations: 6.703 kB / 1.202 GB, free: 10.89 MB / 0.7917 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.005473/0.9092, allocations: 2.673 MB / 1.204 GB, free: 9.59 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.9093, allocations: 4.938 kB / 1.204 GB, free: 9.586 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.9102, allocations: 220.5 kB / 1.205 GB, free: 9.562 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005213/0.9107, allocations: 83.78 kB / 1.205 GB, free: 9.543 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.489e-05/0.9108, allocations: 31.69 kB / 1.205 GB, free: 9.527 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/0.9127, allocations: 1.558 MB / 1.206 GB, free: 8.074 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.9127, allocations: 1.219 kB / 1.206 GB, free: 8.074 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004326/0.917, allocations: 2.472 MB / 1.209 GB, free: 6.637 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006778/0.9177, allocations: 343 kB / 1.209 GB, free: 6.398 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002245/0.918, allocations: 21.78 kB / 1.209 GB, free: 6.383 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.919, allocations: 92.62 kB / 1.209 GB, free: 6.359 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.9193, allocations: 72.14 kB / 1.209 GB, free: 6.348 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.9194, allocations: 47.27 kB / 1.209 GB, free: 6.34 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.00139/0.9208, allocations: 0.5737 MB / 1.21 GB, free: 6.086 MB / 0.7917 GB Notification: Performance of sort global known variables: time 6.51e-07/0.9209, allocations: 0 / 1.21 GB, free: 6.086 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.002479/0.9233, allocations: 444.8 kB / 1.21 GB, free: 5.965 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00232/0.9257, allocations: 0.6658 MB / 1.211 GB, free: 5.648 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.003096/0.9288, allocations: 1.074 MB / 1.212 GB, free: 5.219 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.9288, allocations: 2.031 kB / 1.212 GB, free: 5.219 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001423/0.9302, allocations: 0.6312 MB / 1.213 GB, free: 4.938 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.9329, allocations: 483.1 kB / 1.213 GB, free: 4.801 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00695/0.9399, allocations: 3.443 MB / 1.216 GB, free: 2.727 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/0.9412, allocations: 1.204 MB / 1.218 GB, free: 1.973 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.001865/0.9431, allocations: 369.3 kB / 1.218 GB, free: 1.891 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.9435, allocations: 129.6 kB / 1.218 GB, free: 1.871 MB / 0.7917 GB Notification: Performance of SimCode: time 9.42e-07/0.9435, allocations: 3.938 kB / 1.218 GB, free: 1.867 MB / 0.7917 GB Notification: Performance of Templates: time 0.04737/0.9909, allocations: 22.2 MB / 1.24 GB, free: 11.23 MB / 0.8073 GB make -j1 -f Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)