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.007661/0.007661, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.00114/0.00114, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002123, allocations: 286.5 kB / 290.8 MB, free: 1.793 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9435/0.9435, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 95.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1714, allocations: 86.98 MB / 0.7664 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5192/0.6906, allocations: 176 MB / 0.9383 GB, free: 2.707 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01485/0.7055, allocations: 12.73 MB / 0.9507 GB, free: 5.938 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009477/0.7065, allocations: 31.81 kB / 0.9508 GB, free: 5.906 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.7076, allocations: 456.6 kB / 0.9512 GB, free: 5.457 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002354/0.71, allocations: 0.9723 MB / 0.9521 GB, free: 4.488 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.004137/0.7142, allocations: 1.84 MB / 0.9539 GB, free: 2.656 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.002586/0.7167, allocations: 2.424 MB / 0.9563 GB, free: 228 kB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/0.7187, allocations: 1.632 MB / 0.9579 GB, free: 14.55 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003297/0.7221, allocations: 1.399 MB / 0.9593 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.7231, allocations: 0.8674 MB / 0.9601 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002271/0.7233, allocations: 172 kB / 0.9603 GB, free: 12.14 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002488/0.7258, allocations: 1.419 MB / 0.9617 GB, free: 10.72 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003915/0.7262, allocations: 498.4 kB / 0.9621 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007204/0.7269, allocations: 0.8474 MB / 0.963 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002901/0.7298, allocations: 2.756 MB / 0.9657 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.7299, allocations: 8 kB / 0.9657 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7299, allocations: 4 kB / 0.9657 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.534e-05/0.7299, allocations: 0 / 0.9657 GB, free: 6.609 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.002968/0.7329, allocations: 1.997 MB / 0.9676 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.7329, allocations: 16.02 kB / 0.9676 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002468/0.7354, allocations: 401.6 kB / 0.968 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.7369, allocations: 1.031 MB / 0.969 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-05/0.737, allocations: 102.7 kB / 0.9691 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.7372, allocations: 132 kB / 0.9692 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.7397, allocations: 1.52 MB / 0.9707 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.7397, allocations: 0 / 0.9707 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.7398, allocations: 63.98 kB / 0.9708 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.324e-05/0.7399, allocations: 32 kB / 0.9708 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002555/0.7425, allocations: 1.591 MB / 0.9724 GB, free: 15.54 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.00645/0.7489, allocations: 5.015 MB / 0.9773 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.7514, allocations: 1.526 MB / 0.9788 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007945/0.7522, allocations: 484.1 kB / 0.9792 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006953/0.7529, allocations: 424.1 kB / 0.9796 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.7541, allocations: 0.6956 MB / 0.9803 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.555e-06/0.7541, allocations: 0 / 0.9803 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.00406/0.7582, allocations: 1.664 MB / 0.9819 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.7583, allocations: 200.9 kB / 0.9821 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.7594, allocations: 0.892 MB / 0.983 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.391e-05/0.7595, allocations: 49.7 kB / 0.983 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005325/0.76, allocations: 0.5974 MB / 0.9836 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003074/0.7604, allocations: 350.9 kB / 0.984 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003694/0.7607, allocations: 218.7 kB / 0.9842 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.7609, allocations: 349.9 kB / 0.9845 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007525/0.7616, allocations: 398.3 kB / 0.9849 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009191/0.7626, allocations: 0.5756 MB / 0.9854 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.7643, allocations: 0.9566 MB / 0.9864 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.7643, allocations: 3.938 kB / 0.9864 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00266/0.7669, allocations: 1.235 MB / 0.9876 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.767, allocations: 9.812 kB / 0.9876 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.767, allocations: 4 kB / 0.9876 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005835/0.7676, allocations: 89.17 kB / 0.9877 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.7687, allocations: 251.7 kB / 0.9879 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/0.7709, allocations: 1.654 MB / 0.9895 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.7719, allocations: 131 kB / 0.9897 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.145e-05/0.772, allocations: 55.89 kB / 0.9897 GB, free: 12.98 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: 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.0006193/0.7726, allocations: 343.9 kB / 0.99 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002215/0.7729, allocations: 122.5 kB / 0.9902 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003008/0.7759, allocations: 1.421 MB / 0.9916 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.7759, allocations: 12 kB / 0.9916 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.7759, allocations: 8 kB / 0.9916 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.7759, allocations: 7.969 kB / 0.9916 GB, free: 11.06 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.004513/0.7805, allocations: 2.884 MB / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.7805, allocations: 0 / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009409/0.7814, allocations: 215.8 kB / 0.9946 GB, free: 7.879 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004143/0.7819, allocations: 76.72 kB / 0.9947 GB, free: 7.801 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.405e-05/0.7819, allocations: 31.98 kB / 0.9947 GB, free: 7.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.7837, allocations: 1.67 MB / 0.9963 GB, free: 5.953 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.7838, allocations: 0 / 0.9963 GB, free: 5.953 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002639/0.7864, allocations: 1.322 MB / 0.9976 GB, free: 4.609 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005247/0.7869, allocations: 359.1 kB / 0.998 GB, free: 4.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.7871, allocations: 24 kB / 0.998 GB, free: 4.215 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000871/0.788, allocations: 79.91 kB / 0.9981 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.7882, allocations: 92.88 kB / 0.9982 GB, free: 4.047 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.7883, allocations: 55.97 kB / 0.9982 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000842/0.7891, allocations: 0.615 MB / 0.9988 GB, free: 3.367 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7891, allocations: 0 / 0.9988 GB, free: 3.367 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001188/0.7903, allocations: 486.8 kB / 0.9993 GB, free: 2.891 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: 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.001539/0.7919, allocations: 0.7156 MB / 1 GB, free: 2.363 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002274/0.7942, allocations: 1.152 MB / 1.001 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.7942, allocations: 0 / 1.001 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.7954, allocations: 0.6721 MB / 1.002 GB, free: 0.5156 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.7978, allocations: 0.517 MB / 1.002 GB, free: 32 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/0.8039, allocations: 2.443 MB / 1.005 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.8052, allocations: 1.209 MB / 1.006 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001695/0.8069, allocations: 393.7 kB / 1.006 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000478/0.8074, allocations: 143.4 kB / 1.006 GB, free: 11.79 MB / 0.7637 GB Notification: Performance of SimCode: time 1.473e-06/0.8074, allocations: 0 / 1.006 GB, free: 11.79 MB / 0.7637 GB Notification: Performance of Templates: time 0.04054/0.848, allocations: 23.98 MB / 1.03 GB, free: 4.129 MB / 0.7794 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)