Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_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.0009877/0.0009878, allocations: 90.52 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.008714/0.008714, allocations: 171.1 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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002992, allocations: 8 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6169/0.6172, allocations: 142.4 MB / 0.9552 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1881/0.8054, allocations: 190.3 MB / 1.141 GB, free: 324 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01509/0.8205, allocations: 14.21 MB / 1.155 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009147/0.8214, allocations: 35.75 kB / 1.155 GB, free: 2.023 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.8226, allocations: 413.7 kB / 1.155 GB, free: 1.617 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003723/0.8264, allocations: 1.778 MB / 1.157 GB, free: 15.83 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.8282, allocations: 0.7773 MB / 1.158 GB, free: 15.06 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003142/0.8313, allocations: 3.621 MB / 1.161 GB, free: 11.43 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.8324, allocations: 0.9001 MB / 1.162 GB, free: 10.51 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.836, allocations: 1.399 MB / 1.164 GB, free: 9.117 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.8372, allocations: 0.9263 MB / 1.165 GB, free: 8.191 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.554e-05/0.8373, allocations: 48 kB / 1.165 GB, free: 8.145 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.8393, allocations: 1.243 MB / 1.166 GB, free: 6.898 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003752/0.8397, allocations: 434.8 kB / 1.166 GB, free: 6.473 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0005221/0.8402, allocations: 0.5925 MB / 1.167 GB, free: 5.871 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001724/0.842, allocations: 1.885 MB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.842, allocations: 4 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.422e-06/0.842, allocations: 0 / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.842, allocations: 0 / 1.169 GB, free: 3.977 MB / 0.92 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.001695/0.8437, allocations: 1.235 MB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.8437, allocations: 8.031 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.8439, allocations: 143.6 kB / 1.17 GB, free: 2.531 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.8451, allocations: 254.4 kB / 1.17 GB, free: 2.281 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.8462, allocations: 0.7531 MB / 1.171 GB, free: 1.484 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.8462, allocations: 74 kB / 1.171 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.8463, allocations: 88 kB / 1.171 GB, free: 1.324 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.8479, allocations: 1.177 MB / 1.172 GB, free: 80 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.8479, allocations: 3.938 kB / 1.172 GB, free: 76 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.776e-05/0.848, allocations: 39.94 kB / 1.172 GB, free: 36 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.774e-05/0.8481, allocations: 34 kB / 1.172 GB, free: 0 / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.8494, allocations: 0.9054 MB / 1.173 GB, free: 15.09 MB / 0.9356 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.004853/0.8542, allocations: 5.743 MB / 1.179 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007829/0.855, allocations: 0.5316 MB / 1.179 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.8554, allocations: 310.6 kB / 1.18 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005651/0.856, allocations: 327.7 kB / 1.18 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.856, allocations: 39 kB / 1.18 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 2.044e-06/0.856, allocations: 4 kB / 1.18 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001349/0.8574, allocations: 0.7987 MB / 1.181 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.8574, allocations: 63.83 kB / 1.181 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008009/0.8583, allocations: 0.747 MB / 1.182 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.8583, allocations: 37.7 kB / 1.182 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003336/0.8586, allocations: 0.5065 MB / 1.182 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.8588, allocations: 177.5 kB / 1.182 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.8589, allocations: 69.67 kB / 1.182 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.859, allocations: 337.9 kB / 1.183 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.8593, allocations: 245.9 kB / 1.183 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.8599, allocations: 0.5469 MB / 1.183 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008951/0.8608, allocations: 0.8034 MB / 1.184 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.8608, allocations: 8 kB / 1.184 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001143/0.8619, allocations: 0.8423 MB / 1.185 GB, free: 2.152 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.862, allocations: 8 kB / 1.185 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.862, allocations: 11.94 kB / 1.185 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.862, allocations: 12 kB / 1.185 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005263/0.8625, allocations: 152.4 kB / 1.185 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.8626, allocations: 23.86 kB / 1.185 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008478/0.8634, allocations: 150.9 kB / 1.185 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.912e-05/0.8635, allocations: 36 kB / 1.185 GB, free: 1.766 MB / 0.9356 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.0003937/0.8639, allocations: 336 kB / 1.186 GB, free: 1.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.864, allocations: 86.97 kB / 1.186 GB, free: 1.344 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009297/0.8649, allocations: 0.6102 MB / 1.186 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.865, allocations: 4 kB / 1.186 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.865, allocations: 4 kB / 1.186 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000648/0.8656, allocations: 0.5211 MB / 1.187 GB, free: 188 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.8678, allocations: 1.671 MB / 1.189 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.8679, allocations: 4 kB / 1.189 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/0.8683, allocations: 112 kB / 1.189 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.8684, allocations: 8 kB / 1.189 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.8684, allocations: 16 kB / 1.189 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.8684, allocations: 4 kB / 1.189 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.8684, allocations: 0 / 1.189 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.8696, allocations: 1.023 MB / 1.19 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.8699, allocations: 224 kB / 1.19 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.892e-05/0.87, allocations: 12.14 kB / 1.19 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005628/0.8705, allocations: 67.78 kB / 1.19 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.8706, allocations: 39.94 kB / 1.19 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.8706, allocations: 20 kB / 1.19 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005861/0.8712, allocations: 0.5107 MB / 1.191 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8712, allocations: 0 / 1.191 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009305/0.8722, allocations: 303.3 kB / 1.191 GB, free: 12.05 MB / 0.9512 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.001957/0.8741, allocations: 1.668 MB / 1.192 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009464/0.8751, allocations: 0.6 MB / 1.193 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.8751, allocations: 4 kB / 1.193 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.8755, allocations: 284.5 kB / 1.193 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.8778, allocations: 435.1 kB / 1.194 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009742/0.8875, allocations: 7.943 MB / 1.201 GB, free: 0.6914 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007693/0.8883, allocations: 1.118 MB / 1.203 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0008752/0.8892, allocations: 267.1 kB / 1.203 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/0.8897, allocations: 359.3 kB / 1.203 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of SimCode: time 8.72e-07/0.8897, allocations: 0 / 1.203 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.18/2.07, allocations: 22.08 MB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/2.07, allocations: 240.2 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.716/6.786, allocations: 0 / 1.225 GB, free: 8.957 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)