Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_10_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.001562/0.001562, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00179/0.00179, allocations: 193.9 kB / 16.25 MB, free: 6.637 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.266/1.266, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.293/2.293, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 63.89 kB / 0.8689 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4796/0.4809, allocations: 151.6 MB / 1.017 GB, free: 2.68 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.164/0.645, allocations: 192.6 MB / 1.205 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01379/0.6588, allocations: 14.21 MB / 1.219 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005642/0.6594, allocations: 35.81 kB / 1.219 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.6605, allocations: 441.7 kB / 1.219 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003058/0.6636, allocations: 1.77 MB / 1.221 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.6651, allocations: 0.7819 MB / 1.222 GB, free: 96 kB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002134/0.6673, allocations: 2.565 MB / 1.224 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.6683, allocations: 1.076 MB / 1.225 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003126/0.6714, allocations: 1.593 MB / 1.227 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.6725, allocations: 0.9846 MB / 1.228 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.6726, allocations: 104 kB / 1.228 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001379/0.674, allocations: 1.153 MB / 1.229 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003881/0.6744, allocations: 0.4948 MB / 1.23 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005074/0.6749, allocations: 0.6339 MB / 1.23 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001658/0.6766, allocations: 1.959 MB / 1.232 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.6766, allocations: 0 / 1.232 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6766, allocations: 0 / 1.232 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.132e-05/0.6766, allocations: 7.938 kB / 1.232 GB, free: 5.504 MB / 0.9825 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.00177/0.6784, allocations: 1.449 MB / 1.234 GB, free: 4 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.6785, allocations: 8.031 kB / 1.234 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.6786, allocations: 147.5 kB / 1.234 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.6798, allocations: 258.3 kB / 1.234 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009723/0.6808, allocations: 0.7531 MB / 1.235 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.279e-05/0.6809, allocations: 70 kB / 1.235 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.681, allocations: 99.94 kB / 1.235 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.6825, allocations: 1.169 MB / 1.236 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.6825, allocations: 7.984 kB / 1.236 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.6826, allocations: 43.94 kB / 1.236 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.6826, allocations: 30 kB / 1.236 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.6838, allocations: 0.9015 MB / 1.237 GB, free: 416 kB / 0.9825 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.004583/0.6884, allocations: 5.727 MB / 1.243 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007439/0.6892, allocations: 0.5408 MB / 1.243 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/0.6896, allocations: 322.6 kB / 1.243 GB, free: 9.352 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005262/0.6901, allocations: 315.7 kB / 1.244 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.6901, allocations: 38.94 kB / 1.244 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 1.552e-06/0.6902, allocations: 4 kB / 1.244 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001273/0.6914, allocations: 0.7948 MB / 1.245 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.6915, allocations: 55.84 kB / 1.245 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007506/0.6922, allocations: 0.7548 MB / 1.245 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.492e-05/0.6923, allocations: 37.7 kB / 1.245 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003026/0.6926, allocations: 0.5142 MB / 1.246 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.6927, allocations: 173.5 kB / 1.246 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.6929, allocations: 142.5 kB / 1.246 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.947e-05/0.693, allocations: 337.9 kB / 1.246 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003352/0.6934, allocations: 249.8 kB / 1.247 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/0.6939, allocations: 0.5623 MB / 1.247 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008665/0.6948, allocations: 0.7996 MB / 1.248 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6948, allocations: 4 kB / 1.248 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00108/0.6959, allocations: 0.8428 MB / 1.249 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.6959, allocations: 8.188 kB / 1.249 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.6959, allocations: 12 kB / 1.249 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.6959, allocations: 12 kB / 1.249 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.6964, allocations: 155.7 kB / 1.249 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.6964, allocations: 15.94 kB / 1.249 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007303/0.6972, allocations: 150.9 kB / 1.249 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.6972, allocations: 32 kB / 1.249 GB, free: 3 MB / 0.9981 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.000335/0.6976, allocations: 329.5 kB / 1.25 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.6977, allocations: 86.97 kB / 1.25 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000864/0.6986, allocations: 0.6179 MB / 1.25 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.6986, allocations: 15.92 kB / 1.25 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6986, allocations: 0 / 1.25 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006444/0.6993, allocations: 0.5211 MB / 1.251 GB, free: 1.406 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3746/1.074, allocations: 1.667 MB / 1.252 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/1.074, allocations: 1.438 kB / 1.252 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/1.074, allocations: 110.6 kB / 1.252 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.834e-06/1.074, allocations: 4.266 kB / 1.252 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/1.075, allocations: 16.17 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/1.075, allocations: 7.484 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.075, allocations: 2.062 kB / 1.253 GB, free: 235.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/1.076, allocations: 1.023 MB / 1.254 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/1.076, allocations: 222.1 kB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-05/1.076, allocations: 13.98 kB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005342/1.077, allocations: 61.47 kB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.949e-05/1.077, allocations: 35.66 kB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/1.077, allocations: 19.02 kB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006047/1.077, allocations: 0.5133 MB / 1.254 GB, free: 235 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.077, allocations: 0 / 1.254 GB, free: 235 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008054/1.078, allocations: 301.7 kB / 1.255 GB, free: 235 MB / 0.9981 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.00162/1.08, allocations: 1.657 MB / 1.256 GB, free: 233.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001048/1.081, allocations: 0.7184 MB / 1.257 GB, free: 233.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.081, allocations: 0.8438 kB / 1.257 GB, free: 233.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003491/1.081, allocations: 272.8 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/1.083, allocations: 446.1 kB / 1.258 GB, free: 233.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008821/1.092, allocations: 7.84 MB / 1.265 GB, free: 228.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/1.092, allocations: 1.126 MB / 1.266 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000774/1.093, allocations: 268.6 kB / 1.267 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/1.094, allocations: 363 kB / 1.267 GB, free: 227.8 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/1.094, allocations: 0 / 1.267 GB, free: 227.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.151/2.244, allocations: 22.72 MB / 1.289 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/2.245, allocations: 238.5 kB / 1.289 GB, free: 215.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.533/4.777, allocations: 0 / 1.289 GB, free: 215.2 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)