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.001163/0.001163, allocations: 116.9 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.001289/0.00129, allocations: 192.8 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002923/0.002923, allocations: 284.3 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9512/0.9512, allocations: 169.2 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 93.81 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1775, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4685/0.646, allocations: 176 MB / 0.8535 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01536/0.6614, allocations: 12.74 MB / 0.8659 GB, free: 1.617 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.6625, allocations: 31.81 kB / 0.866 GB, free: 1.586 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.6638, allocations: 444.6 kB / 0.8664 GB, free: 1.148 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.6663, allocations: 0.9713 MB / 0.8674 GB, free: 184 kB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004116/0.6704, allocations: 1.855 MB / 0.8692 GB, free: 14.33 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.002571/0.673, allocations: 2.408 MB / 0.8715 GB, free: 11.92 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.6749, allocations: 1.627 MB / 0.8731 GB, free: 10.24 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003143/0.6781, allocations: 1.399 MB / 0.8745 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009414/0.679, allocations: 0.8712 MB / 0.8753 GB, free: 7.996 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002087/0.6793, allocations: 172 kB / 0.8755 GB, free: 7.828 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.6817, allocations: 1.423 MB / 0.8769 GB, free: 6.402 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004047/0.6821, allocations: 482.6 kB / 0.8773 GB, free: 5.93 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0007747/0.6829, allocations: 0.859 MB / 0.8782 GB, free: 5.066 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.686, allocations: 2.756 MB / 0.8809 GB, free: 2.305 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.686, allocations: 4 kB / 0.8809 GB, free: 2.301 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6861, allocations: 3.938 kB / 0.8809 GB, free: 2.297 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.713e-05/0.6861, allocations: 0 / 0.8809 GB, free: 2.297 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.003204/0.6893, allocations: 2.009 MB / 0.8828 GB, free: 232 kB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.6893, allocations: 12.03 kB / 0.8828 GB, free: 220 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00258/0.6919, allocations: 409.5 kB / 0.8832 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.6935, allocations: 1.027 MB / 0.8842 GB, free: 14.74 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.496e-05/0.6936, allocations: 98.72 kB / 0.8843 GB, free: 14.64 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.6938, allocations: 132 kB / 0.8845 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.6964, allocations: 1.52 MB / 0.8859 GB, free: 12.92 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6964, allocations: 0 / 0.8859 GB, free: 12.92 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.6966, allocations: 64 kB / 0.886 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.6966, allocations: 32 kB / 0.886 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.6992, allocations: 1.583 MB / 0.8876 GB, free: 11.23 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.006944/0.7062, allocations: 5.046 MB / 0.8925 GB, free: 5.93 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/0.7088, allocations: 1.512 MB / 0.894 GB, free: 4.344 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008159/0.7096, allocations: 479.6 kB / 0.8944 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007426/0.7104, allocations: 428.1 kB / 0.8949 GB, free: 3.383 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.7116, allocations: 0.6918 MB / 0.8955 GB, free: 2.676 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=107): time 3.256e-06/0.7116, allocations: 0 / 0.8955 GB, free: 2.676 MB / 0.6544 GB Notification: Performance of matching and sorting (n=107): time 0.00427/0.7159, allocations: 1.664 MB / 0.8972 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.716, allocations: 200.8 kB / 0.8973 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.7172, allocations: 0.8959 MB / 0.8982 GB, free: 15.82 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.7173, allocations: 49.7 kB / 0.8983 GB, free: 15.77 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/0.7178, allocations: 0.5935 MB / 0.8988 GB, free: 15.17 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002982/0.7181, allocations: 354.9 kB / 0.8992 GB, free: 14.82 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.7185, allocations: 210.8 kB / 0.8994 GB, free: 14.61 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.7186, allocations: 349.9 kB / 0.8997 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007793/0.7194, allocations: 398.4 kB / 0.9001 GB, free: 13.87 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009571/0.7204, allocations: 0.5629 MB / 0.9007 GB, free: 13.26 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.722, allocations: 0.9605 MB / 0.9016 GB, free: 12.25 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.7221, allocations: 3.938 kB / 0.9016 GB, free: 12.25 MB / 0.67 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002795/0.7249, allocations: 1.235 MB / 0.9028 GB, free: 11 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.7249, allocations: 10.12 kB / 0.9028 GB, free: 11 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.7249, allocations: 4.406 kB / 0.9028 GB, free: 10.99 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005921/0.7255, allocations: 92.75 kB / 0.9029 GB, free: 10.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.7266, allocations: 255.7 kB / 0.9031 GB, free: 10.65 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/0.7288, allocations: 1.645 MB / 0.9047 GB, free: 8.859 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.7299, allocations: 134.8 kB / 0.9049 GB, free: 8.727 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.73, allocations: 59.83 kB / 0.9049 GB, free: 8.668 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.0006591/0.7307, allocations: 347.5 kB / 0.9053 GB, free: 8.32 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002448/0.7309, allocations: 122.6 kB / 0.9054 GB, free: 8.199 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.734, allocations: 1.429 MB / 0.9068 GB, free: 6.762 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.7341, allocations: 12 kB / 0.9068 GB, free: 6.75 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7341, allocations: 0 / 0.9068 GB, free: 6.75 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.7341, allocations: 7.922 kB / 0.9068 GB, free: 6.742 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.004779/0.7389, allocations: 2.875 MB / 0.9096 GB, free: 3.785 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.7389, allocations: 4 kB / 0.9096 GB, free: 3.781 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.7399, allocations: 215.7 kB / 0.9098 GB, free: 3.57 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.7404, allocations: 76.73 kB / 0.9099 GB, free: 3.492 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.578e-05/0.7405, allocations: 35.97 kB / 0.9099 GB, free: 3.457 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002004/0.7425, allocations: 1.67 MB / 0.9116 GB, free: 1.633 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.7425, allocations: 0 / 0.9116 GB, free: 1.633 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/0.7453, allocations: 1.326 MB / 0.9128 GB, free: 296 kB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000627/0.7459, allocations: 351.2 kB / 0.9132 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.7461, allocations: 24 kB / 0.9132 GB, free: 15.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009178/0.7471, allocations: 77.14 kB / 0.9133 GB, free: 15.83 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.7472, allocations: 92.81 kB / 0.9134 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.7474, allocations: 51.95 kB / 0.9134 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008314/0.7482, allocations: 0.6111 MB / 0.914 GB, free: 15.06 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7482, allocations: 4 kB / 0.914 GB, free: 15.06 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0012/0.7494, allocations: 498.7 kB / 0.9145 GB, free: 14.57 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.001509/0.7509, allocations: 0.7045 MB / 0.9152 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002209/0.7532, allocations: 1.152 MB / 0.9163 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.7532, allocations: 0 / 0.9163 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.7543, allocations: 0.6797 MB / 0.917 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.7564, allocations: 0.5269 MB / 0.9175 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.761, allocations: 2.427 MB / 0.9199 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007567/0.7618, allocations: 1.212 MB / 0.921 GB, free: 8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001232/0.7631, allocations: 389.7 kB / 0.9214 GB, free: 7.617 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.7634, allocations: 139.4 kB / 0.9215 GB, free: 7.484 MB / 0.6856 GB Notification: Performance of SimCode: time 8.72e-07/0.7634, allocations: 0 / 0.9215 GB, free: 7.484 MB / 0.6856 GB Notification: Performance of Templates: time 0.03926/0.8027, allocations: 23.98 MB / 0.945 GB, free: 15.84 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)