Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7945/0.7945, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 184.3 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 221.3 MB / 441.4 MB, free: 4.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008783, allocations: 89.09 kB / 0.5124 GB, free: 24.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001808/0.001808, allocations: 278.3 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.665e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.489/0.489, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.715/5.204, allocations: 1.94 GB / 2.704 GB, free: 68.77 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/5.204, allocations: 94.56 kB / 2.704 GB, free: 68.72 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.97/13.17, allocations: 2.063 GB / 4.767 GB, free: 63.31 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.453e-06/13.17, allocations: 0 / 4.767 GB, free: 63.31 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0003647/13.17, allocations: 96.78 kB / 4.767 GB, free: 63.31 MB / 0.7761 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.01124/13.19, allocations: 3.467 MB / 4.77 GB, free: 62.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/13.19, allocations: 10.53 kB / 4.77 GB, free: 62.12 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007303/13.19, allocations: 0.9258 MB / 4.771 GB, free: 61.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008051/13.2, allocations: 2.841 MB / 4.774 GB, free: 61.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/13.2, allocations: 282.1 kB / 4.774 GB, free: 61.41 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007761/13.2, allocations: 296.8 kB / 4.775 GB, free: 61.41 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005764/13.21, allocations: 3.13 MB / 4.778 GB, free: 61.15 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.327e-05/13.21, allocations: 7.25 kB / 4.778 GB, free: 61.15 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003051/13.21, allocations: 111.6 kB / 4.778 GB, free: 61.15 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.864e-05/13.21, allocations: 106.2 kB / 4.778 GB, free: 61.14 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004381/13.21, allocations: 2.558 MB / 4.78 GB, free: 61.11 MB / 0.7761 GB Warning: The model contains alias variables with conflicting start and/or 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.01686/13.23, allocations: 13.19 MB / 4.793 GB, free: 53.91 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002277/13.23, allocations: 1.761 MB / 4.795 GB, free: 53.87 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/13.23, allocations: 1.052 MB / 4.796 GB, free: 53.85 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004526/13.23, allocations: 327.3 kB / 4.796 GB, free: 53.56 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/13.23, allocations: 55.75 kB / 4.796 GB, free: 53.52 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=182): time 3.867e-06/13.23, allocations: 3 kB / 4.796 GB, free: 53.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=182): time 0.00443/13.24, allocations: 1.938 MB / 4.798 GB, free: 53.31 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/13.24, allocations: 76.25 kB / 4.798 GB, free: 53.24 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002975/13.24, allocations: 1.674 MB / 4.8 GB, free: 53.02 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0003106/13.24, allocations: 70.17 kB / 4.8 GB, free: 52.98 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009234/13.24, allocations: 1.413 MB / 4.801 GB, free: 52.44 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006186/13.24, allocations: 0.6427 MB / 4.802 GB, free: 52.02 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.204e-05/13.24, allocations: 40.97 kB / 4.802 GB, free: 52.02 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001184/13.24, allocations: 386.8 kB / 4.802 GB, free: 51.72 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/13.24, allocations: 0.7508 MB / 4.803 GB, free: 51.71 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/13.25, allocations: 1.443 MB / 4.805 GB, free: 50.94 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/13.25, allocations: 1.025 MB / 4.806 GB, free: 50.91 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/13.25, allocations: 3.375 kB / 4.806 GB, free: 50.91 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003697/13.25, allocations: 2.406 MB / 4.808 GB, free: 50.7 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.000987/13.25, allocations: 5.518 MB / 4.813 GB, free: 44.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/13.25, allocations: 16.34 kB / 4.813 GB, free: 44.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.174e-05/13.25, allocations: 23.62 kB / 4.813 GB, free: 44.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/13.25, allocations: 0.5062 MB / 4.814 GB, free: 44.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/13.26, allocations: 4.154 MB / 4.818 GB, free: 40.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/13.26, allocations: 374.4 kB / 4.818 GB, free: 40.66 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/13.26, allocations: 90.91 kB / 4.818 GB, free: 40.66 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/13.26, allocations: 3.531 kB / 4.818 GB, free: 40.66 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003025/13.26, allocations: 2.14 MB / 4.82 GB, free: 40.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/13.26, allocations: 10.59 kB / 4.82 GB, free: 40.61 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/13.26, allocations: 25.44 kB / 4.821 GB, free: 40.61 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/13.26, allocations: 475.1 kB / 4.821 GB, free: 40.61 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.628e-05/13.26, allocations: 30.56 kB / 4.821 GB, free: 40.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003519/13.27, allocations: 355.5 kB / 4.821 GB, free: 40.52 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001766/13.27, allocations: 87.09 kB / 4.821 GB, free: 40.52 MB / 0.7761 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 () * 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 (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.0005779/13.27, allocations: 237.5 kB / 4.822 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006737/13.27, allocations: 270.4 kB / 4.822 GB, free: 40.27 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003234/13.27, allocations: 2.034 MB / 4.824 GB, free: 40.15 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/13.27, allocations: 19.56 kB / 4.824 GB, free: 40.15 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/13.27, allocations: 1.312 kB / 4.824 GB, free: 40.15 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002131/13.27, allocations: 1.816 MB / 4.826 GB, free: 39.86 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008427/13.28, allocations: 5.087 MB / 4.831 GB, free: 39.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/13.28, allocations: 3.375 kB / 4.831 GB, free: 39.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/13.29, allocations: 0.5082 MB / 4.831 GB, free: 39.31 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.788e-05/13.29, allocations: 10.91 kB / 4.831 GB, free: 39.31 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/13.29, allocations: 50.38 kB / 4.831 GB, free: 39.31 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/13.29, allocations: 4.129 MB / 4.835 GB, free: 35.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/13.29, allocations: 3.062 kB / 4.835 GB, free: 35.21 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005079/13.29, allocations: 3.495 MB / 4.839 GB, free: 34.46 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/13.29, allocations: 0.5647 MB / 4.839 GB, free: 34.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004656/13.29, allocations: 45.97 kB / 4.839 GB, free: 34.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002377/13.3, allocations: 249.6 kB / 4.839 GB, free: 34.19 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/13.3, allocations: 118.8 kB / 4.84 GB, free: 34.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/13.3, allocations: 69.48 kB / 4.84 GB, free: 34.18 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001954/13.3, allocations: 1.273 MB / 4.841 GB, free: 34.02 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9.81e-07/13.3, allocations: 3.062 kB / 4.841 GB, free: 34.02 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006319/13.31, allocations: 2.145 MB / 4.843 GB, free: 33.78 MB / 0.7761 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 () * 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 (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.007327/13.31, allocations: 4.775 MB / 4.848 GB, free: 31.5 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.005988/13.32, allocations: 3.222 MB / 4.851 GB, free: 31.43 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/13.32, allocations: 3.844 kB / 4.851 GB, free: 31.43 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001611/13.32, allocations: 0.9819 MB / 4.852 GB, free: 31.42 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00882/13.33, allocations: 1.567 MB / 4.853 GB, free: 31.39 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009994/13.34, allocations: 5.513 MB / 4.859 GB, free: 30.1 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00162/13.34, allocations: 2.256 MB / 4.861 GB, free: 29.34 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.005236/13.35, allocations: 1.334 MB / 4.862 GB, free: 29.31 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/13.35, allocations: 180.7 kB / 4.862 GB, free: 29.3 MB / 0.7761 GB Notification: Performance of SimCode: time 1.403e-06/13.35, allocations: 0 / 4.862 GB, free: 29.3 MB / 0.7761 GB Notification: Performance of Templates: time 0.1601/13.51, allocations: 112.6 MB / 4.972 GB, free: 12.36 MB / 0.7917 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)