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.0009561/0.0009562, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.0009544/0.0009546, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.619/1.619, allocations: 251.9 MB / 0.51 GB, free: 4.875 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.000567/0.0005671, allocations: 15.28 kB / 0.6241 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5956/0.5962, allocations: 106.3 MB / 0.728 GB, free: 11.61 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7222/1.318, allocations: 247.8 MB / 0.97 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.03352/1.352, allocations: 23.94 MB / 0.9933 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004815/1.357, allocations: 90.03 kB / 0.9934 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007109/1.364, allocations: 1.733 MB / 0.9951 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02049/1.385, allocations: 5.792 MB / 1.001 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.008098/1.393, allocations: 2.83 MB / 1.004 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.009769/1.402, allocations: 5.237 MB / 1.009 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004857/1.407, allocations: 2.619 MB / 1.011 GB, free: 17.75 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006953/1.414, allocations: 2.683 MB / 1.014 GB, free: 17.38 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/1.419, allocations: 1.928 MB / 1.016 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0009888/1.42, allocations: 157.2 kB / 1.016 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007936/1.428, allocations: 2.089 MB / 1.018 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002454/1.43, allocations: 1.338 MB / 1.019 GB, free: 16.37 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.002369/1.433, allocations: 0.7692 MB / 1.02 GB, free: 16.34 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.008948/1.442, allocations: 4.584 MB / 1.024 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/1.442, allocations: 0 / 1.024 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.444e-06/1.442, allocations: 0 / 1.024 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0002318/1.442, allocations: 0 / 1.024 GB, free: 14.01 MB / 0.7325 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.008108/1.45, allocations: 3.423 MB / 1.028 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/1.45, allocations: 9.406 kB / 1.028 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006186/1.456, allocations: 0.9391 MB / 1.029 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005384/1.462, allocations: 2.202 MB / 1.031 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002379/1.462, allocations: 285.4 kB / 1.031 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006349/1.463, allocations: 300.6 kB / 1.031 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006201/1.469, allocations: 3.367 MB / 1.035 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.629e-05/1.469, allocations: 2.531 kB / 1.035 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/1.469, allocations: 124.9 kB / 1.035 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/1.469, allocations: 105.4 kB / 1.035 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005109/1.474, allocations: 2.807 MB / 1.038 GB, free: 6.078 MB / 0.7325 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.01916/1.494, allocations: 13.3 MB / 1.051 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/1.496, allocations: 1.83 MB / 1.052 GB, free: 8.902 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/1.497, allocations: 61.88 kB / 1.053 GB, free: 8.855 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.797e-05/1.497, allocations: 59.12 kB / 1.053 GB, free: 8.809 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=186): time 3.848e-06/1.497, allocations: 0 / 1.053 GB, free: 8.809 MB / 0.7481 GB Notification: Performance of matching and sorting (n=186): time 0.005426/1.502, allocations: 2.744 MB / 1.055 GB, free: 6.859 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/1.502, allocations: 76.41 kB / 1.055 GB, free: 6.773 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002921/1.505, allocations: 1.978 MB / 1.057 GB, free: 5.27 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0003661/1.506, allocations: 72.39 kB / 1.057 GB, free: 5.223 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009785/1.507, allocations: 1.399 MB / 1.059 GB, free: 4.359 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008727/1.507, allocations: 0.6538 MB / 1.059 GB, free: 3.797 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.55e-05/1.508, allocations: 43.06 kB / 1.059 GB, free: 3.789 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001793/1.508, allocations: 380.7 kB / 1.06 GB, free: 3.441 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/1.509, allocations: 0.7946 MB / 1.06 GB, free: 2.918 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/1.511, allocations: 1.413 MB / 1.062 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/1.512, allocations: 1.053 MB / 1.063 GB, free: 0.9297 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/1.512, allocations: 4 kB / 1.063 GB, free: 0.9258 MB / 0.7481 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.004231/1.516, allocations: 2.475 MB / 1.065 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.002273/1.519, allocations: 5.217 MB / 1.07 GB, free: 9.59 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/1.519, allocations: 12 kB / 1.07 GB, free: 9.578 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.089e-05/1.519, allocations: 31.45 kB / 1.07 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/1.522, allocations: 0.5582 MB / 1.071 GB, free: 9.035 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/1.524, allocations: 4.152 MB / 1.075 GB, free: 4.781 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/1.528, allocations: 385.7 kB / 1.075 GB, free: 4.441 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003356/1.528, allocations: 88.8 kB / 1.076 GB, free: 4.371 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.528, allocations: 4 kB / 1.076 GB, free: 4.367 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003533/1.532, allocations: 2.212 MB / 1.078 GB, free: 2.957 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/1.532, allocations: 12 kB / 1.078 GB, free: 2.945 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/1.532, allocations: 26.62 kB / 1.078 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/1.534, allocations: 478.3 kB / 1.078 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-05/1.534, allocations: 29.23 kB / 1.078 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003379/1.537, allocations: 366 kB / 1.079 GB, free: 2.152 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/1.537, allocations: 88.55 kB / 1.079 GB, free: 2.082 MB / 0.7637 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.001701/1.539, allocations: 0.8886 MB / 1.08 GB, free: 1.488 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007031/1.54, allocations: 264.8 kB / 1.08 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003409/1.543, allocations: 2.122 MB / 1.082 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/1.543, allocations: 20 kB / 1.082 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/1.543, allocations: 3.984 kB / 1.082 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002444/1.546, allocations: 1.886 MB / 1.084 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008537/1.554, allocations: 5.216 MB / 1.089 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/1.554, allocations: 4 kB / 1.089 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/1.557, allocations: 0.5046 MB / 1.089 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.991e-05/1.557, allocations: 11.98 kB / 1.089 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/1.557, allocations: 56.05 kB / 1.089 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/1.559, allocations: 4.121 MB / 1.093 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.559, allocations: 6.719 kB / 1.093 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005471/1.564, allocations: 3.621 MB / 1.097 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001938/1.566, allocations: 0.5911 MB / 1.097 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006053/1.567, allocations: 47.98 kB / 1.098 GB, free: 14.76 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/1.569, allocations: 275.2 kB / 1.098 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/1.57, allocations: 112.5 kB / 1.098 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/1.57, allocations: 75.95 kB / 1.098 GB, free: 14.31 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001944/1.572, allocations: 1.312 MB / 1.099 GB, free: 12.99 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/1.572, allocations: 4 kB / 1.099 GB, free: 12.99 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004864/1.577, allocations: 1.745 MB / 1.101 GB, free: 11.24 MB / 0.795 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 (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.0008998/1.578, allocations: 381.3 kB / 1.101 GB, free: 10.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.006405/1.584, allocations: 3.3 MB / 1.105 GB, free: 7.723 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.584, allocations: 8 kB / 1.105 GB, free: 7.715 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001931/1.586, allocations: 1.035 MB / 1.106 GB, free: 6.727 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00838/1.594, allocations: 1.579 MB / 1.107 GB, free: 5.156 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/1.607, allocations: 7.892 MB / 1.115 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/1.609, allocations: 2.262 MB / 1.117 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.004051/1.614, allocations: 1.103 MB / 1.118 GB, free: 9.816 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000685/1.614, allocations: 239.3 kB / 1.118 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of SimCode: time 5.51e-07/1.614, allocations: 0 / 1.118 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of Templates: time 0.09102/1.705, allocations: 52.5 MB / 1.17 GB, free: 5.941 MB / 0.8575 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: