Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001109/0.001109, allocations: 113 kB / 16.37 MB, free: 6.012 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.001064/0.001064, allocations: 185.7 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.857/1.857, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 68.12 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2664, allocations: 114.6 MB / 0.7848 GB, free: 3.203 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7787/1.045, allocations: 305.1 MB / 1.083 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.04038/1.086, allocations: 25.63 MB / 1.108 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005171/1.091, allocations: 119.3 kB / 1.108 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0054/1.096, allocations: 1.798 MB / 1.11 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01709/1.113, allocations: 5.934 MB / 1.115 GB, free: 7.012 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00747/1.121, allocations: 2.607 MB / 1.118 GB, free: 4.426 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01255/1.133, allocations: 8.852 MB / 1.127 GB, free: 11.56 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006121/1.14, allocations: 3.617 MB / 1.13 GB, free: 7.867 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01102/1.151, allocations: 4.132 MB / 1.134 GB, free: 3.781 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005987/1.157, allocations: 2.958 MB / 1.137 GB, free: 0.832 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001464/1.158, allocations: 360 kB / 1.137 GB, free: 492 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.6095/1.768, allocations: 4.594 MB / 1.142 GB, free: 15.23 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.003222/1.771, allocations: 1.642 MB / 1.144 GB, free: 15.23 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.00735/1.778, allocations: 2.125 MB / 1.146 GB, free: 15.23 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.02074/1.799, allocations: 6.734 MB / 1.152 GB, free: 15.06 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/1.799, allocations: 1.75 kB / 1.152 GB, free: 15.06 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.915e-06/1.799, allocations: 1.156 kB / 1.152 GB, free: 15.06 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003689/1.799, allocations: 0.75 kB / 1.152 GB, free: 15.06 MB / 0.92 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.01782/1.817, allocations: 4.147 MB / 1.156 GB, free: 13.33 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/1.817, allocations: 10.7 kB / 1.156 GB, free: 13.33 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008169/1.826, allocations: 0.9376 MB / 1.157 GB, free: 13.12 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007757/1.833, allocations: 2.363 MB / 1.159 GB, free: 12.5 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004354/1.834, allocations: 278.1 kB / 1.16 GB, free: 12.43 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/1.835, allocations: 292.2 kB / 1.16 GB, free: 12.42 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/1.846, allocations: 3.351 MB / 1.163 GB, free: 12.16 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.429e-05/1.846, allocations: 9.828 kB / 1.163 GB, free: 12.16 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004778/1.846, allocations: 118.7 kB / 1.163 GB, free: 12.16 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001664/1.846, allocations: 104.4 kB / 1.163 GB, free: 12.16 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007312/1.854, allocations: 2.789 MB / 1.166 GB, free: 12.12 MB / 0.92 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.0268/1.881, allocations: 13.22 MB / 1.179 GB, free: 20.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/1.884, allocations: 1.825 MB / 1.181 GB, free: 20.86 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002162/1.886, allocations: 1.102 MB / 1.182 GB, free: 20.83 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005941/1.887, allocations: 327.9 kB / 1.182 GB, free: 20.55 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.702e-05/1.887, allocations: 62.31 kB / 1.182 GB, free: 20.51 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=182): time 4.809e-06/1.887, allocations: 0.9062 kB / 1.182 GB, free: 20.51 MB / 0.9356 GB Notification: Performance of matching and sorting (n=182): time 0.00565/1.893, allocations: 2.724 MB / 1.185 GB, free: 20.29 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/1.893, allocations: 68.56 kB / 1.185 GB, free: 20.22 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003128/1.896, allocations: 1.977 MB / 1.187 GB, free: 20 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0005118/1.896, allocations: 68.17 kB / 1.187 GB, free: 19.96 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001211/1.898, allocations: 1.395 MB / 1.188 GB, free: 19.44 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000989/1.899, allocations: 0.6412 MB / 1.189 GB, free: 19.02 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006538/1.899, allocations: 389 kB / 1.189 GB, free: 18.99 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001232/1.899, allocations: 304.4 kB / 1.19 GB, free: 18.7 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/1.901, allocations: 0.807 MB / 1.191 GB, free: 18.67 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/1.902, allocations: 1.434 MB / 1.192 GB, free: 17.98 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/1.905, allocations: 2.25 MB / 1.194 GB, free: 17.48 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/1.905, allocations: 3 kB / 1.194 GB, free: 17.48 MB / 0.9356 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004389/1.91, allocations: 2.492 MB / 1.197 GB, free: 17.27 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/1.91, allocations: 16.42 kB / 1.197 GB, free: 17.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/1.91, allocations: 14.34 kB / 1.197 GB, free: 17.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.489e-05/1.91, allocations: 24.91 kB / 1.197 GB, free: 17.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/1.912, allocations: 0.5559 MB / 1.197 GB, free: 17.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/1.914, allocations: 4.148 MB / 1.201 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004186/1.919, allocations: 219.9 kB / 1.201 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006347/1.919, allocations: 92.8 kB / 1.201 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004424/1.924, allocations: 1.458 MB / 1.203 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001689/1.925, allocations: 1.426 MB / 1.204 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00288/1.928, allocations: 2.233 MB / 1.206 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.178e-05/1.928, allocations: 4.031 kB / 1.206 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004386/1.933, allocations: 2.47 MB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/1.933, allocations: 13.06 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/1.933, allocations: 11.81 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/1.933, allocations: 24.06 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.935, allocations: 470 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.192e-05/1.935, allocations: 35.08 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/1.938, allocations: 202.9 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002156/1.938, allocations: 88.44 kB / 1.21 GB, free: 11.52 MB / 0.9356 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.0008329/1.939, allocations: 317.6 kB / 1.21 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.94, allocations: 261.8 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/1.944, allocations: 2.094 MB / 1.212 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.944, allocations: 20.12 kB / 1.212 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/1.944, allocations: 0 / 1.212 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002433/1.946, allocations: 1.882 MB / 1.214 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/1.956, allocations: 5.153 MB / 1.219 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/1.957, allocations: 3.562 kB / 1.219 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.959, allocations: 0.5018 MB / 1.22 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.242e-05/1.959, allocations: 10.19 kB / 1.22 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/1.959, allocations: 56.48 kB / 1.22 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/1.961, allocations: 4.124 MB / 1.224 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.961, allocations: 8.875 kB / 1.224 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00531/1.966, allocations: 3.357 MB / 1.227 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/1.969, allocations: 0.5731 MB / 1.228 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008328/1.969, allocations: 36.03 kB / 1.228 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.972, allocations: 83.81 kB / 1.228 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/1.972, allocations: 118.5 kB / 1.228 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/1.972, allocations: 74.94 kB / 1.228 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002177/1.974, allocations: 1.318 MB / 1.229 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.253e-06/1.974, allocations: 0.875 kB / 1.229 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.006891/1.981, allocations: 1.716 MB / 1.231 GB, free: 5.027 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],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.001103/1.982, allocations: 347.4 kB / 1.231 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.006213/1.989, allocations: 3.31 MB / 1.234 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/1.989, allocations: 2.531 kB / 1.234 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001731/1.991, allocations: 1.029 MB / 1.235 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008878/1.999, allocations: 1.531 MB / 1.237 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/2.013, allocations: 6.664 MB / 1.243 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/2.015, allocations: 2.183 MB / 1.246 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/2.017, allocations: 234.1 kB / 1.246 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of SimCode: time 1.442e-06/2.017, allocations: 1.531 kB / 1.246 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of Templates: time 0.1616/2.178, allocations: 139.9 MB / 1.382 GB, free: 13.96 MB / 1.076 GB make -j1 -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)