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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001139/0.001139, allocations: 189.9 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.751/1.751, allocations: 292.2 MB / 0.5485 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.88 kB / 0.671 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2641, allocations: 114.6 MB / 0.7828 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.7146/0.9788, allocations: 173.4 MB / 0.9522 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01895/0.9978, allocations: 12.26 MB / 0.9642 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.9997, allocations: 28.91 kB / 0.9642 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001763/1.002, allocations: 370.7 kB / 0.9645 GB, free: 5.074 MB / 0.7325 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.003999/1.006, allocations: 0.7966 MB / 0.9653 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.005999/1.012, allocations: 1.642 MB / 0.9669 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003984/1.016, allocations: 2.26 MB / 0.9691 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/1.018, allocations: 1.571 MB / 0.9707 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005277/1.023, allocations: 1.34 MB / 0.972 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/1.025, allocations: 0.8235 MB / 0.9728 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003113/1.026, allocations: 157.6 kB / 0.9729 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003715/1.029, allocations: 1.35 MB / 0.9742 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005386/1.03, allocations: 454.9 kB / 0.9747 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001181/1.031, allocations: 0.7937 MB / 0.9755 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.005126/1.036, allocations: 2.567 MB / 0.978 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/1.036, allocations: 4 kB / 0.978 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.034e-06/1.036, allocations: 0 / 0.978 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.517e-05/1.036, allocations: 0 / 0.978 GB, free: 4.027 MB / 0.7325 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.004323/1.041, allocations: 1.867 MB / 0.9798 GB, free: 19.08 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/1.041, allocations: 9.094 kB / 0.9798 GB, free: 19.08 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002754/1.043, allocations: 395.4 kB / 0.9802 GB, free: 18.99 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/1.045, allocations: 0.9552 MB / 0.9811 GB, free: 18.63 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.984e-05/1.045, allocations: 95.67 kB / 0.9812 GB, free: 18.63 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/1.045, allocations: 129.2 kB / 0.9813 GB, free: 18.62 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/1.048, allocations: 1.439 MB / 0.9827 GB, free: 18.4 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/1.048, allocations: 3.75 kB / 0.9827 GB, free: 18.4 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/1.048, allocations: 53.16 kB / 0.9828 GB, free: 18.4 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.395e-05/1.048, allocations: 36.03 kB / 0.9828 GB, free: 18.39 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002751/1.051, allocations: 1.525 MB / 0.9843 GB, free: 18.38 MB / 0.7481 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.006969/1.058, allocations: 4.878 MB / 0.9891 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/1.06, allocations: 1.419 MB / 0.9905 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007856/1.061, allocations: 455.4 kB / 0.9909 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000921/1.062, allocations: 424.2 kB / 0.9913 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001441/1.064, allocations: 0.6189 MB / 0.9919 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=98): time 4.619e-06/1.064, allocations: 0 / 0.9919 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=98): time 0.004094/1.068, allocations: 1.537 MB / 0.9934 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/1.068, allocations: 195.1 kB / 0.9936 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/1.069, allocations: 0.8309 MB / 0.9944 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001378/1.069, allocations: 46.73 kB / 0.9944 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005019/1.07, allocations: 0.5604 MB / 0.995 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/1.07, allocations: 328.1 kB / 0.9953 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/1.07, allocations: 203.8 kB / 0.9955 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001378/1.07, allocations: 350 kB / 0.9958 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007046/1.071, allocations: 366.1 kB / 0.9962 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008762/1.072, allocations: 0.5312 MB / 0.9967 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/1.074, allocations: 0.9019 MB / 0.9976 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/1.074, allocations: 6.344 kB / 0.9976 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002649/1.076, allocations: 1.15 MB / 0.9987 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/1.076, allocations: 11.53 kB / 0.9987 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/1.076, allocations: 2.688 kB / 0.9987 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006647/1.077, allocations: 86.08 kB / 0.9988 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/1.078, allocations: 234 kB / 0.999 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/1.08, allocations: 1.655 MB / 1.001 GB, free: 8.582 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/1.082, allocations: 130.6 kB / 1.001 GB, free: 8.516 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.902e-05/1.082, allocations: 47.36 kB / 1.001 GB, free: 8.508 MB / 0.7481 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.0008863/1.083, allocations: 332.8 kB / 1.001 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/1.083, allocations: 117.5 kB / 1.001 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/1.086, allocations: 1.328 MB / 1.003 GB, free: 7.699 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/1.086, allocations: 10.34 kB / 1.003 GB, free: 7.699 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/1.086, allocations: 6.609 kB / 1.003 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/1.086, allocations: 5.719 kB / 1.003 GB, free: 7.695 MB / 0.7481 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.004551/1.091, allocations: 2.682 MB / 1.005 GB, free: 6.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.091, allocations: 0 / 1.005 GB, free: 6.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009651/1.092, allocations: 214.8 kB / 1.005 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004388/1.092, allocations: 73.91 kB / 1.005 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.398e-05/1.092, allocations: 34.56 kB / 1.005 GB, free: 6.23 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/1.094, allocations: 1.675 MB / 1.007 GB, free: 4.609 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.094, allocations: 2.562 kB / 1.007 GB, free: 4.609 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/1.096, allocations: 1.223 MB / 1.008 GB, free: 3.93 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005971/1.097, allocations: 333.4 kB / 1.009 GB, free: 3.648 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/1.097, allocations: 21.84 kB / 1.009 GB, free: 3.633 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000892/1.098, allocations: 82.05 kB / 1.009 GB, free: 3.594 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/1.098, allocations: 75.73 kB / 1.009 GB, free: 3.555 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/1.098, allocations: 47.38 kB / 1.009 GB, free: 3.539 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007665/1.099, allocations: 0.5714 MB / 1.009 GB, free: 3.203 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/1.099, allocations: 0 / 1.009 GB, free: 3.203 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001386/1.1, allocations: 441.2 kB / 1.01 GB, free: 3.078 MB / 0.7481 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.001646/1.102, allocations: 0.6782 MB / 1.01 GB, free: 2.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.003296/1.105, allocations: 1.363 MB / 1.012 GB, free: 2.211 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/1.105, allocations: 0.625 kB / 1.012 GB, free: 2.211 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001119/1.107, allocations: 0.6458 MB / 1.012 GB, free: 1.871 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/1.109, allocations: 0.5131 MB / 1.013 GB, free: 1.605 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005536/1.115, allocations: 2.892 MB / 1.016 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000758/1.115, allocations: 1.169 MB / 1.017 GB, free: 14.78 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00169/1.117, allocations: 383.5 kB / 1.017 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/1.117, allocations: 132.8 kB / 1.017 GB, free: 14.55 MB / 0.7637 GB Notification: Performance of SimCode: time 1.032e-06/1.117, allocations: 0 / 1.017 GB, free: 14.55 MB / 0.7637 GB Notification: Performance of Templates: time 0.03936/1.157, allocations: 22.4 MB / 1.039 GB, free: 14.07 MB / 0.7794 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)