Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, 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.001985/0.001985, allocations: 189.4 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.452/1.452, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.09 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3282, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 1.137/1.466, allocations: 301.6 MB / 1.362 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.05096/1.517, allocations: 25.67 MB / 1.387 GB, free: 9.52 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005335/1.522, allocations: 114.6 kB / 1.387 GB, free: 9.52 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.006023/1.528, allocations: 1.585 MB / 1.389 GB, free: 9.031 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01898/1.547, allocations: 5.616 MB / 1.394 GB, free: 6.613 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.008631/1.556, allocations: 2.403 MB / 1.397 GB, free: 5.277 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01332/1.569, allocations: 8.909 MB / 1.406 GB, free: 476 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006514/1.576, allocations: 3.503 MB / 1.409 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0155/1.591, allocations: 4.163 MB / 1.413 GB, free: 12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007138/1.598, allocations: 3.146 MB / 1.416 GB, free: 10.23 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.001726/1.6, allocations: 358.9 kB / 1.416 GB, free: 10.23 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01258/1.613, allocations: 4.836 MB / 1.421 GB, free: 7.617 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.003896/1.617, allocations: 1.655 MB / 1.423 GB, free: 6.52 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.006967/1.624, allocations: 2.134 MB / 1.425 GB, free: 5.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01667/1.64, allocations: 6.997 MB / 1.432 GB, free: 14.53 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/1.64, allocations: 0 / 1.432 GB, free: 14.53 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.196e-06/1.64, allocations: 4 kB / 1.432 GB, free: 14.52 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0002424/1.641, allocations: 0 / 1.432 GB, free: 14.52 MB / 1.045 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.01113/1.652, allocations: 4.168 MB / 1.436 GB, free: 10.29 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/1.652, allocations: 12.03 kB / 1.436 GB, free: 10.27 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006531/1.658, allocations: 0.9399 MB / 1.437 GB, free: 9.328 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004685/1.663, allocations: 2.267 MB / 1.439 GB, free: 6.984 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/1.663, allocations: 277.2 kB / 1.439 GB, free: 6.699 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/1.664, allocations: 291.9 kB / 1.439 GB, free: 6.414 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006137/1.67, allocations: 3.355 MB / 1.443 GB, free: 2.973 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.316e-05/1.67, allocations: 3.938 kB / 1.443 GB, free: 2.969 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/1.67, allocations: 124 kB / 1.443 GB, free: 2.848 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/1.671, allocations: 109.3 kB / 1.443 GB, free: 2.738 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004519/1.675, allocations: 2.8 MB / 1.446 GB, free: 15.92 MB / 1.061 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.01765/1.693, allocations: 13.22 MB / 1.459 GB, free: 1.52 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002722/1.696, allocations: 1.685 MB / 1.46 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/1.697, allocations: 1.106 MB / 1.461 GB, free: 14.71 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005313/1.698, allocations: 329.1 kB / 1.462 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.27e-05/1.698, allocations: 64.5 kB / 1.462 GB, free: 14.27 MB / 1.076 GB Notification: Performance of pre-optimization done (n=182): time 4.338e-06/1.698, allocations: 0 / 1.462 GB, free: 14.27 MB / 1.076 GB Notification: Performance of matching and sorting (n=182): time 0.006616/1.704, allocations: 2.731 MB / 1.464 GB, free: 11.54 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.705, allocations: 73.41 kB / 1.464 GB, free: 11.45 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003548/1.708, allocations: 1.994 MB / 1.466 GB, free: 9.441 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.000313/1.708, allocations: 69.7 kB / 1.466 GB, free: 9.367 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001153/1.71, allocations: 1.402 MB / 1.468 GB, free: 7.949 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008087/1.71, allocations: 0.643 MB / 1.468 GB, free: 7.297 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005662/1.711, allocations: 395.2 kB / 1.469 GB, free: 6.902 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001327/1.711, allocations: 305.1 kB / 1.469 GB, free: 6.602 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/1.712, allocations: 0.813 MB / 1.47 GB, free: 5.777 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/1.714, allocations: 1.41 MB / 1.471 GB, free: 4.109 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00312/1.717, allocations: 2.252 MB / 1.473 GB, free: 1.68 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/1.717, allocations: 4 kB / 1.473 GB, free: 1.676 MB / 1.076 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004383/1.722, allocations: 2.506 MB / 1.476 GB, free: 15.16 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.453e-05/1.722, allocations: 13.72 kB / 1.476 GB, free: 15.15 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/1.722, allocations: 12 kB / 1.476 GB, free: 15.14 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.843e-05/1.722, allocations: 24 kB / 1.476 GB, free: 15.11 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/1.725, allocations: 0.554 MB / 1.477 GB, free: 14.56 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/1.727, allocations: 4.157 MB / 1.481 GB, free: 10.24 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003796/1.731, allocations: 393.8 kB / 1.481 GB, free: 9.852 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002244/1.731, allocations: 87.98 kB / 1.481 GB, free: 9.766 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002787/1.734, allocations: 1.476 MB / 1.482 GB, free: 8.281 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00177/1.736, allocations: 1.395 MB / 1.484 GB, free: 6.633 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003106/1.739, allocations: 2.236 MB / 1.486 GB, free: 4.215 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.586e-06/1.739, allocations: 4 kB / 1.486 GB, free: 4.211 MB / 1.092 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004414/1.743, allocations: 2.482 MB / 1.488 GB, free: 1.719 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/1.743, allocations: 12.19 kB / 1.488 GB, free: 1.707 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.743, allocations: 16 kB / 1.488 GB, free: 1.691 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/1.743, allocations: 24 kB / 1.488 GB, free: 1.668 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/1.745, allocations: 475.3 kB / 1.489 GB, free: 1.203 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.463e-05/1.745, allocations: 35.86 kB / 1.489 GB, free: 1.168 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003445/1.749, allocations: 370.2 kB / 1.489 GB, free: 0.8047 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/1.749, allocations: 83.98 kB / 1.489 GB, free: 0.7227 MB / 1.092 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.0006338/1.749, allocations: 315.6 kB / 1.49 GB, free: 416 kB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006144/1.75, allocations: 264.8 kB / 1.49 GB, free: 148 kB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003574/1.754, allocations: 2.107 MB / 1.492 GB, free: 14.02 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/1.754, allocations: 23.94 kB / 1.492 GB, free: 14 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.754, allocations: 0 / 1.492 GB, free: 14 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00265/1.756, allocations: 1.894 MB / 1.494 GB, free: 12.05 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009146/1.765, allocations: 5.177 MB / 1.499 GB, free: 6.777 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/1.766, allocations: 0 / 1.499 GB, free: 6.777 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/1.768, allocations: 0.4916 MB / 1.499 GB, free: 6.285 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.859e-05/1.768, allocations: 8 kB / 1.499 GB, free: 6.277 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/1.768, allocations: 55.97 kB / 1.499 GB, free: 6.223 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/1.77, allocations: 4.126 MB / 1.504 GB, free: 1.934 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.77, allocations: 4 kB / 1.504 GB, free: 1.93 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005154/1.775, allocations: 3.23 MB / 1.507 GB, free: 14.64 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/1.777, allocations: 0.5599 MB / 1.507 GB, free: 14.06 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004976/1.778, allocations: 47.98 kB / 1.507 GB, free: 14.02 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002532/1.78, allocations: 249.9 kB / 1.508 GB, free: 13.77 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/1.78, allocations: 125.7 kB / 1.508 GB, free: 13.65 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/1.781, allocations: 71.95 kB / 1.508 GB, free: 13.58 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001964/1.783, allocations: 1.33 MB / 1.509 GB, free: 12.24 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.2e-07/1.783, allocations: 0 / 1.509 GB, free: 12.24 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.004348/1.787, allocations: 1.718 MB / 1.511 GB, free: 10.52 MB / 1.123 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.0008952/1.788, allocations: 349.1 kB / 1.511 GB, free: 10.18 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.009916/1.798, allocations: 4.646 MB / 1.516 GB, free: 5.535 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.798, allocations: 4 kB / 1.516 GB, free: 5.531 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.001912/1.8, allocations: 1.027 MB / 1.517 GB, free: 4.508 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008059/1.808, allocations: 1.527 MB / 1.518 GB, free: 3.004 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/1.82, allocations: 7.84 MB / 1.526 GB, free: 11.1 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/1.822, allocations: 2.19 MB / 1.528 GB, free: 8.879 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.004167/1.826, allocations: 1.092 MB / 1.529 GB, free: 7.781 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006833/1.827, allocations: 215.4 kB / 1.529 GB, free: 7.57 MB / 1.139 GB Notification: Performance of SimCode: time 1.052e-06/1.827, allocations: 0 / 1.529 GB, free: 7.57 MB / 1.139 GB Notification: Performance of Templates: time 0.09672/1.924, allocations: 53.89 MB / 1.582 GB, free: 2.32 MB / 1.186 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)