Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.0009247/0.0009244, allocations: 98.03 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.006001/0.006001, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.536/1.536, allocations: 205.4 MB / 222.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.569/1.569, allocations: 252 MB / 0.5105 GB, free: 4.703 MB / 414.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.0007586/0.0007589, allocations: 12.61 kB / 0.6249 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5662/0.567, allocations: 106.3 MB / 0.7287 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.8503/1.417, allocations: 299.4 MB / 1.021 GB, free: 432 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.03167/1.449, allocations: 25.8 MB / 1.046 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004905/1.454, allocations: 102 kB / 1.046 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005707/1.46, allocations: 1.55 MB / 1.048 GB, free: 7.043 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.01676/1.477, allocations: 5.649 MB / 1.053 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.007441/1.484, allocations: 2.465 MB / 1.056 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.01497/1.499, allocations: 12.69 MB / 1.068 GB, free: 7.934 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005097/1.504, allocations: 3.032 MB / 1.071 GB, free: 4.875 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.014/1.518, allocations: 3.649 MB / 1.075 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00693/1.525, allocations: 2.961 MB / 1.078 GB, free: 14.76 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001059/1.526, allocations: 152 kB / 1.078 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01122/1.537, allocations: 5.272 MB / 1.083 GB, free: 9.934 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00292/1.54, allocations: 1.454 MB / 1.084 GB, free: 8.496 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005705/1.546, allocations: 1.907 MB / 1.086 GB, free: 6.594 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01432/1.56, allocations: 6.832 MB / 1.093 GB, free: 92 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/1.56, allocations: 0 / 1.093 GB, free: 92 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.515e-06/1.56, allocations: 0 / 1.093 GB, free: 92 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0002218/1.561, allocations: 0 / 1.093 GB, free: 92 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 0.007624/1.568, allocations: 3.436 MB / 1.096 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/1.568, allocations: 16.02 kB / 1.096 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006292/1.575, allocations: 0.9355 MB / 1.097 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005444/1.58, allocations: 2.251 MB / 1.099 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004318/1.581, allocations: 277.3 kB / 1.1 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/1.582, allocations: 298.6 kB / 1.1 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/1.592, allocations: 3.407 MB / 1.103 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001373/1.592, allocations: 0 / 1.103 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006827/1.593, allocations: 119.4 kB / 1.103 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/1.593, allocations: 113.3 kB / 1.103 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006152/1.599, allocations: 2.808 MB / 1.106 GB, free: 2.277 MB / 0.7794 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.02172/1.621, allocations: 13.27 MB / 1.119 GB, free: 3.938 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003138/1.624, allocations: 1.79 MB / 1.121 GB, free: 2.145 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/1.626, allocations: 1.098 MB / 1.122 GB, free: 1.047 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004846/1.626, allocations: 322.8 kB / 1.122 GB, free: 0.6836 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.69e-05/1.627, allocations: 64.48 kB / 1.122 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of pre-optimization done (n=182): time 3.446e-06/1.627, allocations: 3.938 kB / 1.122 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of matching and sorting (n=182): time 0.005167/1.632, allocations: 2.7 MB / 1.125 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/1.632, allocations: 69.41 kB / 1.125 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/1.635, allocations: 1.994 MB / 1.127 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0002728/1.635, allocations: 69.7 kB / 1.127 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/1.636, allocations: 1.393 MB / 1.128 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007061/1.637, allocations: 0.6376 MB / 1.129 GB, free: 9.703 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/1.637, allocations: 173.6 kB / 1.129 GB, free: 9.527 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.637, allocations: 305.1 kB / 1.129 GB, free: 9.227 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/1.639, allocations: 0.7887 MB / 1.13 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/1.641, allocations: 1.407 MB / 1.132 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003152/1.644, allocations: 2.236 MB / 1.134 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/1.644, allocations: 4 kB / 1.134 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004277/1.648, allocations: 2.471 MB / 1.136 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003905/1.648, allocations: 492.7 kB / 1.137 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/1.649, allocations: 12 kB / 1.137 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.774e-05/1.649, allocations: 27.94 kB / 1.137 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/1.651, allocations: 0.5539 MB / 1.137 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/1.653, allocations: 4.153 MB / 1.141 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/1.657, allocations: 372.8 kB / 1.142 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/1.657, allocations: 91.92 kB / 1.142 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/1.657, allocations: 4 kB / 1.142 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003638/1.661, allocations: 2.202 MB / 1.144 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/1.661, allocations: 16 kB / 1.144 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/1.661, allocations: 24 kB / 1.144 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/1.662, allocations: 476 kB / 1.144 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.062e-05/1.662, allocations: 31.92 kB / 1.144 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003158/1.666, allocations: 349.3 kB / 1.145 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002076/1.666, allocations: 91.98 kB / 1.145 GB, free: 8.668 MB / 0.8262 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.001775/1.668, allocations: 0.8751 MB / 1.146 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007724/1.668, allocations: 264.8 kB / 1.146 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/1.672, allocations: 2.076 MB / 1.148 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/1.672, allocations: 20 kB / 1.148 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.672, allocations: 0 / 1.148 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002923/1.675, allocations: 1.866 MB / 1.15 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01095/1.686, allocations: 5.164 MB / 1.155 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.686, allocations: 0 / 1.155 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002482/1.689, allocations: 0.5114 MB / 1.155 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.716e-05/1.689, allocations: 15.92 kB / 1.155 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002162/1.689, allocations: 47.98 kB / 1.155 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/1.691, allocations: 4.122 MB / 1.159 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.691, allocations: 11.88 kB / 1.159 GB, free: 9.406 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005513/1.697, allocations: 3.34 MB / 1.163 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/1.699, allocations: 0.5834 MB / 1.163 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/1.699, allocations: 40 kB / 1.163 GB, free: 5.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/1.702, allocations: 271.3 kB / 1.164 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/1.703, allocations: 121.8 kB / 1.164 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/1.703, allocations: 71.95 kB / 1.164 GB, free: 4.918 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002346/1.705, allocations: 1.329 MB / 1.165 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/1.705, allocations: 0 / 1.165 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.004987/1.71, allocations: 1.737 MB / 1.167 GB, free: 1.836 MB / 0.8419 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.0008931/1.711, allocations: 352 kB / 1.167 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.006923/1.718, allocations: 3.286 MB / 1.17 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.718, allocations: 0 / 1.17 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001901/1.72, allocations: 1.028 MB / 1.171 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009908/1.73, allocations: 1.595 MB / 1.173 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/1.742, allocations: 8.133 MB / 1.181 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/1.745, allocations: 2.197 MB / 1.183 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.004191/1.749, allocations: 1.088 MB / 1.184 GB, free: 92 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00068/1.75, allocations: 215.4 kB / 1.184 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/1.75, allocations: 4 kB / 1.184 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.09238/1.842, allocations: 53.15 MB / 1.236 GB, free: 11.46 MB / 0.92 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) Environment - environmentSimulation: