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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008034/0.0008038, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005851/0.005851, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.352/1.352, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001688/0.001688, allocations: 274 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9267/0.9267, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005428/0.0005428, allocations: 18.66 kB / 0.5986 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1909, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7055/0.8964, allocations: 298.7 MB / 0.9769 GB, free: 4.793 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03746/0.9339, allocations: 25.73 MB / 1.002 GB, free: 10.99 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004761/0.9387, allocations: 107.2 kB / 1.002 GB, free: 10.89 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005395/0.9442, allocations: 1.539 MB / 1.004 GB, free: 9.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.01611/0.9603, allocations: 5.63 MB / 1.009 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.007301/0.9676, allocations: 2.382 MB / 1.011 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01704/0.9847, allocations: 12.41 MB / 1.024 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006036/0.9907, allocations: 2.975 MB / 1.026 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0125/1.003, allocations: 3.547 MB / 1.03 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006784/1.01, allocations: 2.937 MB / 1.033 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001086/1.011, allocations: 155.9 kB / 1.033 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01139/1.023, allocations: 5.276 MB / 1.038 GB, free: 5.934 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.002151/1.025, allocations: 1.426 MB / 1.039 GB, free: 4.504 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.003165/1.028, allocations: 1.879 MB / 1.041 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.4839/1.512, allocations: 6.743 MB / 1.048 GB, free: 23.14 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.512, allocations: 0 / 1.048 GB, free: 23.14 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.773e-06/1.512, allocations: 0 / 1.048 GB, free: 23.14 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0002029/1.512, allocations: 0.75 kB / 1.048 GB, free: 23.14 MB / 0.7481 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.00987/1.522, allocations: 3.431 MB / 1.051 GB, free: 21.66 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/1.522, allocations: 9.938 kB / 1.051 GB, free: 21.66 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006834/1.529, allocations: 0.9448 MB / 1.052 GB, free: 21.45 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005346/1.534, allocations: 2.263 MB / 1.054 GB, free: 20.82 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002524/1.535, allocations: 278.1 kB / 1.055 GB, free: 20.75 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005637/1.535, allocations: 289.4 kB / 1.055 GB, free: 20.75 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006569/1.542, allocations: 3.366 MB / 1.058 GB, free: 20.49 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.629e-05/1.542, allocations: 4.375 kB / 1.058 GB, free: 20.49 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003191/1.542, allocations: 115.5 kB / 1.058 GB, free: 20.49 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/1.542, allocations: 112.1 kB / 1.058 GB, free: 20.48 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004973/1.547, allocations: 2.802 MB / 1.061 GB, free: 20.45 MB / 0.7481 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.01667/1.564, allocations: 13.26 MB / 1.074 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/1.566, allocations: 1.689 MB / 1.076 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/1.568, allocations: 1.106 MB / 1.077 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003811/1.568, allocations: 333.3 kB / 1.077 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/1.568, allocations: 58 kB / 1.077 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=182): time 3.617e-06/1.568, allocations: 0 / 1.077 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of matching and sorting (n=182): time 0.004589/1.573, allocations: 2.748 MB / 1.08 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/1.573, allocations: 69.88 kB / 1.08 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/1.575, allocations: 1.993 MB / 1.082 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000257/1.576, allocations: 72.61 kB / 1.082 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007736/1.576, allocations: 1.409 MB / 1.083 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005779/1.577, allocations: 0.6409 MB / 1.084 GB, free: 11.31 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/1.577, allocations: 167 kB / 1.084 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 3.354e-05/1.577, allocations: 302.9 kB / 1.084 GB, free: 11 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/1.579, allocations: 0.8062 MB / 1.085 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/1.58, allocations: 1.409 MB / 1.087 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002683/1.583, allocations: 2.268 MB / 1.089 GB, free: 9.789 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/1.583, allocations: 2.594 kB / 1.089 GB, free: 9.789 MB / 0.7481 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003854/1.587, allocations: 2.504 MB / 1.091 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001967/1.587, allocations: 0.4894 MB / 1.092 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/1.587, allocations: 13.31 kB / 1.092 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/1.587, allocations: 21.19 kB / 1.092 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002408/1.589, allocations: 0.5599 MB / 1.092 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/1.591, allocations: 4.158 MB / 1.096 GB, free: 20.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00362/1.595, allocations: 396.6 kB / 1.097 GB, free: 20.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/1.595, allocations: 90.33 kB / 1.097 GB, free: 20.75 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/1.595, allocations: 3 kB / 1.097 GB, free: 20.75 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003053/1.598, allocations: 2.234 MB / 1.099 GB, free: 20.69 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/1.598, allocations: 16.12 kB / 1.099 GB, free: 20.69 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/1.598, allocations: 21.75 kB / 1.099 GB, free: 20.69 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/1.6, allocations: 473.6 kB / 1.1 GB, free: 20.69 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.487e-05/1.6, allocations: 31.95 kB / 1.1 GB, free: 20.69 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00333/1.603, allocations: 378 kB / 1.1 GB, free: 20.58 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/1.603, allocations: 85.36 kB / 1.1 GB, free: 20.58 MB / 0.7637 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.00171/1.605, allocations: 0.8626 MB / 1.101 GB, free: 20.38 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005298/1.605, allocations: 267 kB / 1.101 GB, free: 20.25 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/1.609, allocations: 2.116 MB / 1.103 GB, free: 20.12 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/1.609, allocations: 17.59 kB / 1.103 GB, free: 20.12 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/1.609, allocations: 5.875 kB / 1.103 GB, free: 20.12 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002231/1.611, allocations: 1.893 MB / 1.105 GB, free: 19.82 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007708/1.619, allocations: 5.18 MB / 1.11 GB, free: 19.27 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/1.619, allocations: 2.781 kB / 1.11 GB, free: 19.27 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.621, allocations: 0.5006 MB / 1.111 GB, free: 19.27 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/1.621, allocations: 6.406 kB / 1.111 GB, free: 19.27 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/1.621, allocations: 54.8 kB / 1.111 GB, free: 19.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/1.623, allocations: 4.121 MB / 1.115 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/1.623, allocations: 12.84 kB / 1.115 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004347/1.627, allocations: 3.225 MB / 1.118 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/1.629, allocations: 0.5695 MB / 1.118 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003777/1.629, allocations: 46.08 kB / 1.118 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002264/1.631, allocations: 245.7 kB / 1.119 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/1.632, allocations: 115.5 kB / 1.119 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/1.632, allocations: 76.42 kB / 1.119 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001643/1.633, allocations: 1.333 MB / 1.12 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.3e-07/1.633, allocations: 1.859 kB / 1.12 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003907/1.637, allocations: 1.716 MB / 1.122 GB, free: 14 MB / 0.7637 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.0006779/1.638, allocations: 360.6 kB / 1.122 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005146/1.643, allocations: 3.318 MB / 1.125 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.643, allocations: 3.031 kB / 1.125 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001428/1.645, allocations: 1.034 MB / 1.126 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008701/1.653, allocations: 1.592 MB / 1.128 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008996/1.662, allocations: 8.153 MB / 1.136 GB, free: 9.535 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001529/1.664, allocations: 2.192 MB / 1.138 GB, free: 8.738 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003933/1.668, allocations: 1.1 MB / 1.139 GB, free: 8.578 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/1.668, allocations: 214.1 kB / 1.139 GB, free: 8.57 MB / 0.7637 GB Notification: Performance of SimCode: time 6.51e-07/1.668, allocations: 0 / 1.139 GB, free: 8.57 MB / 0.7637 GB Notification: Performance of Templates: time 0.08793/1.756, allocations: 52.68 MB / 1.191 GB, free: 11.61 MB / 0.8106 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)