Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.001097/0.001097, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007938/0.007938, allocations: 174.4 kB / 16.27 MB, free: 6.652 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.269/2.269, allocations: 390.9 MB / 0.6664 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003231, allocations: 15.92 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5559/0.5563, allocations: 142.4 MB / 0.9552 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.284/0.8403, allocations: 298.8 MB / 1.247 GB, free: 3.477 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.5174/1.358, allocations: 25.72 MB / 1.272 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002935/1.361, allocations: 109.2 kB / 1.272 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003699/1.364, allocations: 1.539 MB / 1.274 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01277/1.377, allocations: 5.622 MB / 1.279 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005658/1.383, allocations: 2.378 MB / 1.281 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01239/1.395, allocations: 12.41 MB / 1.294 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003718/1.399, allocations: 2.991 MB / 1.297 GB, free: 17.85 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00896/1.408, allocations: 3.549 MB / 1.3 GB, free: 17.79 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004456/1.412, allocations: 2.942 MB / 1.303 GB, free: 17.77 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000359/1.413, allocations: 152.1 kB / 1.303 GB, free: 17.77 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008262/1.421, allocations: 5.279 MB / 1.308 GB, free: 17.72 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001365/1.423, allocations: 1.423 MB / 1.31 GB, free: 17.71 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002342/1.425, allocations: 1.881 MB / 1.311 GB, free: 17.68 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.008321/1.433, allocations: 6.751 MB / 1.318 GB, free: 17.3 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/1.433, allocations: 0 / 1.318 GB, free: 17.3 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.924e-06/1.433, allocations: 0 / 1.318 GB, free: 17.3 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.544e-05/1.433, allocations: 0 / 1.318 GB, free: 17.3 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.00558/1.439, allocations: 3.423 MB / 1.321 GB, free: 15.58 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/1.439, allocations: 9.281 kB / 1.321 GB, free: 15.58 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004516/1.439, allocations: 390.5 kB / 1.322 GB, free: 15.53 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005331/1.445, allocations: 0.9413 MB / 1.323 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/1.448, allocations: 2.269 MB / 1.325 GB, free: 14.68 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/1.448, allocations: 276.5 kB / 1.325 GB, free: 14.61 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000366/1.449, allocations: 283.3 kB / 1.325 GB, free: 14.61 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004641/1.453, allocations: 3.372 MB / 1.329 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.938e-05/1.453, allocations: 9.391 kB / 1.329 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/1.454, allocations: 114.6 kB / 1.329 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-05/1.454, allocations: 110.3 kB / 1.329 GB, free: 14.33 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003777/1.457, allocations: 2.801 MB / 1.332 GB, free: 14.18 MB / 1.014 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.01311/1.471, allocations: 13.26 MB / 1.345 GB, free: 4.992 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/1.473, allocations: 1.687 MB / 1.346 GB, free: 4.762 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/1.474, allocations: 1.11 MB / 1.347 GB, free: 4.609 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00044/1.475, allocations: 327.2 kB / 1.348 GB, free: 4.305 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/1.475, allocations: 60 kB / 1.348 GB, free: 4.266 MB / 1.014 GB Notification: Performance of pre-optimization done (n=182): time 3.717e-06/1.475, allocations: 0 / 1.348 GB, free: 4.266 MB / 1.014 GB Notification: Performance of matching and sorting (n=182): time 0.00413/1.479, allocations: 2.738 MB / 1.35 GB, free: 3.758 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/1.479, allocations: 75.28 kB / 1.35 GB, free: 3.691 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002072/1.481, allocations: 1.996 MB / 1.352 GB, free: 3.129 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/1.481, allocations: 68.48 kB / 1.352 GB, free: 3.098 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008071/1.482, allocations: 1.413 MB / 1.354 GB, free: 2.418 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005029/1.482, allocations: 0.639 MB / 1.354 GB, free: 1.949 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/1.483, allocations: 168.2 kB / 1.355 GB, free: 1.91 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.725e-05/1.483, allocations: 313 kB / 1.355 GB, free: 1.602 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/1.484, allocations: 0.8012 MB / 1.356 GB, free: 1.48 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/1.485, allocations: 1.418 MB / 1.357 GB, free: 0.668 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/1.488, allocations: 2.253 MB / 1.359 GB, free: 15.98 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/1.488, allocations: 2.594 kB / 1.359 GB, free: 15.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003339/1.491, allocations: 2.511 MB / 1.362 GB, free: 15.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002741/1.491, allocations: 490.2 kB / 1.362 GB, free: 14.94 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/1.492, allocations: 16.02 kB / 1.362 GB, free: 14.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/1.492, allocations: 28.47 kB / 1.362 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/1.494, allocations: 0.5551 MB / 1.363 GB, free: 14.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/1.496, allocations: 4.148 MB / 1.367 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/1.499, allocations: 400.5 kB / 1.367 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/1.499, allocations: 95.83 kB / 1.367 GB, free: 10.51 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/1.499, allocations: 2.156 kB / 1.367 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00285/1.502, allocations: 2.224 MB / 1.369 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/1.502, allocations: 14.34 kB / 1.369 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/1.502, allocations: 24.47 kB / 1.369 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/1.504, allocations: 472.8 kB / 1.37 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.426e-05/1.504, allocations: 35.28 kB / 1.37 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00274/1.507, allocations: 376.8 kB / 1.37 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/1.507, allocations: 93.45 kB / 1.37 GB, free: 9.992 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001324/1.508, allocations: 0.8588 MB / 1.371 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/1.508, allocations: 276 kB / 1.372 GB, free: 9.562 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002941/1.511, allocations: 2.116 MB / 1.374 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/1.511, allocations: 15.06 kB / 1.374 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/1.511, allocations: 0 / 1.374 GB, free: 9.141 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002266/1.514, allocations: 1.893 MB / 1.375 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006774/1.52, allocations: 5.183 MB / 1.381 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/1.52, allocations: 4.719 kB / 1.381 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/1.523, allocations: 0.4973 MB / 1.381 GB, free: 6.992 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.441e-05/1.523, allocations: 11.94 kB / 1.381 GB, free: 6.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/1.523, allocations: 54.09 kB / 1.381 GB, free: 6.953 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001978/1.525, allocations: 4.123 MB / 1.385 GB, free: 2.723 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.525, allocations: 0 / 1.385 GB, free: 2.723 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004112/1.529, allocations: 3.234 MB / 1.388 GB, free: 412 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.53, allocations: 0.5635 MB / 1.389 GB, free: 15.85 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/1.53, allocations: 43.98 kB / 1.389 GB, free: 15.81 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/1.532, allocations: 252.2 kB / 1.389 GB, free: 15.56 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/1.533, allocations: 124.2 kB / 1.389 GB, free: 15.45 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/1.533, allocations: 67.95 kB / 1.389 GB, free: 15.38 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001687/1.534, allocations: 1.33 MB / 1.391 GB, free: 14.04 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.5e-07/1.534, allocations: 4 kB / 1.391 GB, free: 14.04 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003424/1.538, allocations: 1.714 MB / 1.392 GB, free: 12.32 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005071/1.543, allocations: 4.034 MB / 1.396 GB, free: 8.254 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005653/1.549, allocations: 3.321 MB / 1.399 GB, free: 5.055 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.549, allocations: 5.75 kB / 1.399 GB, free: 5.051 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001638/1.55, allocations: 1.025 MB / 1.4 GB, free: 4.07 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008566/1.559, allocations: 1.606 MB / 1.402 GB, free: 2.473 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03337/1.592, allocations: 24.76 MB / 1.426 GB, free: 7.98 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/1.594, allocations: 2.19 MB / 1.428 GB, free: 5.758 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.003587/1.598, allocations: 1.1 MB / 1.429 GB, free: 4.652 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/1.599, allocations: 1.255 MB / 1.431 GB, free: 3.398 MB / 1.076 GB Notification: Performance of SimCode: time 7.41e-07/1.599, allocations: 0 / 1.431 GB, free: 3.398 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7765/2.376, allocations: 73.67 MB / 1.503 GB, free: 10.75 MB / 1.154 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/2.376, allocations: 286.2 kB / 1.503 GB, free: 10.36 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.739/6.115, allocations: 0 / 1.503 GB, free: 10.36 MB / 1.154 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)