Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7795/0.7795, allocations: 143.4 MB / 159.2 MB, free: 4.926 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 191 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 447.3 MB, free: 5.84 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 111.2 kB / 0.517 GB, free: 3.711 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 273.9 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001632, allocations: 83.88 kB / 0.6885 GB, free: 3.859 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4255, allocations: 81.29 MB / 0.7679 GB, free: 27.69 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5829/1.008, allocations: 173.5 MB / 0.9374 GB, free: 15.94 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.02224/1.031, allocations: 12.68 MB / 0.9497 GB, free: 15.58 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003014/1.034, allocations: 30.38 kB / 0.9498 GB, free: 15.58 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.002005/1.036, allocations: 356.2 kB / 0.9501 GB, free: 15.58 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.003533/1.04, allocations: 0.8213 MB / 0.9509 GB, free: 15.54 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.004737/1.044, allocations: 1.637 MB / 0.9525 GB, free: 15.46 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.003118/1.047, allocations: 2.64 MB / 0.9551 GB, free: 15.46 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002051/1.049, allocations: 1.455 MB / 0.9565 GB, free: 15.21 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005675/1.055, allocations: 1.221 MB / 0.9577 GB, free: 15.14 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001739/1.057, allocations: 0.798 MB / 0.9585 GB, free: 15.08 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002371/1.057, allocations: 85.09 kB / 0.9586 GB, free: 15.08 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/1.061, allocations: 1.459 MB / 0.96 GB, free: 14.96 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005619/1.062, allocations: 395.2 kB / 0.9604 GB, free: 14.9 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001376/1.063, allocations: 0.7307 MB / 0.9611 GB, free: 14.66 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005716/1.069, allocations: 2.568 MB / 0.9636 GB, free: 14.3 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/1.069, allocations: 0 / 0.9636 GB, free: 14.3 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.162e-06/1.069, allocations: 0 / 0.9636 GB, free: 14.3 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.216e-05/1.069, allocations: 3.938 kB / 0.9636 GB, free: 14.29 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.005121/1.074, allocations: 1.909 MB / 0.9654 GB, free: 13.28 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 8.042e-05/1.074, allocations: 10.12 kB / 0.9655 GB, free: 13.28 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003226/1.078, allocations: 396.8 kB / 0.9658 GB, free: 13.11 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/1.08, allocations: 0.9497 MB / 0.9668 GB, free: 12.55 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/1.08, allocations: 100.8 kB / 0.9669 GB, free: 12.55 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/1.081, allocations: 129.2 kB / 0.967 GB, free: 12.53 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003355/1.084, allocations: 1.454 MB / 0.9684 GB, free: 11.59 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/1.084, allocations: 3.938 kB / 0.9684 GB, free: 11.59 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001497/1.084, allocations: 63.11 kB / 0.9685 GB, free: 11.54 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-05/1.084, allocations: 32.44 kB / 0.9685 GB, free: 11.54 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002911/1.087, allocations: 1.531 MB / 0.97 GB, free: 10.81 MB / 0.573 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.008514/1.096, allocations: 4.915 MB / 0.9748 GB, free: 6.773 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/1.098, allocations: 1.425 MB / 0.9762 GB, free: 5.828 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008284/1.099, allocations: 457.1 kB / 0.9766 GB, free: 5.602 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007545/1.1, allocations: 420.5 kB / 0.977 GB, free: 5.188 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/1.101, allocations: 0.6253 MB / 0.9776 GB, free: 4.793 MB / 0.573 GB Notification: Performance of pre-optimization done (n=98): time 3.567e-06/1.101, allocations: 0 / 0.9776 GB, free: 4.793 MB / 0.573 GB Notification: Performance of matching and sorting (n=98): time 0.004303/1.105, allocations: 1.527 MB / 0.9791 GB, free: 3.98 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/1.106, allocations: 197.3 kB / 0.9793 GB, free: 3.758 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/1.107, allocations: 0.8524 MB / 0.9801 GB, free: 3.262 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001173/1.107, allocations: 49.55 kB / 0.9802 GB, free: 3.215 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005384/1.108, allocations: 0.5649 MB / 0.9807 GB, free: 2.715 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003257/1.108, allocations: 328.3 kB / 0.9811 GB, free: 2.438 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000334/1.108, allocations: 203.9 kB / 0.9813 GB, free: 2.312 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001572/1.108, allocations: 348 kB / 0.9816 GB, free: 1.977 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007296/1.109, allocations: 370 kB / 0.9819 GB, free: 1.793 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009848/1.11, allocations: 0.523 MB / 0.9824 GB, free: 1.438 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/1.112, allocations: 0.9007 MB / 0.9833 GB, free: 0.8984 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/1.112, allocations: 2.469 kB / 0.9833 GB, free: 0.8984 MB / 0.573 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002851/1.115, allocations: 1.154 MB / 0.9845 GB, free: 316 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.237e-05/1.115, allocations: 11.38 kB / 0.9845 GB, free: 312 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/1.115, allocations: 3 kB / 0.9845 GB, free: 312 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/1.115, allocations: 84.97 kB / 0.9845 GB, free: 272 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/1.117, allocations: 250.1 kB / 0.9848 GB, free: 200 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/1.119, allocations: 1.523 MB / 0.9863 GB, free: 14.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/1.12, allocations: 138.7 kB / 0.9864 GB, free: 14.61 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/1.12, allocations: 48.47 kB / 0.9865 GB, free: 14.59 MB / 0.5886 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.0009545/1.121, allocations: 339.4 kB / 0.9868 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004198/1.122, allocations: 113.4 kB / 0.9869 GB, free: 14.28 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/1.125, allocations: 1.333 MB / 0.9882 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/1.125, allocations: 9.688 kB / 0.9882 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/1.125, allocations: 0 / 0.9882 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/1.125, allocations: 3.984 kB / 0.9882 GB, free: 13.53 MB / 0.5886 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.004964/1.13, allocations: 2.7 MB / 0.9908 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/1.13, allocations: 0 / 0.9908 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009464/1.131, allocations: 211.8 kB / 0.991 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005247/1.132, allocations: 84.77 kB / 0.9911 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.616e-05/1.132, allocations: 27.98 kB / 0.9911 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/1.134, allocations: 1.568 MB / 0.9927 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.134, allocations: 4.031 kB / 0.9927 GB, free: 9.191 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004057/1.138, allocations: 2.481 MB / 0.9951 GB, free: 6.652 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006566/1.138, allocations: 335.2 kB / 0.9954 GB, free: 6.305 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/1.138, allocations: 24 kB / 0.9954 GB, free: 6.281 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008809/1.139, allocations: 104.4 kB / 0.9955 GB, free: 6.184 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/1.14, allocations: 68.91 kB / 0.9956 GB, free: 6.117 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/1.14, allocations: 47.95 kB / 0.9957 GB, free: 6.07 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0008579/1.141, allocations: 0.5902 MB / 0.9962 GB, free: 5.469 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.7e-07/1.141, allocations: 4 kB / 0.9962 GB, free: 5.465 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001581/1.142, allocations: 466.9 kB / 0.9967 GB, free: 5.008 MB / 0.5886 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.001746/1.144, allocations: 0.6935 MB / 0.9974 GB, free: 4.516 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002497/1.146, allocations: 1.066 MB / 0.9984 GB, free: 3.434 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.146, allocations: 0 / 0.9984 GB, free: 3.434 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001223/1.148, allocations: 0.6251 MB / 0.999 GB, free: 2.801 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002523/1.15, allocations: 495.9 kB / 0.9995 GB, free: 2.328 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006698/1.157, allocations: 3.465 MB / 1.003 GB, free: 14.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/1.158, allocations: 1.216 MB / 1.004 GB, free: 13.58 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001826/1.16, allocations: 373.2 kB / 1.004 GB, free: 13.21 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/1.16, allocations: 127.4 kB / 1.005 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of SimCode: time 8.52e-07/1.16, allocations: 0 / 1.005 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of Templates: time 0.04342/1.204, allocations: 22.59 MB / 1.027 GB, free: 6.75 MB / 0.6198 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)