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: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00106/0.00106, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.335/1.335, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002019/0.002019, allocations: 286.2 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9595/0.9595, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 92.34 kB / 0.5948 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1466, allocations: 86.98 MB / 0.6797 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.471/0.6177, allocations: 173.7 MB / 0.8493 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01515/0.6328, allocations: 12.58 MB / 0.8616 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.634, allocations: 35.25 kB / 0.8616 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.6352, allocations: 374.2 kB / 0.862 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.6378, allocations: 0.8761 MB / 0.8629 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003997/0.6419, allocations: 1.689 MB / 0.8645 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002439/0.6443, allocations: 2.41 MB / 0.8669 GB, free: 228 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001914/0.6462, allocations: 1.622 MB / 0.8684 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.6503, allocations: 1.396 MB / 0.8698 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009789/0.6513, allocations: 0.8876 MB / 0.8707 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.6515, allocations: 173.5 kB / 0.8708 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.6539, allocations: 1.427 MB / 0.8722 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003906/0.6543, allocations: 0.4899 MB / 0.8727 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007371/0.6551, allocations: 0.8472 MB / 0.8735 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.6582, allocations: 2.779 MB / 0.8763 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.6582, allocations: 3.938 kB / 0.8763 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of FrontEnd: time 9.32e-07/0.6582, allocations: 0 / 0.8763 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.542e-05/0.6583, allocations: 4 kB / 0.8763 GB, free: 10.14 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.00326/0.6615, allocations: 2.001 MB / 0.8782 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.6616, allocations: 14.03 kB / 0.8782 GB, free: 8.625 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002314/0.6618, allocations: 206.1 kB / 0.8784 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002673/0.6645, allocations: 406.8 kB / 0.8788 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.6659, allocations: 0.9926 MB / 0.8798 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-05/0.666, allocations: 105.4 kB / 0.8799 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.6662, allocations: 132.1 kB / 0.88 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.6687, allocations: 1.523 MB / 0.8815 GB, free: 6.422 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.6687, allocations: 2.719 kB / 0.8815 GB, free: 6.422 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.6689, allocations: 56.88 kB / 0.8816 GB, free: 6.379 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.6689, allocations: 39.25 kB / 0.8816 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.6714, allocations: 1.584 MB / 0.8831 GB, free: 5.613 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.006911/0.6783, allocations: 5.071 MB / 0.8881 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/0.6809, allocations: 1.516 MB / 0.8896 GB, free: 436 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000845/0.6817, allocations: 490.9 kB / 0.89 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007671/0.6825, allocations: 429.3 kB / 0.8905 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001295/0.6838, allocations: 0.6918 MB / 0.8911 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 3.166e-06/0.6838, allocations: 0 / 0.8911 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.004516/0.6884, allocations: 1.661 MB / 0.8928 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.6885, allocations: 192.9 kB / 0.8929 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.6897, allocations: 0.8961 MB / 0.8938 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.6899, allocations: 49.7 kB / 0.8939 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.6904, allocations: 0.5897 MB / 0.8944 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.6907, allocations: 358.8 kB / 0.8948 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003131/0.691, allocations: 198.5 kB / 0.895 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.6911, allocations: 345.9 kB / 0.8953 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007395/0.6919, allocations: 377.8 kB / 0.8957 GB, free: 10 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009461/0.6928, allocations: 0.5671 MB / 0.8962 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.6945, allocations: 0.9254 MB / 0.8971 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.6945, allocations: 4 kB / 0.8971 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002674/0.6972, allocations: 1.184 MB / 0.8983 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.6972, allocations: 10.03 kB / 0.8983 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.6972, allocations: 4.406 kB / 0.8983 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006221/0.6979, allocations: 84.77 kB / 0.8984 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.699, allocations: 247.7 kB / 0.8986 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.7011, allocations: 1.651 MB / 0.9002 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.7022, allocations: 139 kB / 0.9003 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-05/0.7023, allocations: 52.09 kB / 0.9004 GB, free: 4.879 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: 15 (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 (123): * Single equations (assignments): 122 * 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.0006186/0.7029, allocations: 350 kB / 0.9007 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.7032, allocations: 130.4 kB / 0.9009 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.7063, allocations: 1.433 MB / 0.9023 GB, free: 2.961 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.7064, allocations: 12 kB / 0.9023 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.7064, allocations: 0 / 0.9023 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.7064, allocations: 7.969 kB / 0.9023 GB, free: 2.941 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.004562/0.711, allocations: 2.878 MB / 0.9051 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.711, allocations: 4 kB / 0.9051 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.712, allocations: 215.7 kB / 0.9053 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004757/0.7125, allocations: 76.72 kB / 0.9054 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.967e-05/0.7126, allocations: 39.91 kB / 0.9054 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.7144, allocations: 1.674 MB / 0.907 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7145, allocations: 0 / 0.907 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.7171, allocations: 1.32 MB / 0.9083 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.7177, allocations: 363.1 kB / 0.9087 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.7178, allocations: 20 kB / 0.9087 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.7189, allocations: 101.4 kB / 0.9088 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.719, allocations: 88.88 kB / 0.9089 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.7192, allocations: 51.95 kB / 0.9089 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008063/0.72, allocations: 0.6189 MB / 0.9095 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.21e-07/0.72, allocations: 0 / 0.9095 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001204/0.7212, allocations: 482.7 kB / 0.91 GB, free: 10.75 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.004383/0.7256, allocations: 2.481 MB / 0.9124 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003365/0.729, allocations: 1.433 MB / 0.9138 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.729, allocations: 0 / 0.9138 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.7302, allocations: 0.6835 MB / 0.9145 GB, free: 6.285 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.7324, allocations: 0.5222 MB / 0.915 GB, free: 5.797 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/0.7498, allocations: 10.09 MB / 0.9248 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008374/0.7507, allocations: 1.217 MB / 0.926 GB, free: 10.08 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001541/0.7522, allocations: 393.7 kB / 0.9264 GB, free: 9.695 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007593/0.753, allocations: 0.5734 MB / 0.927 GB, free: 9.125 MB / 0.6387 GB Notification: Performance of SimCode: time 4.6e-07/0.753, allocations: 0 / 0.927 GB, free: 9.125 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05711/0.8101, allocations: 32.91 MB / 0.9591 GB, free: 8.777 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/0.8104, allocations: 302.5 kB / 0.9594 GB, free: 8.398 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/3.621, allocations: 6.188 kB / 0.9594 GB, free: 8.395 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)