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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 108.6 kB / 16.41 MB, free: 6.512 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.001387/0.001387, allocations: 187 kB / 17.34 MB, free: 5.742 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 285.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9648/0.9648, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003032/0.003032, allocations: 96.28 kB / 0.6821 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4754/0.4785, allocations: 86.98 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1742/0.6527, allocations: 176 MB / 0.939 GB, free: 3.191 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01619/0.669, allocations: 12.73 MB / 0.9514 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.6701, allocations: 31.81 kB / 0.9514 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.6715, allocations: 452.6 kB / 0.9518 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00281/0.6743, allocations: 0.9666 MB / 0.9528 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004372/0.6787, allocations: 1.857 MB / 0.9546 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002727/0.6815, allocations: 2.423 MB / 0.957 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3977/1.079, allocations: 1.616 MB / 0.9585 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004622/1.084, allocations: 1.414 MB / 0.9599 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/1.085, allocations: 0.8593 MB / 0.9608 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0003363/1.086, allocations: 171.8 kB / 0.9609 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/1.089, allocations: 1.428 MB / 0.9623 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004908/1.089, allocations: 492.6 kB / 0.9628 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0009453/1.09, allocations: 0.8579 MB / 0.9636 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003952/1.094, allocations: 2.757 MB / 0.9663 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/1.094, allocations: 1.719 kB / 0.9663 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/1.094, allocations: 0.9062 kB / 0.9663 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.106e-05/1.094, allocations: 0 / 0.9663 GB, free: 3.227 MB / 0.7169 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.003872/1.098, allocations: 2.012 MB / 0.9683 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/1.098, allocations: 13.31 kB / 0.9683 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002663/1.101, allocations: 405.5 kB / 0.9687 GB, free: 18.15 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/1.102, allocations: 1.022 MB / 0.9697 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/1.102, allocations: 100.9 kB / 0.9698 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/1.102, allocations: 132 kB / 0.9699 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/1.104, allocations: 1.526 MB / 0.9714 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/1.105, allocations: 3.906 kB / 0.9714 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/1.105, allocations: 64.03 kB / 0.9715 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/1.105, allocations: 35.56 kB / 0.9715 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002222/1.107, allocations: 1.581 MB / 0.973 GB, free: 17.55 MB / 0.7325 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.006058/1.113, allocations: 5.026 MB / 0.978 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/1.115, allocations: 1.523 MB / 0.9794 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007137/1.116, allocations: 478.9 kB / 0.9799 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007386/1.117, allocations: 427.3 kB / 0.9803 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/1.118, allocations: 0.6889 MB / 0.981 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 3.506e-06/1.118, allocations: 0 / 0.981 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.003883/1.122, allocations: 1.671 MB / 0.9826 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.755e-05/1.122, allocations: 197.3 kB / 0.9828 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009519/1.123, allocations: 0.8977 MB / 0.9837 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/1.123, allocations: 47.27 kB / 0.9837 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000356/1.123, allocations: 0.5937 MB / 0.9843 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/1.123, allocations: 356.6 kB / 0.9846 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/1.124, allocations: 220.4 kB / 0.9848 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001282/1.124, allocations: 343.3 kB / 0.9852 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006657/1.125, allocations: 400.7 kB / 0.9856 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007832/1.125, allocations: 0.5672 MB / 0.9861 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/1.127, allocations: 0.9568 MB / 0.987 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/1.127, allocations: 1.312 kB / 0.987 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002371/1.129, allocations: 1.238 MB / 0.9883 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/1.129, allocations: 5.219 kB / 0.9883 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/1.129, allocations: 4.312 kB / 0.9883 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005861/1.13, allocations: 85.69 kB / 0.9883 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.131, allocations: 251.2 kB / 0.9886 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/1.133, allocations: 1.651 MB / 0.9902 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/1.134, allocations: 133 kB / 0.9903 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.862e-05/1.134, allocations: 54.25 kB / 0.9904 GB, free: 11.23 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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 (131): * Single equations (assignments): 130 * 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.0005965/1.135, allocations: 339.5 kB / 0.9907 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/1.135, allocations: 124 kB / 0.9908 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/1.138, allocations: 1.443 MB / 0.9922 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/1.138, allocations: 11.56 kB / 0.9922 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/1.138, allocations: 2.719 kB / 0.9922 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/1.138, allocations: 6.797 kB / 0.9923 GB, free: 10.93 MB / 0.7325 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.004191/1.142, allocations: 2.866 MB / 0.995 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.142, allocations: 0 / 0.995 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009259/1.143, allocations: 220.8 kB / 0.9953 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/1.143, allocations: 77.2 kB / 0.9953 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-05/1.143, allocations: 37 kB / 0.9954 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/1.145, allocations: 1.668 MB / 0.997 GB, free: 9.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.145, allocations: 9.203 kB / 0.997 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/1.148, allocations: 1.323 MB / 0.9983 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005373/1.148, allocations: 352.5 kB / 0.9986 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/1.148, allocations: 33.92 kB / 0.9987 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008939/1.149, allocations: 80.09 kB / 0.9987 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/1.149, allocations: 86.38 kB / 0.9988 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.898e-05/1.149, allocations: 51.08 kB / 0.9989 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000732/1.15, allocations: 0.6194 MB / 0.9995 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/1.15, allocations: 0 / 0.9995 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001349/1.152, allocations: 487.2 kB / 0.9999 GB, free: 8.434 MB / 0.7325 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.001605/1.153, allocations: 0.7111 MB / 1.001 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00207/1.155, allocations: 1.152 MB / 1.002 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.155, allocations: 4.094 kB / 1.002 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/1.156, allocations: 0.673 MB / 1.002 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/1.158, allocations: 0.523 MB / 1.003 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004746/1.163, allocations: 2.486 MB / 1.005 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007123/1.164, allocations: 1.209 MB / 1.007 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004707/1.164, allocations: 154.9 kB / 1.007 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of SimCode: time 6.72e-07/1.164, allocations: 0 / 1.007 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of Templates: time 0.03826/1.203, allocations: 28.34 MB / 1.034 GB, free: 9.602 MB / 0.7481 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)