Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001528/0.001528, allocations: 92.8 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002025/0.002025, allocations: 178.5 kB / 16.92 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6977/0.6977, allocations: 115.5 MB / 407.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003767, allocations: 11.98 kB / 495.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1626, allocations: 77.54 MB / 0.5599 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 1.072/1.235, allocations: 298.7 MB / 0.8517 GB, free: 1.746 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03228/1.267, allocations: 25.73 MB / 0.8768 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005743/1.273, allocations: 108.8 kB / 0.8769 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.005282/1.278, allocations: 1.536 MB / 0.8784 GB, free: 1.422 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01762/1.296, allocations: 5.629 MB / 0.8839 GB, free: 1.152 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.008083/1.304, allocations: 2.374 MB / 0.8862 GB, free: 1.098 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01576/1.319, allocations: 12.41 MB / 0.8983 GB, free: 1.074 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005126/1.325, allocations: 2.982 MB / 0.9012 GB, free: 16.56 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01155/1.336, allocations: 3.564 MB / 0.9047 GB, free: 16.5 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007085/1.343, allocations: 2.927 MB / 0.9076 GB, free: 16.48 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0007407/1.344, allocations: 150.8 kB / 0.9077 GB, free: 16.48 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01172/1.356, allocations: 5.277 MB / 0.9129 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.002386/1.358, allocations: 1.428 MB / 0.9143 GB, free: 15 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.004122/1.362, allocations: 1.884 MB / 0.9161 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01087/1.373, allocations: 6.747 MB / 0.9227 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/1.373, allocations: 4 kB / 0.9227 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.634e-06/1.373, allocations: 2.375 kB / 0.9227 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.911e-05/1.373, allocations: 0 / 0.9227 GB, free: 11.78 MB / 0.6544 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.005749/1.379, allocations: 3.428 MB / 0.9261 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/1.379, allocations: 13.64 kB / 0.9261 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/1.384, allocations: 0.9396 MB / 0.927 GB, free: 9.266 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00383/1.388, allocations: 2.271 MB / 0.9292 GB, free: 8.227 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/1.389, allocations: 271.7 kB / 0.9295 GB, free: 8.156 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/1.389, allocations: 286.7 kB / 0.9297 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005858/1.395, allocations: 3.374 MB / 0.933 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.258e-05/1.395, allocations: 7.594 kB / 0.933 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002487/1.395, allocations: 115.2 kB / 0.9332 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/1.395, allocations: 109.6 kB / 0.9333 GB, free: 7.223 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004748/1.4, allocations: 2.803 MB / 0.936 GB, free: 6.742 MB / 0.6544 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.01683/1.417, allocations: 13.26 MB / 0.9489 GB, free: 11.34 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/1.419, allocations: 1.685 MB / 0.9506 GB, free: 10.12 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/1.421, allocations: 1.118 MB / 0.9517 GB, free: 9.004 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004791/1.421, allocations: 322.9 kB / 0.952 GB, free: 8.641 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/1.422, allocations: 56.56 kB / 0.952 GB, free: 8.578 MB / 0.67 GB Notification: Performance of pre-optimization done (n=182): time 3.737e-06/1.422, allocations: 4 kB / 0.952 GB, free: 8.574 MB / 0.67 GB Notification: Performance of matching and sorting (n=182): time 0.005025/1.427, allocations: 2.734 MB / 0.9547 GB, free: 5.84 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/1.427, allocations: 77.41 kB / 0.9548 GB, free: 5.75 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/1.429, allocations: 2.001 MB / 0.9567 GB, free: 3.73 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002561/1.43, allocations: 69.7 kB / 0.9568 GB, free: 3.656 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.001054/1.431, allocations: 1.404 MB / 0.9582 GB, free: 2.242 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.000657/1.431, allocations: 0.639 MB / 0.9588 GB, free: 1.609 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/1.432, allocations: 173.6 kB / 0.959 GB, free: 1.434 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.128e-05/1.432, allocations: 301.1 kB / 0.9593 GB, free: 1.137 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/1.433, allocations: 0.8082 MB / 0.9601 GB, free: 332 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/1.435, allocations: 1.41 MB / 0.9614 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/1.438, allocations: 2.258 MB / 0.9636 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/1.438, allocations: 4 kB / 0.9636 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004209/1.442, allocations: 2.505 MB / 0.9661 GB, free: 9.844 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003612/1.442, allocations: 496.8 kB / 0.9666 GB, free: 9.184 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/1.442, allocations: 12 kB / 0.9666 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.843e-05/1.442, allocations: 24 kB / 0.9666 GB, free: 9.148 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002457/1.445, allocations: 0.5557 MB / 0.9671 GB, free: 8.621 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/1.447, allocations: 4.159 MB / 0.9712 GB, free: 4.316 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004202/1.451, allocations: 399.3 kB / 0.9716 GB, free: 3.926 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/1.452, allocations: 87.98 kB / 0.9717 GB, free: 3.84 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/1.452, allocations: 4 kB / 0.9717 GB, free: 3.836 MB / 0.6856 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003375/1.455, allocations: 2.231 MB / 0.9738 GB, free: 1.688 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/1.455, allocations: 12 kB / 0.9739 GB, free: 1.676 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/1.455, allocations: 24 kB / 0.9739 GB, free: 1.652 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/1.457, allocations: 469.4 kB / 0.9743 GB, free: 1.223 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.863e-05/1.457, allocations: 37.52 kB / 0.9744 GB, free: 1.191 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003326/1.46, allocations: 382 kB / 0.9747 GB, free: 0.8164 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/1.46, allocations: 87.94 kB / 0.9748 GB, free: 0.7305 MB / 0.6856 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.001738/1.462, allocations: 0.8629 MB / 0.9757 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006748/1.463, allocations: 272.8 kB / 0.9759 GB, free: 15.62 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003461/1.466, allocations: 2.102 MB / 0.978 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/1.466, allocations: 16 kB / 0.978 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/1.466, allocations: 4 kB / 0.978 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002554/1.469, allocations: 1.895 MB / 0.9798 GB, free: 11.54 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009271/1.478, allocations: 5.177 MB / 0.9849 GB, free: 6.324 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.478, allocations: 7.375 kB / 0.9849 GB, free: 6.32 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00228/1.481, allocations: 0.4967 MB / 0.9854 GB, free: 5.844 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.841e-05/1.481, allocations: 8 kB / 0.9854 GB, free: 5.836 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/1.481, allocations: 55.97 kB / 0.9854 GB, free: 5.781 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/1.483, allocations: 4.126 MB / 0.9895 GB, free: 1.504 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.483, allocations: 7.938 kB / 0.9895 GB, free: 1.496 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005343/1.488, allocations: 3.23 MB / 0.9926 GB, free: 14.22 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/1.49, allocations: 0.5715 MB / 0.9932 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/1.49, allocations: 44 kB / 0.9932 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/1.492, allocations: 244.5 kB / 0.9935 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/1.493, allocations: 115.7 kB / 0.9936 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/1.493, allocations: 75.95 kB / 0.9937 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002027/1.495, allocations: 1.33 MB / 0.9949 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.843e-06/1.495, allocations: 0 / 0.9949 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004096/1.499, allocations: 1.722 MB / 0.9966 GB, free: 10.09 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,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.000787/1.5, allocations: 351 kB / 0.997 GB, free: 9.785 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005892/1.506, allocations: 3.323 MB / 1 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.506, allocations: 4 kB / 1 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001602/1.507, allocations: 1.025 MB / 1.001 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008922/1.516, allocations: 1.601 MB / 1.003 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/1.529, allocations: 8.162 MB / 1.011 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001912/1.531, allocations: 2.193 MB / 1.013 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.004085/1.535, allocations: 1.096 MB / 1.014 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006372/1.536, allocations: 215.4 kB / 1.014 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of SimCode: time 1.282e-06/1.536, allocations: 0 / 1.014 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of Templates: time 0.1176/1.653, allocations: 52.66 MB / 1.066 GB, free: 4.398 MB / 0.7794 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)