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: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009099/0.00091, allocations: 91.84 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.005778/0.005778, allocations: 172.3 kB / 16.26 MB, free: 6.676 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.249/1.249, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001651/0.001651, allocations: 271 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.8492/0.8492, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 15.61 kB / 0.5988 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.3967/0.5222, allocations: 190.3 MB / 0.8711 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01335/0.5356, allocations: 14.21 MB / 0.8849 GB, free: 1.922 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004706/0.5361, allocations: 35.81 kB / 0.885 GB, free: 1.906 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009789/0.5371, allocations: 420.3 kB / 0.8854 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.5401, allocations: 1.765 MB / 0.8871 GB, free: 240 kB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.5416, allocations: 0.7753 MB / 0.8879 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002644/0.5443, allocations: 3.624 MB / 0.8914 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009124/0.5452, allocations: 0.9079 MB / 0.8923 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003056/0.5483, allocations: 1.408 MB / 0.8937 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.5494, allocations: 0.9257 MB / 0.8946 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.137e-05/0.5495, allocations: 44 kB / 0.8946 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.551, allocations: 1.243 MB / 0.8958 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003465/0.5514, allocations: 442.7 kB / 0.8962 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004648/0.5519, allocations: 0.5809 MB / 0.8968 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001533/0.5534, allocations: 1.896 MB / 0.8987 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.5534, allocations: 0 / 0.8987 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5534, allocations: 0 / 0.8987 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.5534, allocations: 4 kB / 0.8987 GB, free: 5.402 MB / 0.6075 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.001531/0.555, allocations: 1.224 MB / 0.8999 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.555, allocations: 12.03 kB / 0.8999 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.5552, allocations: 151.5 kB / 0.9 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.5563, allocations: 254.3 kB / 0.9003 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009255/0.5573, allocations: 0.7493 MB / 0.901 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.5573, allocations: 70 kB / 0.9011 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.5575, allocations: 95.91 kB / 0.9011 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.5589, allocations: 1.176 MB / 0.9023 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.5589, allocations: 0 / 0.9023 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.559, allocations: 43.94 kB / 0.9023 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.559, allocations: 38 kB / 0.9024 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.5602, allocations: 0.9015 MB / 0.9033 GB, free: 0.5273 MB / 0.6075 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.004308/0.5645, allocations: 5.727 MB / 0.9088 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/0.5653, allocations: 0.5367 MB / 0.9094 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003739/0.5657, allocations: 318.6 kB / 0.9097 GB, free: 9.488 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005098/0.5662, allocations: 323.8 kB / 0.91 GB, free: 9.117 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.5662, allocations: 46.92 kB / 0.91 GB, free: 9.059 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.5662, allocations: 0 / 0.91 GB, free: 9.059 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001227/0.5674, allocations: 0.8064 MB / 0.9108 GB, free: 8.25 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.5675, allocations: 59.84 kB / 0.9109 GB, free: 8.18 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007413/0.5682, allocations: 0.7432 MB / 0.9116 GB, free: 7.426 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.5683, allocations: 37.7 kB / 0.9116 GB, free: 7.383 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.5686, allocations: 0.5026 MB / 0.9121 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.5687, allocations: 181.5 kB / 0.9123 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.169e-05/0.5688, allocations: 61.69 kB / 0.9124 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.212e-05/0.5689, allocations: 337.9 kB / 0.9127 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.5692, allocations: 241.9 kB / 0.9129 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.5697, allocations: 0.5663 MB / 0.9135 GB, free: 5.352 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008506/0.5706, allocations: 0.7918 MB / 0.9142 GB, free: 4.449 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.5706, allocations: 7.938 kB / 0.9142 GB, free: 4.441 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001417/0.572, allocations: 0.8429 MB / 0.9151 GB, free: 3.59 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.5721, allocations: 8 kB / 0.9151 GB, free: 3.582 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.5721, allocations: 8 kB / 0.9151 GB, free: 3.574 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.5721, allocations: 12 kB / 0.9151 GB, free: 3.562 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004701/0.5726, allocations: 155.8 kB / 0.9152 GB, free: 3.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.5726, allocations: 23.92 kB / 0.9153 GB, free: 3.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.5733, allocations: 152 kB / 0.9154 GB, free: 3.238 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.5734, allocations: 35.94 kB / 0.9154 GB, free: 3.203 MB / 0.6231 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.0003262/0.5737, allocations: 329.5 kB / 0.9158 GB, free: 2.871 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.5738, allocations: 86.97 kB / 0.9158 GB, free: 2.785 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008582/0.5747, allocations: 0.6218 MB / 0.9164 GB, free: 2.152 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.5747, allocations: 4 kB / 0.9165 GB, free: 2.148 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5747, allocations: 0 / 0.9165 GB, free: 2.148 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006164/0.5753, allocations: 0.5173 MB / 0.917 GB, free: 1.621 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.5774, allocations: 1.674 MB / 0.9186 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5774, allocations: 3.938 kB / 0.9186 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.5778, allocations: 111.9 kB / 0.9187 GB, free: 15.75 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.5778, allocations: 4 kB / 0.9187 GB, free: 15.75 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.5779, allocations: 12 kB / 0.9187 GB, free: 15.73 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.5779, allocations: 7.984 kB / 0.9187 GB, free: 15.73 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.5779, allocations: 7.984 kB / 0.9187 GB, free: 15.72 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.579, allocations: 1.023 MB / 0.9197 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.5793, allocations: 227.9 kB / 0.92 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.731e-05/0.5794, allocations: 15.98 kB / 0.92 GB, free: 14.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005053/0.5799, allocations: 59.89 kB / 0.92 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.5799, allocations: 35.89 kB / 0.9201 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.58, allocations: 19.98 kB / 0.9201 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0005229/0.5805, allocations: 0.5146 MB / 0.9206 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5805, allocations: 0 / 0.9206 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0006507/0.5812, allocations: 295.3 kB / 0.9209 GB, free: 13.48 MB / 0.6387 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.001588/0.5828, allocations: 1.665 MB / 0.9225 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0007578/0.5835, allocations: 0.6073 MB / 0.9231 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5835, allocations: 0 / 0.9231 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003266/0.5839, allocations: 269.2 kB / 0.9233 GB, free: 10.92 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002025/0.5859, allocations: 442.2 kB / 0.9238 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008189/0.5941, allocations: 7.952 MB / 0.9315 GB, free: 2.125 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.5947, allocations: 1.122 MB / 0.9326 GB, free: 0.9766 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000678/0.5954, allocations: 263.1 kB / 0.9329 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/0.5958, allocations: 363.3 kB / 0.9332 GB, free: 368 kB / 0.6387 GB Notification: Performance of SimCode: time 3.91e-07/0.5958, allocations: 0 / 0.9332 GB, free: 368 kB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.633/5.229, allocations: 22.1 MB / 0.9548 GB, free: 10.65 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/5.229, allocations: 251.8 kB / 0.955 GB, free: 10.39 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/7.288, allocations: 0 / 0.955 GB, free: 10.39 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)