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.0009758/0.0009759, allocations: 117.1 kB / 16.37 MB, free: 6.012 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.000959/0.000959, allocations: 190.9 kB / 17.31 MB, free: 5.613 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002191/0.002191, allocations: 283.9 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9244/0.9244, allocations: 169.2 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001643, allocations: 103 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1545, allocations: 86.97 MB / 0.6816 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4563/0.6108, allocations: 176 MB / 0.8535 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01727/0.6281, allocations: 12.73 MB / 0.8659 GB, free: 1.57 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.6295, allocations: 35.81 kB / 0.866 GB, free: 1.535 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.6312, allocations: 444.6 kB / 0.8664 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.6342, allocations: 0.9695 MB / 0.8674 GB, free: 132 kB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004602/0.6388, allocations: 1.852 MB / 0.8692 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003024/0.6418, allocations: 2.412 MB / 0.8715 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002491/0.6443, allocations: 1.636 MB / 0.8731 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003688/0.648, allocations: 1.397 MB / 0.8745 GB, free: 8.812 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.6494, allocations: 0.8635 MB / 0.8753 GB, free: 7.945 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004191/0.6498, allocations: 172 kB / 0.8755 GB, free: 7.777 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00284/0.6526, allocations: 1.419 MB / 0.8769 GB, free: 6.355 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006554/0.6533, allocations: 490.5 kB / 0.8773 GB, free: 5.875 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.6546, allocations: 0.8513 MB / 0.8782 GB, free: 5.02 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004071/0.6587, allocations: 2.763 MB / 0.8809 GB, free: 2.25 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.6587, allocations: 7.938 kB / 0.8809 GB, free: 2.242 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.715e-06/0.6587, allocations: 7.922 kB / 0.8809 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.567e-05/0.6588, allocations: 0 / 0.8809 GB, free: 2.234 MB / 0.6387 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.004037/0.6629, allocations: 2.002 MB / 0.8828 GB, free: 176 kB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.6629, allocations: 16.03 kB / 0.8829 GB, free: 160 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/0.6656, allocations: 401.5 kB / 0.8832 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.6675, allocations: 1.027 MB / 0.8842 GB, free: 14.69 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.489e-05/0.6676, allocations: 102.7 kB / 0.8843 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002027/0.6678, allocations: 132 kB / 0.8845 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.6705, allocations: 1.526 MB / 0.886 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.6705, allocations: 0 / 0.886 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.6706, allocations: 60 kB / 0.886 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.613e-05/0.6707, allocations: 32 kB / 0.886 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.6733, allocations: 1.587 MB / 0.8876 GB, free: 11.18 MB / 0.6544 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.007034/0.6804, allocations: 5.043 MB / 0.8925 GB, free: 5.875 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.6829, allocations: 1.516 MB / 0.894 GB, free: 4.285 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007813/0.6837, allocations: 483.6 kB / 0.8945 GB, free: 3.809 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000693/0.6844, allocations: 424.1 kB / 0.8949 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.6856, allocations: 0.688 MB / 0.8955 GB, free: 2.621 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=107): time 2.615e-06/0.6856, allocations: 4 kB / 0.8955 GB, free: 2.617 MB / 0.6544 GB Notification: Performance of matching and sorting (n=107): time 0.004227/0.6898, allocations: 1.664 MB / 0.8972 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/0.6899, allocations: 196.9 kB / 0.8974 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.6911, allocations: 0.8882 MB / 0.8982 GB, free: 15.78 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.6912, allocations: 53.7 kB / 0.8983 GB, free: 15.72 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.00044/0.6916, allocations: 0.5974 MB / 0.8989 GB, free: 15.11 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002753/0.6919, allocations: 354.9 kB / 0.8992 GB, free: 14.76 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/0.6922, allocations: 214.8 kB / 0.8994 GB, free: 14.55 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.6924, allocations: 345.9 kB / 0.8997 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007462/0.6931, allocations: 398.4 kB / 0.9001 GB, free: 13.81 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009364/0.6941, allocations: 0.5707 MB / 0.9007 GB, free: 13.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.6957, allocations: 0.9605 MB / 0.9016 GB, free: 12.19 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.6957, allocations: 0 / 0.9016 GB, free: 12.19 MB / 0.67 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00265/0.6984, allocations: 1.227 MB / 0.9028 GB, free: 10.95 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.6984, allocations: 11.92 kB / 0.9028 GB, free: 10.94 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.6984, allocations: 4 kB / 0.9028 GB, free: 10.94 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005715/0.699, allocations: 85.19 kB / 0.9029 GB, free: 10.85 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.7001, allocations: 255.7 kB / 0.9031 GB, free: 10.6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.702, allocations: 1.656 MB / 0.9048 GB, free: 8.801 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.7031, allocations: 134.9 kB / 0.9049 GB, free: 8.668 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.962e-05/0.7032, allocations: 55.91 kB / 0.9049 GB, free: 8.613 MB / 0.67 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.0005934/0.7038, allocations: 343.2 kB / 0.9053 GB, free: 8.27 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.704, allocations: 118.6 kB / 0.9054 GB, free: 8.152 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002951/0.707, allocations: 1.433 MB / 0.9068 GB, free: 6.711 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.707, allocations: 12 kB / 0.9068 GB, free: 6.699 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.707, allocations: 3.938 kB / 0.9068 GB, free: 6.695 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.7071, allocations: 7.969 kB / 0.9068 GB, free: 6.688 MB / 0.67 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.004608/0.7117, allocations: 2.868 MB / 0.9096 GB, free: 3.738 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.7117, allocations: 4 kB / 0.9096 GB, free: 3.734 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009407/0.7126, allocations: 223.7 kB / 0.9098 GB, free: 3.516 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004081/0.7131, allocations: 68.78 kB / 0.9099 GB, free: 3.445 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.009e-05/0.7132, allocations: 35.97 kB / 0.9099 GB, free: 3.41 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/0.7149, allocations: 1.67 MB / 0.9115 GB, free: 1.586 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.7149, allocations: 0 / 0.9115 GB, free: 1.586 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.7175, allocations: 1.326 MB / 0.9128 GB, free: 248 kB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006281/0.7182, allocations: 351.3 kB / 0.9132 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.7183, allocations: 31.94 kB / 0.9132 GB, free: 15.84 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000871/0.7192, allocations: 79.98 kB / 0.9133 GB, free: 15.77 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.7194, allocations: 92.81 kB / 0.9134 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7195, allocations: 47.97 kB / 0.9134 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007779/0.7203, allocations: 0.615 MB / 0.914 GB, free: 15 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7203, allocations: 4 kB / 0.914 GB, free: 15 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001109/0.7214, allocations: 494.7 kB / 0.9145 GB, free: 14.51 MB / 0.6856 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.001466/0.7229, allocations: 0.7073 MB / 0.9152 GB, free: 14 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002107/0.725, allocations: 1.151 MB / 0.9163 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.725, allocations: 0.8125 kB / 0.9163 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.7261, allocations: 0.6797 MB / 0.917 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.728, allocations: 0.5089 MB / 0.9175 GB, free: 11.66 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.7322, allocations: 2.443 MB / 0.9199 GB, free: 9.184 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.7328, allocations: 1.208 MB / 0.921 GB, free: 7.945 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001037/0.7339, allocations: 389.8 kB / 0.9214 GB, free: 7.562 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.7342, allocations: 139.4 kB / 0.9215 GB, free: 7.43 MB / 0.6856 GB Notification: Performance of SimCode: time 4.51e-07/0.7342, allocations: 0 / 0.9215 GB, free: 7.43 MB / 0.6856 GB Notification: Performance of Templates: time 0.0443/0.7785, allocations: 23.97 MB / 0.945 GB, free: 15.8 MB / 0.7169 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)