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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001493/0.001493, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.265/1.265, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 390.3 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 67.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5799/0.5813, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1675/0.7489, allocations: 195.1 MB / 1.14 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01407/0.763, allocations: 14.31 MB / 1.154 GB, free: 15.68 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008298/0.7638, allocations: 35.81 kB / 1.154 GB, free: 15.64 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.765, allocations: 0.4929 MB / 1.155 GB, free: 15.15 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.7684, allocations: 1.909 MB / 1.157 GB, free: 13.23 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001696/0.7701, allocations: 0.8503 MB / 1.157 GB, free: 12.39 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002017/0.7721, allocations: 2.561 MB / 1.16 GB, free: 9.816 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.7732, allocations: 1.115 MB / 1.161 GB, free: 8.68 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002782/0.776, allocations: 1.591 MB / 1.163 GB, free: 7.098 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.777, allocations: 0.9304 MB / 1.163 GB, free: 6.168 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.7771, allocations: 104 kB / 1.164 GB, free: 6.066 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.7787, allocations: 1.095 MB / 1.165 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003822/0.7791, allocations: 0.4987 MB / 1.165 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0005283/0.7797, allocations: 0.6299 MB / 1.166 GB, free: 3.836 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.7813, allocations: 1.885 MB / 1.168 GB, free: 1.945 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.7814, allocations: 4 kB / 1.168 GB, free: 1.941 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7814, allocations: 0 / 1.168 GB, free: 1.941 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.31e-05/0.7814, allocations: 3.984 kB / 1.168 GB, free: 1.938 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.001722/0.7831, allocations: 1.445 MB / 1.169 GB, free: 448 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.7831, allocations: 12.03 kB / 1.169 GB, free: 436 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.7833, allocations: 143.6 kB / 1.169 GB, free: 284 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.7845, allocations: 254.3 kB / 1.169 GB, free: 28 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009674/0.7855, allocations: 0.7531 MB / 1.17 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.7855, allocations: 69.94 kB / 1.17 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.7857, allocations: 99.98 kB / 1.17 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.7871, allocations: 1.161 MB / 1.171 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.7871, allocations: 4 kB / 1.171 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.376e-05/0.7872, allocations: 47.92 kB / 1.171 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.7872, allocations: 34 kB / 1.172 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.7884, allocations: 0.9015 MB / 1.172 GB, free: 12.85 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.004477/0.7929, allocations: 5.774 MB / 1.178 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/0.7936, allocations: 0.5243 MB / 1.179 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.794, allocations: 326.6 kB / 1.179 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005198/0.7945, allocations: 315.7 kB / 1.179 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.7946, allocations: 42.94 kB / 1.179 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 1.483e-06/0.7946, allocations: 0 / 1.179 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001273/0.7958, allocations: 0.7948 MB / 1.18 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.7959, allocations: 59.84 kB / 1.18 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.7966, allocations: 0.7587 MB / 1.181 GB, free: 3.715 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.7967, allocations: 37.7 kB / 1.181 GB, free: 3.672 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000299/0.797, allocations: 0.5064 MB / 1.181 GB, free: 3.156 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.7971, allocations: 177.5 kB / 1.181 GB, free: 2.98 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.7973, allocations: 138.6 kB / 1.182 GB, free: 2.84 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.7974, allocations: 337.9 kB / 1.182 GB, free: 2.504 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.7977, allocations: 249.8 kB / 1.182 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.7983, allocations: 0.5585 MB / 1.183 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000854/0.7991, allocations: 0.7918 MB / 1.183 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.7992, allocations: 4 kB / 1.183 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00112/0.8003, allocations: 0.8466 MB / 1.184 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.8003, allocations: 12.22 kB / 1.184 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.8003, allocations: 8 kB / 1.184 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.8003, allocations: 15.94 kB / 1.184 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.8008, allocations: 155.7 kB / 1.185 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.8009, allocations: 15.94 kB / 1.185 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006184/0.8015, allocations: 95.08 kB / 1.185 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/0.8015, allocations: 35.98 kB / 1.185 GB, free: 15.47 MB / 0.9512 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.0003324/0.8019, allocations: 335.4 kB / 1.185 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.802, allocations: 86.97 kB / 1.185 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008495/0.8029, allocations: 0.6257 MB / 1.186 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.8029, allocations: 4 kB / 1.186 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.8029, allocations: 0 / 1.186 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006247/0.8035, allocations: 0.5172 MB / 1.186 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/0.8055, allocations: 1.671 MB / 1.188 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.8055, allocations: 3.984 kB / 1.188 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004682/0.806, allocations: 107.9 kB / 1.188 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.806, allocations: 8.219 kB / 1.188 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.806, allocations: 11.98 kB / 1.188 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.806, allocations: 4 kB / 1.188 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8061, allocations: 7.938 kB / 1.188 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.8072, allocations: 1.023 MB / 1.189 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002595/0.8075, allocations: 220 kB / 1.189 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.8076, allocations: 16 kB / 1.189 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.808, allocations: 11.94 kB / 1.189 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.8081, allocations: 39.89 kB / 1.189 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.8081, allocations: 23.98 kB / 1.189 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005324/0.8086, allocations: 0.5107 MB / 1.19 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8086, allocations: 0 / 1.19 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007018/0.8094, allocations: 303.2 kB / 1.19 GB, free: 9.797 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.001624/0.811, allocations: 1.662 MB / 1.192 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.812, allocations: 0.7118 MB / 1.192 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.812, allocations: 1.938 kB / 1.192 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003246/0.8123, allocations: 275.6 kB / 1.193 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.8141, allocations: 440.3 kB / 1.193 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007929/0.822, allocations: 7.496 MB / 1.2 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005942/0.8226, allocations: 1.122 MB / 1.201 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0007151/0.8234, allocations: 279 kB / 1.202 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.8238, allocations: 359.3 kB / 1.202 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of SimCode: time 3e-07/0.8238, allocations: 3.938 kB / 1.202 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.269/5.092, allocations: 22.87 MB / 1.224 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/17.58, allocations: 10.73 kB / 1.224 GB, free: 6.461 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)