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.8031/0.8031, allocations: 141.8 MB / 149.3 MB, free: 9.234 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.001589/0.001589, allocations: 184.5 kB / 182.2 MB, free: 9.457 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.567/1.567, allocations: 221.5 MB / 436.4 MB, free: 13.37 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.001388/0.001388, allocations: 95.98 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00174/0.00174, allocations: 281.1 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.874e-05, allocations: 4 kB / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4619/0.462, allocations: 82.78 MB / 0.7574 GB, free: 32.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.735/5.198, allocations: 1.939 GB / 2.697 GB, free: 81.12 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/5.198, allocations: 91.64 kB / 2.697 GB, free: 81.08 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.885/13.08, allocations: 2.041 GB / 4.737 GB, free: 71 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.986e-06/13.08, allocations: 0.7812 kB / 4.737 GB, free: 71 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0003685/13.08, allocations: 93.92 kB / 4.737 GB, free: 71 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.01443/13.1, allocations: 3.47 MB / 4.741 GB, free: 70.01 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/13.1, allocations: 11.44 kB / 4.741 GB, free: 70.01 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007738/13.11, allocations: 0.9206 MB / 4.742 GB, free: 69.81 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/13.12, allocations: 2.844 MB / 4.744 GB, free: 69.39 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004882/13.12, allocations: 171.6 kB / 4.745 GB, free: 69.32 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001799/13.12, allocations: 178.7 kB / 4.745 GB, free: 69.32 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006916/13.13, allocations: 2.424 MB / 4.747 GB, free: 69.3 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005502/13.13, allocations: 2.75 MB / 4.75 GB, free: 69.06 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.587e-05/13.13, allocations: 7.125 kB / 4.75 GB, free: 69.06 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002386/13.13, allocations: 4.75 kB / 4.75 GB, free: 69.06 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.955e-05/13.13, allocations: 106.3 kB / 4.75 GB, free: 69.05 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.01823/13.15, allocations: 12.67 MB / 4.762 GB, free: 62.05 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/13.15, allocations: 1.694 MB / 4.764 GB, free: 62.02 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/13.15, allocations: 1.007 MB / 4.765 GB, free: 62 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004415/13.15, allocations: 324.5 kB / 4.765 GB, free: 61.71 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/13.15, allocations: 61.94 kB / 4.765 GB, free: 61.67 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=182): time 4.679e-06/13.15, allocations: 3.797 kB / 4.765 GB, free: 61.67 MB / 0.7761 GB Notification: Performance of matching and sorting (n=182): time 0.003812/13.16, allocations: 1.848 MB / 4.767 GB, free: 61.46 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/13.16, allocations: 70.66 kB / 4.767 GB, free: 61.4 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003035/13.16, allocations: 1.415 MB / 4.769 GB, free: 61.2 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002643/13.16, allocations: 30.23 kB / 4.769 GB, free: 61.16 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/13.16, allocations: 1.402 MB / 4.77 GB, free: 60.61 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006308/13.16, allocations: 0.6217 MB / 4.771 GB, free: 60.2 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/13.16, allocations: 0 / 4.771 GB, free: 60.2 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001377/13.16, allocations: 386.1 kB / 4.771 GB, free: 59.89 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/13.16, allocations: 0.7209 MB / 4.772 GB, free: 59.88 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/13.17, allocations: 1.381 MB / 4.773 GB, free: 59.12 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/13.17, allocations: 0.9892 MB / 4.774 GB, free: 59.09 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.533e-05/13.17, allocations: 5.094 kB / 4.774 GB, free: 59.09 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005884/13.17, allocations: 2.222 MB / 4.776 GB, free: 58.89 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.00257/13.18, allocations: 5.473 MB / 4.782 GB, free: 53.05 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.977e-05/13.18, allocations: 18.12 kB / 4.782 GB, free: 53.05 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-05/13.18, allocations: 29.33 kB / 4.782 GB, free: 53.04 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/13.18, allocations: 0.5192 MB / 4.782 GB, free: 53.04 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/13.18, allocations: 4.175 MB / 4.786 GB, free: 48.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003875/13.18, allocations: 311.8 kB / 4.786 GB, free: 48.86 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002578/13.19, allocations: 87 kB / 4.787 GB, free: 48.86 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/13.19, allocations: 6.5 kB / 4.787 GB, free: 48.86 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003106/13.19, allocations: 1.921 MB / 4.788 GB, free: 48.81 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/13.19, allocations: 13.41 kB / 4.788 GB, free: 48.81 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/13.19, allocations: 27.78 kB / 4.788 GB, free: 48.81 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/13.19, allocations: 472.2 kB / 4.789 GB, free: 48.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.102e-05/13.19, allocations: 36.33 kB / 4.789 GB, free: 48.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003721/13.19, allocations: 294.7 kB / 4.789 GB, free: 48.73 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/13.19, allocations: 86.27 kB / 4.789 GB, free: 48.73 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.0006028/13.19, allocations: 158.5 kB / 4.789 GB, free: 48.61 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/13.2, allocations: 255.1 kB / 4.79 GB, free: 48.49 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/13.2, allocations: 1.882 MB / 4.792 GB, free: 48.37 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/13.2, allocations: 21.25 kB / 4.792 GB, free: 48.37 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/13.2, allocations: 3.953 kB / 4.792 GB, free: 48.36 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002059/13.2, allocations: 1.719 MB / 4.793 GB, free: 48.06 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008955/13.21, allocations: 4.635 MB / 4.798 GB, free: 47.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/13.21, allocations: 0 / 4.798 GB, free: 47.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002316/13.21, allocations: 0.5047 MB / 4.798 GB, free: 47.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.305e-05/13.21, allocations: 14.14 kB / 4.798 GB, free: 47.56 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/13.21, allocations: 31.86 kB / 4.798 GB, free: 47.56 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/13.21, allocations: 4.141 MB / 4.802 GB, free: 43.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/13.21, allocations: 4.656 kB / 4.802 GB, free: 43.46 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/13.22, allocations: 3.348 MB / 4.806 GB, free: 42.72 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/13.22, allocations: 0.5511 MB / 4.806 GB, free: 42.47 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007076/13.22, allocations: 14.88 kB / 4.806 GB, free: 42.47 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002853/13.22, allocations: 216.9 kB / 4.806 GB, free: 42.45 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/13.22, allocations: 115.7 kB / 4.806 GB, free: 42.45 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/13.22, allocations: 74.14 kB / 4.807 GB, free: 42.45 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001989/13.23, allocations: 1.048 MB / 4.808 GB, free: 42.3 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.5e-07/13.23, allocations: 0 / 4.808 GB, free: 42.3 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006572/13.23, allocations: 1.922 MB / 4.809 GB, free: 42.04 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.007315/13.24, allocations: 5.203 MB / 4.815 GB, free: 39.78 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.005911/13.25, allocations: 3.052 MB / 4.818 GB, free: 39.72 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/13.25, allocations: 6.234 kB / 4.818 GB, free: 39.72 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001693/13.25, allocations: 0.9421 MB / 4.818 GB, free: 39.71 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008545/13.26, allocations: 1.455 MB / 4.82 GB, free: 39.68 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/13.27, allocations: 5.391 MB / 4.825 GB, free: 38.41 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/13.27, allocations: 2.248 MB / 4.827 GB, free: 37.65 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.006368/13.28, allocations: 1.263 MB / 4.829 GB, free: 37.62 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007892/13.28, allocations: 172.7 kB / 4.829 GB, free: 37.61 MB / 0.7761 GB Notification: Performance of SimCode: time 1.322e-06/13.28, allocations: 3.844 kB / 4.829 GB, free: 37.61 MB / 0.7761 GB Notification: Performance of Templates: time 0.1105/13.39, allocations: 73.36 MB / 4.9 GB, free: 32.82 MB / 0.7761 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)