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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.6928/0.6928, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009148/0.0009148, allocations: 174.5 kB / 187.2 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 221.3 MB / 441.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007763/0.0007763, allocations: 92.48 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001636/0.001636, allocations: 279.3 kB / 0.594 GB, free: 7.918 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.304e-05, allocations: 4 kB / 0.6835 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3222, allocations: 82.77 MB / 0.7644 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.4/3.722, allocations: 1.867 GB / 2.631 GB, free: 139.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/3.722, allocations: 99.61 kB / 2.631 GB, free: 139.6 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.013/4.735, allocations: 409.5 MB / 3.031 GB, free: 10.88 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.613e-06/4.735, allocations: 0 / 3.031 GB, free: 10.88 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001175/4.735, allocations: 39.98 kB / 3.031 GB, free: 10.84 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.003097/4.739, allocations: 1.616 MB / 3.033 GB, free: 9.168 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/4.739, allocations: 16.03 kB / 3.033 GB, free: 9.152 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000366/4.739, allocations: 194.3 kB / 3.033 GB, free: 8.953 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002527/4.742, allocations: 386.4 kB / 3.033 GB, free: 8.574 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/4.744, allocations: 1.18 MB / 3.035 GB, free: 7.348 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/4.744, allocations: 102.6 kB / 3.035 GB, free: 7.246 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/4.744, allocations: 124 kB / 3.035 GB, free: 7.125 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/4.746, allocations: 1.39 MB / 3.036 GB, free: 5.656 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/4.746, allocations: 0 / 3.036 GB, free: 5.656 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/4.747, allocations: 52 kB / 3.036 GB, free: 5.605 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/4.747, allocations: 36 kB / 3.036 GB, free: 5.57 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/4.748, allocations: 1.454 MB / 3.038 GB, free: 4.109 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.3284/5.077, allocations: 4.882 MB / 3.042 GB, free: 142.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/5.079, allocations: 1.396 MB / 3.044 GB, free: 142.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006338/5.079, allocations: 434.9 kB / 3.044 GB, free: 142.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005981/5.08, allocations: 422.9 kB / 3.045 GB, free: 142.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009414/5.081, allocations: 0.5966 MB / 3.045 GB, free: 142 MB / 0.698 GB Notification: Performance of pre-optimization done (n=98): time 3.196e-06/5.081, allocations: 3.562 kB / 3.045 GB, free: 142 MB / 0.698 GB Notification: Performance of matching and sorting (n=98): time 0.002332/5.083, allocations: 1.019 MB / 3.046 GB, free: 142 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/5.083, allocations: 250.5 kB / 3.046 GB, free: 141.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/5.085, allocations: 0.7953 MB / 3.047 GB, free: 141.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/5.085, allocations: 47.67 kB / 3.047 GB, free: 141.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/5.085, allocations: 0.563 MB / 3.048 GB, free: 141.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/5.085, allocations: 334.9 kB / 3.048 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/5.085, allocations: 20.59 kB / 3.048 GB, free: 141.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.647e-05/5.085, allocations: 338.5 kB / 3.048 GB, free: 140.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/5.086, allocations: 326.5 kB / 3.049 GB, free: 140.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005674/5.087, allocations: 0.5162 MB / 3.049 GB, free: 140.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005516/5.087, allocations: 410.4 kB / 3.05 GB, free: 140.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/5.087, allocations: 2.094 kB / 3.05 GB, free: 140.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001896/5.089, allocations: 1.071 MB / 3.051 GB, free: 140.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/5.089, allocations: 11.41 kB / 3.051 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/5.089, allocations: 3.531 kB / 3.051 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005231/5.09, allocations: 86.17 kB / 3.051 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009398/5.091, allocations: 231 kB / 3.051 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/5.092, allocations: 1.535 MB / 3.053 GB, free: 139.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008838/5.093, allocations: 139.6 kB / 3.053 GB, free: 139.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/5.093, allocations: 41.55 kB / 3.053 GB, free: 139.2 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001884/5.093, allocations: 163.1 kB / 3.053 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/5.093, allocations: 114.7 kB / 3.053 GB, free: 139 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/5.096, allocations: 1.323 MB / 3.054 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/5.096, allocations: 11.38 kB / 3.054 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/5.096, allocations: 0 / 3.054 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/5.096, allocations: 3.797 kB / 3.054 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/5.099, allocations: 2.668 MB / 3.057 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/5.099, allocations: 0 / 3.057 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008698/5.1, allocations: 217.2 kB / 3.057 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/5.101, allocations: 88.52 kB / 3.057 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.203e-05/5.101, allocations: 30.64 kB / 3.057 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/5.102, allocations: 1.558 MB / 3.059 GB, free: 137.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/5.102, allocations: 0 / 3.059 GB, free: 137.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/5.104, allocations: 1.192 MB / 3.06 GB, free: 137 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005226/5.104, allocations: 364 kB / 3.06 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/5.105, allocations: 27.98 kB / 3.06 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008236/5.105, allocations: 102.2 kB / 3.06 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/5.106, allocations: 75.11 kB / 3.06 GB, free: 136.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.282e-05/5.106, allocations: 49.67 kB / 3.061 GB, free: 136.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006585/5.106, allocations: 0.6288 MB / 3.061 GB, free: 136.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.41e-07/5.106, allocations: 0 / 3.061 GB, free: 136.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001536/5.108, allocations: 0.6193 MB / 3.062 GB, free: 136.7 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0043/5.112, allocations: 3.51 MB / 3.065 GB, free: 135.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0014/5.114, allocations: 1.002 MB / 3.066 GB, free: 135.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/5.114, allocations: 1.875 kB / 3.066 GB, free: 135.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007484/5.114, allocations: 0.616 MB / 3.067 GB, free: 135.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/5.116, allocations: 466.8 kB / 3.067 GB, free: 135.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/5.12, allocations: 2.171 MB / 3.069 GB, free: 135 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004732/5.121, allocations: 1.204 MB / 3.07 GB, free: 134.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001225/5.122, allocations: 377.8 kB / 3.071 GB, free: 134.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/5.123, allocations: 0.5294 MB / 3.071 GB, free: 134.2 MB / 0.698 GB Notification: Performance of SimCode: time 4.81e-07/5.123, allocations: 2.781 kB / 3.071 GB, free: 134.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07114/5.194, allocations: 57.42 MB / 3.127 GB, free: 132.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/5.194, allocations: 239.5 kB / 3.128 GB, free: 132.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.592/8.787, allocations: 7.5 kB / 3.128 GB, free: 132.2 MB / 0.698 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/linux/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)