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.001038/0.001038, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001271/0.001271, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 266.5 kB / 291.4 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.5 MB / 0.5 GB, free: 14.25 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003947, allocations: 13.91 kB / 0.598 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1334, allocations: 88.54 MB / 0.6845 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4293/0.5627, allocations: 159.9 MB / 0.8406 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01382/0.5766, allocations: 11.83 MB / 0.8522 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.5778, allocations: 30.69 kB / 0.8522 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009897/0.5788, allocations: 311.2 kB / 0.8525 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002152/0.581, allocations: 0.8135 MB / 0.8533 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003491/0.5845, allocations: 1.354 MB / 0.8546 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002267/0.5868, allocations: 2.415 MB / 0.857 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001468/0.5882, allocations: 1.189 MB / 0.8582 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001875/0.5901, allocations: 1.037 MB / 0.8592 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007725/0.5909, allocations: 0.6842 MB / 0.8598 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.591, allocations: 47.56 kB / 0.8599 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.5929, allocations: 0.8855 MB / 0.8607 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003022/0.5932, allocations: 332 kB / 0.8611 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002803/0.5935, allocations: 301.7 kB / 0.8614 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00188/0.5954, allocations: 1.919 MB / 0.8632 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.5954, allocations: 0 / 0.8632 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5954, allocations: 3.938 kB / 0.8632 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.53e-05/0.5954, allocations: 2.875 kB / 0.8632 GB, free: 5.57 MB / 0.5762 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.002729/0.5982, allocations: 1.695 MB / 0.8649 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.5982, allocations: 10.41 kB / 0.8649 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002393/0.6006, allocations: 423.7 kB / 0.8653 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.602, allocations: 0.9538 MB / 0.8662 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-05/0.6021, allocations: 104 kB / 0.8663 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.6022, allocations: 128.2 kB / 0.8665 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.6046, allocations: 1.515 MB / 0.8679 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.6047, allocations: 6.875 kB / 0.8679 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.6048, allocations: 57.75 kB / 0.868 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.6048, allocations: 32.59 kB / 0.868 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/0.6073, allocations: 1.582 MB / 0.8696 GB, free: 1.449 MB / 0.5762 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.006388/0.6137, allocations: 5.1 MB / 0.8746 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002431/0.6162, allocations: 1.523 MB / 0.876 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008239/0.617, allocations: 477.6 kB / 0.8765 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007251/0.6178, allocations: 445.3 kB / 0.8769 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00119/0.619, allocations: 0.6992 MB / 0.8776 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=107): time 2.505e-06/0.619, allocations: 3.938 kB / 0.8776 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=107): time 0.004003/0.623, allocations: 1.664 MB / 0.8792 GB, free: 8.359 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.289e-05/0.6231, allocations: 192.9 kB / 0.8794 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.6242, allocations: 0.892 MB / 0.8803 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.286e-05/0.6243, allocations: 45.7 kB / 0.8803 GB, free: 7.16 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.6247, allocations: 0.5935 MB / 0.8809 GB, free: 6.559 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.625, allocations: 354.9 kB / 0.8812 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/0.6251, allocations: 23.94 kB / 0.8813 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.6252, allocations: 341.9 kB / 0.8816 GB, free: 5.844 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007893/0.626, allocations: 406.4 kB / 0.882 GB, free: 5.445 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000907/0.6269, allocations: 0.5668 MB / 0.8825 GB, free: 4.832 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008626/0.6278, allocations: 462.8 kB / 0.883 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.6278, allocations: 4 kB / 0.883 GB, free: 4.375 MB / 0.5919 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002523/0.6303, allocations: 1.231 MB / 0.8842 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.6304, allocations: 8 kB / 0.8842 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.6304, allocations: 4 kB / 0.8842 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.6309, allocations: 89.02 kB / 0.8843 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.632, allocations: 255.6 kB / 0.8845 GB, free: 2.781 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.6339, allocations: 1.535 MB / 0.886 GB, free: 1.113 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.635, allocations: 169.4 kB / 0.8862 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.6351, allocations: 55.95 kB / 0.8862 GB, free: 0.8945 MB / 0.5919 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005938/0.6357, allocations: 344 kB / 0.8866 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.6359, allocations: 122.6 kB / 0.8867 GB, free: 440 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/0.639, allocations: 1.442 MB / 0.8881 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.6391, allocations: 15.98 kB / 0.8881 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.6391, allocations: 0 / 0.8881 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.6391, allocations: 11.92 kB / 0.8881 GB, free: 14.95 MB / 0.6075 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.004492/0.6436, allocations: 2.862 MB / 0.8909 GB, free: 12 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.6436, allocations: 0 / 0.8909 GB, free: 12 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009855/0.6446, allocations: 231.7 kB / 0.8911 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004648/0.6451, allocations: 84.77 kB / 0.8912 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/0.6452, allocations: 39.95 kB / 0.8913 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.6469, allocations: 1.559 MB / 0.8928 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.6469, allocations: 4.062 kB / 0.8928 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00254/0.6495, allocations: 1.316 MB / 0.8941 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/0.65, allocations: 371.1 kB / 0.8944 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.6502, allocations: 31.98 kB / 0.8944 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000948/0.6512, allocations: 117.4 kB / 0.8946 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.6513, allocations: 84.88 kB / 0.8946 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.6515, allocations: 51.95 kB / 0.8947 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008202/0.6523, allocations: 0.6072 MB / 0.8953 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6523, allocations: 0 / 0.8953 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001209/0.6535, allocations: 490.8 kB / 0.8958 GB, free: 6.855 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001555/0.6551, allocations: 0.6943 MB / 0.8964 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002146/0.6572, allocations: 1.148 MB / 0.8976 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.6572, allocations: 4 kB / 0.8976 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.6584, allocations: 0.6874 MB / 0.8982 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/0.6604, allocations: 480.2 kB / 0.8987 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.6654, allocations: 3.081 MB / 0.9017 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007722/0.6662, allocations: 1.209 MB / 0.9029 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001387/0.6676, allocations: 393.6 kB / 0.9033 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/0.6679, allocations: 135.4 kB / 0.9034 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of SimCode: time 2.7e-07/0.6679, allocations: 0 / 0.9034 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of Templates: time 0.03464/0.7026, allocations: 22.22 MB / 0.9251 GB, free: 9.219 MB / 0.6387 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)