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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.00101/0.00101, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001296/0.001296, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 390.4 MB / 0.6655 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005839/0.0005842, allocations: 8 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6087/0.6093, allocations: 142.3 MB / 0.9538 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.2682/0.8776, allocations: 278.8 MB / 1.226 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.03107/0.9087, allocations: 24.18 MB / 1.25 GB, free: 472 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004042/0.9128, allocations: 103.3 kB / 1.25 GB, free: 368 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.5474/1.46, allocations: 1.198 MB / 1.251 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0122/1.472, allocations: 4.367 MB / 1.255 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005809/1.478, allocations: 1.966 MB / 1.257 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01346/1.492, allocations: 10.44 MB / 1.267 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004694/1.496, allocations: 2.542 MB / 1.27 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007994/1.504, allocations: 3.193 MB / 1.273 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005846/1.51, allocations: 2.82 MB / 1.276 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001229/1.512, allocations: 153.1 kB / 1.276 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008387/1.52, allocations: 2.419 MB / 1.278 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002673/1.523, allocations: 1.43 MB / 1.28 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002789/1.526, allocations: 0.7593 MB / 1.28 GB, free: 28.03 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.007242/1.533, allocations: 4.742 MB / 1.285 GB, free: 27.66 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/1.533, allocations: 0 / 1.285 GB, free: 27.66 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.204e-06/1.533, allocations: 4 kB / 1.285 GB, free: 27.66 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001336/1.533, allocations: 0 / 1.285 GB, free: 27.66 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.006135/1.539, allocations: 3.479 MB / 1.288 GB, free: 25.93 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/1.539, allocations: 12.61 kB / 1.288 GB, free: 25.93 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000907/1.54, allocations: 384.7 kB / 1.289 GB, free: 25.88 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005594/1.546, allocations: 0.947 MB / 1.29 GB, free: 25.67 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004821/1.551, allocations: 2.395 MB / 1.292 GB, free: 25.11 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/1.551, allocations: 271.3 kB / 1.292 GB, free: 25.03 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004764/1.551, allocations: 292.5 kB / 1.293 GB, free: 25.03 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005459/1.557, allocations: 3.358 MB / 1.296 GB, free: 24.76 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.223e-05/1.557, allocations: 0 / 1.296 GB, free: 24.76 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/1.557, allocations: 115.8 kB / 1.296 GB, free: 24.76 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-05/1.557, allocations: 116.3 kB / 1.296 GB, free: 24.75 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004467/1.562, allocations: 2.796 MB / 1.299 GB, free: 24.72 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.01454/1.576, allocations: 13.29 MB / 1.312 GB, free: 17.4 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/1.579, allocations: 1.72 MB / 1.313 GB, free: 17.34 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/1.58, allocations: 1.118 MB / 1.315 GB, free: 17.33 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004271/1.58, allocations: 336.5 kB / 1.315 GB, free: 17.04 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.58, allocations: 59.31 kB / 1.315 GB, free: 17 MB / 1.014 GB Notification: Performance of pre-optimization done (n=186): time 3.677e-06/1.58, allocations: 0 / 1.315 GB, free: 17 MB / 1.014 GB Notification: Performance of matching and sorting (n=186): time 0.004493/1.585, allocations: 2.787 MB / 1.318 GB, free: 16.77 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/1.585, allocations: 75.8 kB / 1.318 GB, free: 16.71 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002346/1.587, allocations: 1.972 MB / 1.32 GB, free: 16.48 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002351/1.588, allocations: 67.39 kB / 1.32 GB, free: 16.45 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007517/1.588, allocations: 1.411 MB / 1.321 GB, free: 15.93 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000606/1.589, allocations: 0.66 MB / 1.322 GB, free: 15.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/1.589, allocations: 41.59 kB / 1.322 GB, free: 15.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000159/1.589, allocations: 385.1 kB / 1.322 GB, free: 15.2 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/1.59, allocations: 0.8026 MB / 1.323 GB, free: 15.19 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/1.592, allocations: 1.44 MB / 1.324 GB, free: 14.49 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/1.593, allocations: 1.062 MB / 1.325 GB, free: 14.45 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.779e-05/1.593, allocations: 3.469 kB / 1.325 GB, free: 14.45 MB / 1.014 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003637/1.597, allocations: 2.5 MB / 1.328 GB, free: 14.23 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002036/1.597, allocations: 482.8 kB / 1.328 GB, free: 13.67 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/1.597, allocations: 13.41 kB / 1.328 GB, free: 13.67 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/1.597, allocations: 22.38 kB / 1.328 GB, free: 13.67 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00235/1.6, allocations: 0.5645 MB / 1.329 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/1.602, allocations: 4.154 MB / 1.333 GB, free: 9.559 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/1.605, allocations: 409.2 kB / 1.333 GB, free: 9.434 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/1.605, allocations: 87.89 kB / 1.333 GB, free: 9.434 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/1.605, allocations: 5.703 kB / 1.333 GB, free: 9.434 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003104/1.608, allocations: 2.238 MB / 1.336 GB, free: 9.375 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/1.608, allocations: 16.23 kB / 1.336 GB, free: 9.371 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/1.608, allocations: 25.69 kB / 1.336 GB, free: 9.371 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/1.61, allocations: 485.5 kB / 1.336 GB, free: 9.367 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.848e-05/1.61, allocations: 30.58 kB / 1.336 GB, free: 9.367 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/1.613, allocations: 379.5 kB / 1.336 GB, free: 9.262 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/1.613, allocations: 91.91 kB / 1.337 GB, free: 9.258 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001558/1.615, allocations: 0.8661 MB / 1.337 GB, free: 9.062 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/1.615, allocations: 270 kB / 1.338 GB, free: 8.926 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003122/1.618, allocations: 2.16 MB / 1.34 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/1.618, allocations: 16.69 kB / 1.34 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.618, allocations: 0 / 1.34 GB, free: 8.594 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002315/1.621, allocations: 1.921 MB / 1.342 GB, free: 8.109 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007264/1.628, allocations: 5.243 MB / 1.347 GB, free: 6.531 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/1.628, allocations: 2.156 kB / 1.347 GB, free: 6.531 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00214/1.63, allocations: 0.4971 MB / 1.347 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.622e-05/1.63, allocations: 16.12 kB / 1.347 GB, free: 6.445 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/1.63, allocations: 51.77 kB / 1.347 GB, free: 6.441 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/1.632, allocations: 4.125 MB / 1.351 GB, free: 18.31 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.632, allocations: 7.688 kB / 1.351 GB, free: 18.31 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004082/1.636, allocations: 3.284 MB / 1.355 GB, free: 17.51 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/1.637, allocations: 0.5719 MB / 1.355 GB, free: 17.19 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004689/1.638, allocations: 47.8 kB / 1.355 GB, free: 17.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.64, allocations: 249.4 kB / 1.355 GB, free: 17.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/1.64, allocations: 116.7 kB / 1.356 GB, free: 17.04 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/1.64, allocations: 70.97 kB / 1.356 GB, free: 17.03 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.00166/1.642, allocations: 1.319 MB / 1.357 GB, free: 16.66 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/1.642, allocations: 4 kB / 1.357 GB, free: 16.65 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003791/1.646, allocations: 1.726 MB / 1.359 GB, free: 16.4 MB / 1.029 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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004823/1.651, allocations: 4.114 MB / 1.363 GB, free: 15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005624/1.656, allocations: 3.347 MB / 1.366 GB, free: 14.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.656, allocations: 6.781 kB / 1.366 GB, free: 14.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001555/1.658, allocations: 1.043 MB / 1.367 GB, free: 14.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007918/1.666, allocations: 1.608 MB / 1.368 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0328/1.699, allocations: 19.38 MB / 1.387 GB, free: 13.06 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/1.701, allocations: 2.194 MB / 1.389 GB, free: 10.97 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.004228/1.705, allocations: 1.115 MB / 1.391 GB, free: 9.848 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001524/1.707, allocations: 1.28 MB / 1.392 GB, free: 9.547 MB / 1.045 GB Notification: Performance of SimCode: time 7.21e-07/1.707, allocations: 0 / 1.392 GB, free: 9.547 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1486/1.855, allocations: 78.15 MB / 1.468 GB, free: 12.46 MB / 1.123 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/1.855, allocations: 264 kB / 1.468 GB, free: 12.11 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.962/5.817, allocations: 4 kB / 1.468 GB, free: 12.1 MB / 1.123 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat does not exist to compare? outputFormat=mat