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.005368/0.005368, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001309/0.00131, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00215/0.00215, allocations: 300.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9321/0.9321, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 103.8 kB / 0.681 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4073, allocations: 86.99 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1707/0.5781, allocations: 176 MB / 0.9378 GB, free: 3.156 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01665/0.5948, allocations: 12.72 MB / 0.9502 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.5961, allocations: 31.81 kB / 0.9503 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001474/0.5977, allocations: 444.6 kB / 0.9507 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.003068/0.6008, allocations: 0.971 MB / 0.9516 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004607/0.6054, allocations: 1.869 MB / 0.9535 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003007/0.6084, allocations: 2.419 MB / 0.9558 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.404/1.012, allocations: 1.623 MB / 0.9574 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/1.017, allocations: 1.401 MB / 0.9588 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/1.019, allocations: 0.8724 MB / 0.9596 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0003817/1.019, allocations: 171.3 kB / 0.9598 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/1.022, allocations: 1.421 MB / 0.9612 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005448/1.023, allocations: 495.9 kB / 0.9617 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001071/1.024, allocations: 0.8485 MB / 0.9625 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.005399/1.029, allocations: 2.771 MB / 0.9652 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/1.029, allocations: 0.9062 kB / 0.9652 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/1.029, allocations: 1.125 kB / 0.9652 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.597e-05/1.029, allocations: 0.875 kB / 0.9652 GB, free: 3.086 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.003948/1.033, allocations: 2.012 MB / 0.9672 GB, free: 18.1 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/1.033, allocations: 9.625 kB / 0.9672 GB, free: 18.1 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/1.033, allocations: 203.4 kB / 0.9674 GB, free: 18.06 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002633/1.036, allocations: 403.4 kB / 0.9677 GB, free: 17.97 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/1.038, allocations: 1.038 MB / 0.9688 GB, free: 17.61 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.34e-05/1.038, allocations: 104.7 kB / 0.9689 GB, free: 17.61 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/1.038, allocations: 131.4 kB / 0.969 GB, free: 17.61 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002268/1.04, allocations: 1.52 MB / 0.9705 GB, free: 17.38 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/1.04, allocations: 5.969 kB / 0.9705 GB, free: 17.38 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/1.04, allocations: 61.72 kB / 0.9705 GB, free: 17.38 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/1.04, allocations: 33.94 kB / 0.9706 GB, free: 17.38 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002201/1.043, allocations: 1.581 MB / 0.9721 GB, free: 17.37 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.006208/1.049, allocations: 5.029 MB / 0.977 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/1.051, allocations: 1.521 MB / 0.9785 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000703/1.052, allocations: 481.6 kB / 0.979 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007081/1.053, allocations: 429.5 kB / 0.9794 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/1.054, allocations: 0.6926 MB / 0.98 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.996e-06/1.054, allocations: 3.344 kB / 0.9801 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.00393/1.058, allocations: 1.666 MB / 0.9817 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.058, allocations: 195.4 kB / 0.9819 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/1.059, allocations: 0.8912 MB / 0.9827 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.000133/1.059, allocations: 49.89 kB / 0.9828 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003877/1.059, allocations: 0.5923 MB / 0.9834 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/1.06, allocations: 356.3 kB / 0.9837 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/1.06, allocations: 198.4 kB / 0.9839 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000114/1.06, allocations: 343.7 kB / 0.9842 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/1.061, allocations: 376.1 kB / 0.9846 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007581/1.061, allocations: 0.5623 MB / 0.9851 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/1.063, allocations: 0.9335 MB / 0.986 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/1.063, allocations: 4.188 kB / 0.986 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002426/1.065, allocations: 1.185 MB / 0.9872 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/1.065, allocations: 8.438 kB / 0.9872 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.065, allocations: 3.406 kB / 0.9872 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005852/1.066, allocations: 89.5 kB / 0.9873 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/1.067, allocations: 243.4 kB / 0.9875 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/1.069, allocations: 1.647 MB / 0.9891 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/1.07, allocations: 141.5 kB / 0.9893 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/1.07, allocations: 42.06 kB / 0.9893 GB, free: 11.02 MB / 0.7325 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.0008782/1.071, allocations: 340.8 kB / 0.9896 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/1.071, allocations: 128.6 kB / 0.9898 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/1.074, allocations: 1.429 MB / 0.9912 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/1.074, allocations: 11.45 kB / 0.9912 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/1.074, allocations: 0.7188 kB / 0.9912 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/1.074, allocations: 5.531 kB / 0.9912 GB, free: 10.73 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 postOpt removeSimpleEquations (simulation): time 0.004442/1.079, allocations: 2.881 MB / 0.994 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/1.079, allocations: 1.094 kB / 0.994 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009362/1.08, allocations: 219.2 kB / 0.9942 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000423/1.08, allocations: 71.31 kB / 0.9943 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/1.08, allocations: 35.5 kB / 0.9943 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/1.082, allocations: 1.675 MB / 0.9959 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/1.082, allocations: 6.422 kB / 0.9959 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/1.084, allocations: 1.315 MB / 0.9972 GB, free: 8.602 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005468/1.085, allocations: 364.8 kB / 0.9976 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/1.085, allocations: 23.09 kB / 0.9976 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008967/1.086, allocations: 82.73 kB / 0.9977 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/1.086, allocations: 84.38 kB / 0.9978 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.111e-05/1.086, allocations: 58.7 kB / 0.9978 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008211/1.087, allocations: 0.6177 MB / 0.9984 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.11e-07/1.087, allocations: 0.8125 kB / 0.9984 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001301/1.089, allocations: 478.7 kB / 0.9989 GB, free: 8.238 MB / 0.7325 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.004144/1.093, allocations: 2.48 MB / 1.001 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002223/1.095, allocations: 1.119 MB / 1.002 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/1.095, allocations: 3.219 kB / 1.002 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001096/1.096, allocations: 0.6739 MB / 1.003 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/1.098, allocations: 0.5202 MB / 1.004 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/1.114, allocations: 8.992 MB / 1.012 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/1.115, allocations: 1.212 MB / 1.014 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001654/1.117, allocations: 385.9 kB / 1.014 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008949/1.117, allocations: 0.5727 MB / 1.014 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of SimCode: time 1.373e-06/1.117, allocations: 0 / 1.014 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06692/1.184, allocations: 34.08 MB / 1.048 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.78, allocations: 9.031 kB / 1.048 GB, free: 12.94 MB / 0.7637 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)