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.8902/0.8902, allocations: 143.4 MB / 158.3 MB, free: 5.805 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 181 kB / 191.5 MB, free: 5.754 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.656/1.656, allocations: 223.2 MB / 447.7 MB, free: 4.781 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.0009525/0.0009525, allocations: 88.33 kB / 0.5188 GB, free: 1.145 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001664/0.001664, allocations: 263.8 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005252/0.0005252, allocations: 13.53 kB / 0.6929 GB, free: 59.63 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2104, allocations: 82.79 MB / 0.7737 GB, free: 13.84 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.327/4.537, allocations: 1.94 GB / 2.714 GB, free: 138.4 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/4.537, allocations: 95.83 kB / 2.714 GB, free: 138.3 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 8.028/12.57, allocations: 2.064 GB / 4.778 GB, free: 36.39 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.205e-06/12.57, allocations: 0 / 4.778 GB, free: 36.39 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0003178/12.57, allocations: 95.92 kB / 4.778 GB, free: 36.3 MB / 0.7605 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.01449/12.58, allocations: 3.956 MB / 4.782 GB, free: 32.29 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/12.58, allocations: 16.03 kB / 4.782 GB, free: 32.27 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008244/12.59, allocations: 0.9186 MB / 4.783 GB, free: 31.35 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009186/12.6, allocations: 2.869 MB / 4.786 GB, free: 28.41 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/12.6, allocations: 285.3 kB / 4.786 GB, free: 28.12 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/12.6, allocations: 299.9 kB / 4.786 GB, free: 27.82 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007733/12.61, allocations: 3.191 MB / 4.789 GB, free: 24.55 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-05/12.61, allocations: 0 / 4.789 GB, free: 24.55 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/12.61, allocations: 116 kB / 4.79 GB, free: 24.43 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/12.61, allocations: 105.3 kB / 4.79 GB, free: 24.33 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004232/12.61, allocations: 2.632 MB / 4.792 GB, free: 21.68 MB / 0.7605 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.02037/12.63, allocations: 13.19 MB / 4.805 GB, free: 7.352 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/12.64, allocations: 1.794 MB / 4.807 GB, free: 5.562 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006026/12.64, allocations: 325.2 kB / 4.807 GB, free: 5.191 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.995e-05/12.64, allocations: 60.56 kB / 4.807 GB, free: 5.125 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=182): time 6.051e-06/12.64, allocations: 0 / 4.807 GB, free: 5.125 MB / 0.7605 GB Notification: Performance of matching and sorting (n=182): time 0.006208/12.64, allocations: 2.684 MB / 4.81 GB, free: 2.441 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/12.64, allocations: 69.41 kB / 4.81 GB, free: 2.359 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/12.65, allocations: 1.695 MB / 4.812 GB, free: 0.6484 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0005209/12.65, allocations: 69.7 kB / 4.812 GB, free: 0.5742 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001448/12.65, allocations: 1.408 MB / 4.813 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001086/12.65, allocations: 0.6431 MB / 4.814 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/12.65, allocations: 44 kB / 4.814 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002669/12.65, allocations: 385.8 kB / 4.814 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/12.65, allocations: 0.7808 MB / 4.815 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001924/12.65, allocations: 1.461 MB / 4.816 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/12.65, allocations: 1.046 MB / 4.817 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/12.65, allocations: 4 kB / 4.817 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00454/12.66, allocations: 2.444 MB / 4.82 GB, free: 8.02 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.002272/12.66, allocations: 5.509 MB / 4.825 GB, free: 1.988 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/12.66, allocations: 16 kB / 4.825 GB, free: 1.973 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.239e-05/12.66, allocations: 28 kB / 4.825 GB, free: 1.945 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/12.66, allocations: 0.5132 MB / 4.826 GB, free: 1.438 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/12.67, allocations: 4.157 MB / 4.83 GB, free: 13.12 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/12.67, allocations: 373.8 kB / 4.83 GB, free: 12.75 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/12.67, allocations: 91.98 kB / 4.83 GB, free: 12.66 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/12.67, allocations: 4 kB / 4.83 GB, free: 12.66 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00374/12.67, allocations: 2.187 MB / 4.832 GB, free: 10.47 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/12.67, allocations: 12 kB / 4.832 GB, free: 10.46 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/12.67, allocations: 24 kB / 4.832 GB, free: 10.44 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/12.68, allocations: 482.5 kB / 4.833 GB, free: 9.969 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-05/12.68, allocations: 27.89 kB / 4.833 GB, free: 9.941 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003926/12.68, allocations: 354 kB / 4.833 GB, free: 9.594 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001965/12.68, allocations: 87.98 kB / 4.833 GB, free: 9.508 MB / 0.7917 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 (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.0026/12.68, allocations: 0.8642 MB / 4.834 GB, free: 8.633 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/12.68, allocations: 268.8 kB / 4.834 GB, free: 8.367 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/12.69, allocations: 2.074 MB / 4.836 GB, free: 6.285 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/12.69, allocations: 20 kB / 4.836 GB, free: 6.266 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/12.69, allocations: 3.953 kB / 4.836 GB, free: 6.262 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002872/12.69, allocations: 1.859 MB / 4.838 GB, free: 4.348 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7333/13.42, allocations: 5.111 MB / 4.843 GB, free: 79.82 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/13.43, allocations: 2.281 kB / 4.843 GB, free: 79.82 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003296/13.43, allocations: 0.5054 MB / 4.844 GB, free: 79.82 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.69e-05/13.43, allocations: 11.88 kB / 4.844 GB, free: 79.82 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002963/13.43, allocations: 55.12 kB / 4.844 GB, free: 79.82 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/13.43, allocations: 4.12 MB / 4.848 GB, free: 75.75 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/13.43, allocations: 4.969 kB / 4.848 GB, free: 75.75 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006485/13.44, allocations: 3.548 MB / 4.851 GB, free: 75.15 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002591/13.44, allocations: 0.5704 MB / 4.852 GB, free: 75.05 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006816/13.44, allocations: 43.56 kB / 4.852 GB, free: 75.05 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003003/13.44, allocations: 254.1 kB / 4.852 GB, free: 75.04 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/13.44, allocations: 116 kB / 4.852 GB, free: 75.03 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/13.44, allocations: 74.48 kB / 4.852 GB, free: 75.03 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.00267/13.45, allocations: 1.293 MB / 4.853 GB, free: 74.89 MB / 0.7917 GB Notification: Performance of sort global known variables: time 2.71e-07/13.45, allocations: 3.219 kB / 4.853 GB, free: 74.89 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.009161/13.46, allocations: 2.134 MB / 4.856 GB, free: 74.77 MB / 0.7917 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 (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.01071/13.47, allocations: 4.771 MB / 4.86 GB, free: 72.5 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.008458/13.48, allocations: 3.195 MB / 4.863 GB, free: 72.45 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/13.48, allocations: 2.188 kB / 4.863 GB, free: 72.45 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.002412/13.48, allocations: 1.001 MB / 4.864 GB, free: 72.45 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009171/13.49, allocations: 1.579 MB / 4.866 GB, free: 72.41 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/13.5, allocations: 7.793 MB / 4.873 GB, free: 69.36 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/13.5, allocations: 2.237 MB / 4.876 GB, free: 68.61 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.004687/13.51, allocations: 1.092 MB / 4.877 GB, free: 68.58 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007812/13.51, allocations: 218.8 kB / 4.877 GB, free: 68.57 MB / 0.7917 GB Notification: Performance of SimCode: time 3.716e-06/13.51, allocations: 2.625 kB / 4.877 GB, free: 68.57 MB / 0.7917 GB Notification: Performance of Templates: time 0.1555/13.66, allocations: 97.96 MB / 4.973 GB, free: 63.46 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)