Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 105.3 kB / 16.36 MB, free: 5.828 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.001242/0.001242, allocations: 189.4 kB / 17.29 MB, free: 5.484 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002167/0.002167, allocations: 285.1 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001696, allocations: 98.7 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1706, allocations: 86.98 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4539/0.6246, allocations: 195.1 MB / 0.8721 GB, free: 11.31 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01769/0.6424, allocations: 14.32 MB / 0.8861 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.6435, allocations: 35.81 kB / 0.8861 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.6451, allocations: 0.4929 MB / 0.8866 GB, free: 12.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005002/0.6502, allocations: 1.89 MB / 0.8884 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.002662/0.6528, allocations: 0.8632 MB / 0.8893 GB, free: 9.66 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003545/0.6564, allocations: 2.572 MB / 0.8918 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001846/0.6583, allocations: 1.116 MB / 0.8929 GB, free: 5.949 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004325/0.6626, allocations: 1.602 MB / 0.8944 GB, free: 4.363 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001869/0.6645, allocations: 0.9185 MB / 0.8953 GB, free: 3.441 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002869/0.6648, allocations: 108 kB / 0.8954 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002454/0.6672, allocations: 1.091 MB / 0.8965 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006816/0.6679, allocations: 0.5026 MB / 0.897 GB, free: 1.738 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.6694, allocations: 0.6339 MB / 0.8976 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.6726, allocations: 1.912 MB / 0.8995 GB, free: 15.18 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6726, allocations: 0 / 0.8995 GB, free: 15.18 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6726, allocations: 7.938 kB / 0.8995 GB, free: 15.18 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.514e-05/0.6727, allocations: 0 / 0.8995 GB, free: 15.18 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002742/0.6754, allocations: 1.446 MB / 0.9009 GB, free: 13.68 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.6755, allocations: 12.03 kB / 0.9009 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.6768, allocations: 250.3 kB / 0.9012 GB, free: 13.42 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.6784, allocations: 0.7998 MB / 0.9019 GB, free: 12.58 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/0.6784, allocations: 66 kB / 0.902 GB, free: 12.52 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.6786, allocations: 92 kB / 0.9021 GB, free: 12.43 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.6803, allocations: 1.169 MB / 0.9032 GB, free: 11.19 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/0.6804, allocations: 15.94 kB / 0.9032 GB, free: 11.17 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.6805, allocations: 39.94 kB / 0.9033 GB, free: 11.13 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.373e-05/0.6806, allocations: 37.94 kB / 0.9033 GB, free: 11.09 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.6822, allocations: 0.9015 MB / 0.9042 GB, free: 10.19 MB / 0.67 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.005626/0.6879, allocations: 5.739 MB / 0.9098 GB, free: 3.992 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008125/0.6887, allocations: 0.5367 MB / 0.9103 GB, free: 3.449 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004257/0.6891, allocations: 314.6 kB / 0.9106 GB, free: 3.141 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005937/0.6898, allocations: 311.8 kB / 0.9109 GB, free: 2.781 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.6898, allocations: 42.98 kB / 0.911 GB, free: 2.73 MB / 0.67 GB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.6898, allocations: 0 / 0.911 GB, free: 2.73 MB / 0.67 GB Notification: Performance of matching and sorting (n=49): time 0.001472/0.6913, allocations: 0.8065 MB / 0.9118 GB, free: 1.918 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.6913, allocations: 59.84 kB / 0.9118 GB, free: 1.848 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008411/0.6922, allocations: 0.747 MB / 0.9125 GB, free: 1.094 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/0.6922, allocations: 37.7 kB / 0.9126 GB, free: 1.051 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.6926, allocations: 0.5103 MB / 0.9131 GB, free: 0.5312 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.6927, allocations: 177.5 kB / 0.9132 GB, free: 364 kB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.6929, allocations: 142.5 kB / 0.9134 GB, free: 216 kB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.6931, allocations: 345.9 kB / 0.9137 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000363/0.6935, allocations: 245.9 kB / 0.9139 GB, free: 15.63 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.6941, allocations: 0.5546 MB / 0.9145 GB, free: 14.94 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009712/0.695, allocations: 0.7956 MB / 0.9153 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.6951, allocations: 7.984 kB / 0.9153 GB, free: 14.03 MB / 0.6856 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001197/0.6963, allocations: 0.8425 MB / 0.9161 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.6963, allocations: 10.19 kB / 0.9161 GB, free: 13.17 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.6963, allocations: 8 kB / 0.9161 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.6963, allocations: 12 kB / 0.9161 GB, free: 13.15 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/0.6969, allocations: 155.8 kB / 0.9163 GB, free: 13 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.6969, allocations: 19.92 kB / 0.9163 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006618/0.6976, allocations: 91.61 kB / 0.9164 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.6976, allocations: 32 kB / 0.9164 GB, free: 12.86 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003686/0.698, allocations: 335.8 kB / 0.9167 GB, free: 12.52 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.6982, allocations: 86.97 kB / 0.9168 GB, free: 12.44 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009418/0.6991, allocations: 0.6102 MB / 0.9174 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.6991, allocations: 7.938 kB / 0.9174 GB, free: 11.81 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.6991, allocations: 4 kB / 0.9174 GB, free: 11.81 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007012/0.6998, allocations: 0.525 MB / 0.9179 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.7022, allocations: 1.667 MB / 0.9196 GB, free: 9.523 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.7022, allocations: 4 kB / 0.9196 GB, free: 9.52 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005201/0.7027, allocations: 115.8 kB / 0.9197 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.7027, allocations: 4 kB / 0.9197 GB, free: 9.402 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.7028, allocations: 16 kB / 0.9197 GB, free: 9.387 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.7028, allocations: 7.938 kB / 0.9197 GB, free: 9.379 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.7028, allocations: 0 / 0.9197 GB, free: 9.379 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.704, allocations: 1.019 MB / 0.9207 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.7044, allocations: 231.9 kB / 0.9209 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.676e-05/0.7045, allocations: 8 kB / 0.9209 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004475/0.705, allocations: 27.92 kB / 0.921 GB, free: 8.039 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.705, allocations: 31.95 kB / 0.921 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.561e-05/0.7051, allocations: 16 kB / 0.921 GB, free: 7.992 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0005764/0.7057, allocations: 0.5107 MB / 0.9215 GB, free: 7.484 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7057, allocations: 0 / 0.9215 GB, free: 7.484 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0007919/0.7065, allocations: 295.4 kB / 0.9218 GB, free: 7.195 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.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 (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004681/0.7069, allocations: 230.9 kB / 0.922 GB, free: 6.977 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0008962/0.7078, allocations: 0.6041 MB / 0.9226 GB, free: 6.379 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7078, allocations: 4.188 kB / 0.9226 GB, free: 6.375 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.7082, allocations: 279.7 kB / 0.9229 GB, free: 6.102 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.7099, allocations: 429.3 kB / 0.9233 GB, free: 5.695 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.7127, allocations: 1.931 MB / 0.9252 GB, free: 3.715 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/0.7134, allocations: 1.118 MB / 0.9262 GB, free: 2.57 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0006711/0.714, allocations: 279 kB / 0.9265 GB, free: 2.293 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.7142, allocations: 75.42 kB / 0.9266 GB, free: 2.219 MB / 0.6856 GB Notification: Performance of SimCode: time 2.6e-07/0.7142, allocations: 0 / 0.9266 GB, free: 2.219 MB / 0.6856 GB Notification: Performance of Templates: time 0.0253/0.7395, allocations: 15.39 MB / 0.9416 GB, free: 3.094 MB / 0.7012 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)