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.001054/0.001054, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001321/0.001321, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 274.6 kB / 291.4 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9556/0.9556, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004016, allocations: 16.47 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1372, allocations: 88.55 MB / 0.6845 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4451/0.5824, allocations: 177.5 MB / 0.8579 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01461/0.597, allocations: 13.28 MB / 0.8708 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007307/0.5978, allocations: 28.81 kB / 0.8709 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.5988, allocations: 350 kB / 0.8712 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003103/0.6019, allocations: 1.379 MB / 0.8725 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.6036, allocations: 0.6745 MB / 0.8732 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002699/0.6064, allocations: 3.054 MB / 0.8762 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009565/0.6073, allocations: 0.8051 MB / 0.877 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001987/0.6093, allocations: 1.195 MB / 0.8781 GB, free: 8.531 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.6104, allocations: 0.8941 MB / 0.879 GB, free: 8.047 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.6106, allocations: 46.31 kB / 0.879 GB, free: 8.047 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.6118, allocations: 0.5704 MB / 0.8796 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004078/0.6123, allocations: 447.9 kB / 0.88 GB, free: 7.5 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.6125, allocations: 252.7 kB / 0.8803 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.6137, allocations: 1.353 MB / 0.8816 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.6137, allocations: 0 / 0.8816 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.715e-06/0.6137, allocations: 0 / 0.8816 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.402e-05/0.6138, allocations: 6.75 kB / 0.8816 GB, free: 6.48 MB / 0.5919 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.001762/0.6155, allocations: 1.24 MB / 0.8828 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.6156, allocations: 8.031 kB / 0.8828 GB, free: 5.227 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.6168, allocations: 256.2 kB / 0.8831 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.6183, allocations: 0.8238 MB / 0.8839 GB, free: 4.117 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.177e-05/0.6183, allocations: 66 kB / 0.8839 GB, free: 4.051 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.6185, allocations: 96 kB / 0.884 GB, free: 3.957 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.6201, allocations: 1.165 MB / 0.8852 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.6202, allocations: 3.938 kB / 0.8852 GB, free: 2.719 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.331e-05/0.6203, allocations: 40 kB / 0.8852 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.039e-05/0.6203, allocations: 41.92 kB / 0.8852 GB, free: 2.637 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.6217, allocations: 0.9015 MB / 0.8861 GB, free: 1.734 MB / 0.5919 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.005161/0.6268, allocations: 5.751 MB / 0.8917 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008444/0.6277, allocations: 0.5765 MB / 0.8923 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000455/0.6282, allocations: 331.4 kB / 0.8926 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005506/0.6287, allocations: 323.7 kB / 0.8929 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.6288, allocations: 42.94 kB / 0.893 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=51): time 1.854e-06/0.6288, allocations: 0 / 0.893 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=51): time 0.001445/0.6302, allocations: 0.8143 MB / 0.8938 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.6303, allocations: 93.61 kB / 0.8938 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008499/0.6312, allocations: 0.7431 MB / 0.8946 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.6312, allocations: 37.7 kB / 0.8946 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.6316, allocations: 0.5103 MB / 0.8951 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.6317, allocations: 181.4 kB / 0.8953 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.6318, allocations: 16 kB / 0.8953 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.6319, allocations: 334 kB / 0.8956 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.6323, allocations: 253.8 kB / 0.8959 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006185/0.6329, allocations: 0.5769 MB / 0.8964 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005027/0.6334, allocations: 348.6 kB / 0.8968 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.6335, allocations: 4 kB / 0.8968 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00125/0.6347, allocations: 0.8659 MB / 0.8976 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.6347, allocations: 8 kB / 0.8976 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.6348, allocations: 8 kB / 0.8976 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.6348, allocations: 12 kB / 0.8976 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.6353, allocations: 167.7 kB / 0.8978 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.6354, allocations: 15.92 kB / 0.8978 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007954/0.6362, allocations: 151.3 kB / 0.8979 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/0.6362, allocations: 32 kB / 0.898 GB, free: 4.844 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003821/0.6366, allocations: 334.1 kB / 0.8983 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.6368, allocations: 94.92 kB / 0.8984 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009889/0.6378, allocations: 0.6296 MB / 0.899 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.6378, allocations: 4 kB / 0.899 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6378, allocations: 0 / 0.899 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007139/0.6385, allocations: 0.5262 MB / 0.8995 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.6409, allocations: 1.777 MB / 0.9013 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.6409, allocations: 0 / 0.9013 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.6414, allocations: 107.9 kB / 0.9014 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.6415, allocations: 4.25 kB / 0.9014 GB, free: 1.27 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.6415, allocations: 20.09 kB / 0.9014 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.6415, allocations: 11.92 kB / 0.9014 GB, free: 1.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6415, allocations: 7.938 kB / 0.9014 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.6428, allocations: 1.045 MB / 0.9024 GB, free: 148 kB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.6431, allocations: 235.9 kB / 0.9026 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.6433, allocations: 12 kB / 0.9027 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.6438, allocations: 69.48 kB / 0.9027 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.6439, allocations: 39.88 kB / 0.9028 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.6439, allocations: 19.98 kB / 0.9028 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005887/0.6445, allocations: 0.5068 MB / 0.9033 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6445, allocations: 0 / 0.9033 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00078/0.6453, allocations: 303.4 kB / 0.9036 GB, free: 14.96 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000426/0.6457, allocations: 220.6 kB / 0.9038 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009143/0.6467, allocations: 0.616 MB / 0.9044 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6467, allocations: 4 kB / 0.9044 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.647, allocations: 284.7 kB / 0.9047 GB, free: 13.85 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/0.6496, allocations: 442.3 kB / 0.9051 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005215/0.6548, allocations: 2.409 MB / 0.9074 GB, free: 10.97 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.6559, allocations: 1.118 MB / 0.9085 GB, free: 9.824 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0015/0.6575, allocations: 283.3 kB / 0.9088 GB, free: 9.543 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003155/0.6578, allocations: 79.36 kB / 0.9089 GB, free: 9.465 MB / 0.6231 GB Notification: Performance of SimCode: time 6.01e-07/0.6578, allocations: 0 / 0.9089 GB, free: 9.465 MB / 0.6231 GB Notification: Performance of Templates: time 0.04342/0.7012, allocations: 14.83 MB / 0.9234 GB, free: 10.88 MB / 0.6387 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)