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.001005/0.001006, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002014/0.002014, allocations: 283.1 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9408/0.9408, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001657, allocations: 93.3 kB / 0.5952 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1557, allocations: 86.99 MB / 0.6802 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5077/0.6634, allocations: 176 MB / 0.8521 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01647/0.6799, allocations: 12.72 MB / 0.8645 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.682, allocations: 34.44 kB / 0.8645 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.6836, allocations: 446.3 kB / 0.865 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003541/0.6872, allocations: 0.9725 MB / 0.8659 GB, free: 316 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006698/0.6939, allocations: 1.853 MB / 0.8677 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004754/0.6986, allocations: 2.393 MB / 0.8701 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002942/0.7016, allocations: 1.629 MB / 0.8717 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00437/0.706, allocations: 1.403 MB / 0.873 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001377/0.7074, allocations: 0.8581 MB / 0.8739 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.7076, allocations: 171 kB / 0.874 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.7107, allocations: 1.398 MB / 0.8754 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000431/0.7111, allocations: 493.6 kB / 0.8759 GB, free: 9.992 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008669/0.712, allocations: 0.8528 MB / 0.8767 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003868/0.7159, allocations: 2.706 MB / 0.8793 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.7159, allocations: 4 kB / 0.8793 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7159, allocations: 0 / 0.8793 GB, free: 7.508 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.465e-05/0.7159, allocations: 0 / 0.8793 GB, free: 7.508 MB / 0.5919 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.003379/0.7193, allocations: 2.004 MB / 0.8813 GB, free: 5.992 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.7194, allocations: 7.844 kB / 0.8813 GB, free: 5.992 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.7219, allocations: 406.5 kB / 0.8817 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.7234, allocations: 0.9948 MB / 0.8827 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.617e-05/0.7235, allocations: 102 kB / 0.8828 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.7237, allocations: 127.2 kB / 0.8829 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.726, allocations: 1.525 MB / 0.8844 GB, free: 3.957 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.7261, allocations: 4.875 kB / 0.8844 GB, free: 3.953 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.7262, allocations: 58.84 kB / 0.8844 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.707e-05/0.7263, allocations: 33.47 kB / 0.8845 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002503/0.7288, allocations: 1.586 MB / 0.886 GB, free: 3.145 MB / 0.5919 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.00681/0.7356, allocations: 5.096 MB / 0.891 GB, free: 14.94 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.7381, allocations: 1.513 MB / 0.8925 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008024/0.7389, allocations: 483.6 kB / 0.8929 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007296/0.7396, allocations: 428.1 kB / 0.8933 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.7408, allocations: 0.6918 MB / 0.894 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 3.186e-06/0.7409, allocations: 3.938 kB / 0.894 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.004366/0.7452, allocations: 1.668 MB / 0.8956 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.7454, allocations: 196.9 kB / 0.8958 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.7468, allocations: 0.892 MB / 0.8967 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.7469, allocations: 49.7 kB / 0.8967 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005534/0.7475, allocations: 0.5974 MB / 0.8973 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.7478, allocations: 354.9 kB / 0.8977 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003573/0.7482, allocations: 214.8 kB / 0.8979 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.7483, allocations: 345.9 kB / 0.8982 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.7491, allocations: 394.4 kB / 0.8986 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009463/0.75, allocations: 0.5769 MB / 0.8991 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.7517, allocations: 0.9604 MB / 0.9001 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7517, allocations: 4 kB / 0.9001 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002808/0.7545, allocations: 1.227 MB / 0.9013 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.7546, allocations: 11.94 kB / 0.9013 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.7546, allocations: 0 / 0.9013 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005977/0.7552, allocations: 93.16 kB / 0.9014 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.7563, allocations: 251.7 kB / 0.9016 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.7585, allocations: 1.652 MB / 0.9032 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.7597, allocations: 134.9 kB / 0.9034 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.7599, allocations: 51.91 kB / 0.9034 GB, free: 1.836 MB / 0.6075 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.0007883/0.7607, allocations: 348.8 kB / 0.9037 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/0.7611, allocations: 118.6 kB / 0.9039 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.7646, allocations: 1.441 MB / 0.9053 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.7647, allocations: 12 kB / 0.9053 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.7647, allocations: 0 / 0.9053 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.7647, allocations: 7.969 kB / 0.9053 GB, free: 15.9 MB / 0.6231 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.00559/0.7703, allocations: 2.878 MB / 0.9081 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.7703, allocations: 0 / 0.9081 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.7713, allocations: 215.8 kB / 0.9083 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004734/0.7718, allocations: 80.72 kB / 0.9084 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/0.7719, allocations: 35.91 kB / 0.9084 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.7739, allocations: 1.674 MB / 0.91 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.7739, allocations: 3.984 kB / 0.9101 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.777, allocations: 1.324 MB / 0.9113 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008347/0.7778, allocations: 351.2 kB / 0.9117 GB, free: 9.074 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.7781, allocations: 23.98 kB / 0.9117 GB, free: 9.051 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.7792, allocations: 81.55 kB / 0.9118 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.7795, allocations: 88.81 kB / 0.9119 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.7796, allocations: 51.97 kB / 0.9119 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001119/0.7807, allocations: 0.6189 MB / 0.9125 GB, free: 8.203 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7807, allocations: 0 / 0.9125 GB, free: 8.203 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00176/0.7825, allocations: 486.7 kB / 0.913 GB, free: 7.727 MB / 0.6231 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.001887/0.7844, allocations: 0.7097 MB / 0.9137 GB, free: 7.199 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00368/0.7881, allocations: 1.468 MB / 0.9151 GB, free: 5.719 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.7881, allocations: 0 / 0.9151 GB, free: 5.719 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.7895, allocations: 0.6798 MB / 0.9158 GB, free: 5.027 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.7922, allocations: 0.5239 MB / 0.9163 GB, free: 4.535 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/0.7982, allocations: 2.47 MB / 0.9187 GB, free: 2.035 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.7993, allocations: 1.209 MB / 0.9199 GB, free: 0.793 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00187/0.8012, allocations: 373.8 kB / 0.9202 GB, free: 436 kB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004535/0.8017, allocations: 143.4 kB / 0.9204 GB, free: 292 kB / 0.6231 GB Notification: Performance of SimCode: time 2.134e-06/0.8017, allocations: 0 / 0.9204 GB, free: 292 kB / 0.6231 GB Notification: Performance of Templates: time 0.04462/0.8463, allocations: 24.01 MB / 0.9438 GB, free: 8.598 MB / 0.6544 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)