Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_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.0008788/0.0008788, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005733/0.005733, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.4/1.4, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.676/2.676, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003734, allocations: 16.44 kB / 0.9029 GB, free: 36.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3057, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1898/0.4956, allocations: 190.3 MB / 1.245 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.5962/1.092, allocations: 14.21 MB / 1.259 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/1.093, allocations: 31.31 kB / 1.259 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001262/1.095, allocations: 413.5 kB / 1.259 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00386/1.098, allocations: 1.771 MB / 1.261 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002002/1.1, allocations: 0.7738 MB / 1.261 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003576/1.104, allocations: 3.623 MB / 1.265 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/1.105, allocations: 0.9057 MB / 1.266 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004273/1.11, allocations: 1.407 MB / 1.267 GB, free: 2.535 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/1.111, allocations: 0.918 MB / 1.268 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001172/1.111, allocations: 50.14 kB / 1.268 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00239/1.114, allocations: 1.242 MB / 1.269 GB, free: 2.52 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005706/1.114, allocations: 438 kB / 1.27 GB, free: 2.52 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009126/1.115, allocations: 0.5832 MB / 1.27 GB, free: 18.49 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00292/1.118, allocations: 1.891 MB / 1.272 GB, free: 18.38 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/1.118, allocations: 0.7969 kB / 1.272 GB, free: 18.38 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/1.118, allocations: 4 kB / 1.272 GB, free: 18.38 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.993e-05/1.118, allocations: 0 / 1.272 GB, free: 18.38 MB / 1.014 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.001933/1.12, allocations: 1.23 MB / 1.273 GB, free: 17.62 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/1.12, allocations: 12.91 kB / 1.273 GB, free: 17.62 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001742/1.12, allocations: 146.3 kB / 1.274 GB, free: 17.58 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/1.122, allocations: 250.3 kB / 1.274 GB, free: 17.52 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/1.123, allocations: 0.7566 MB / 1.275 GB, free: 17.21 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/1.123, allocations: 70.33 kB / 1.275 GB, free: 17.2 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/1.123, allocations: 94.97 kB / 1.275 GB, free: 17.2 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/1.125, allocations: 1.165 MB / 1.276 GB, free: 16.98 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/1.125, allocations: 11.12 kB / 1.276 GB, free: 16.97 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.489e-05/1.125, allocations: 45.72 kB / 1.276 GB, free: 16.97 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.129e-05/1.126, allocations: 33.95 kB / 1.276 GB, free: 16.96 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/1.127, allocations: 0.8986 MB / 1.277 GB, free: 16.96 MB / 1.014 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.005296/1.133, allocations: 5.734 MB / 1.282 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/1.133, allocations: 0.5352 MB / 1.283 GB, free: 13.15 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003999/1.134, allocations: 318.3 kB / 1.283 GB, free: 13.14 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006074/1.134, allocations: 336.1 kB / 1.284 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.135, allocations: 37.69 kB / 1.284 GB, free: 12.8 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/1.135, allocations: 1 kB / 1.284 GB, free: 12.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001499/1.136, allocations: 0.8025 MB / 1.284 GB, free: 12.71 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/1.136, allocations: 60.47 kB / 1.284 GB, free: 12.65 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008641/1.137, allocations: 0.7499 MB / 1.285 GB, free: 12.52 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.634e-05/1.137, allocations: 41.33 kB / 1.285 GB, free: 12.48 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/1.137, allocations: 0.5026 MB / 1.286 GB, free: 12.24 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/1.137, allocations: 178.2 kB / 1.286 GB, free: 12.13 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/1.138, allocations: 56.12 kB / 1.286 GB, free: 12.12 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.138, allocations: 337.5 kB / 1.286 GB, free: 11.81 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/1.138, allocations: 253.2 kB / 1.286 GB, free: 11.81 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/1.138, allocations: 0.5504 MB / 1.287 GB, free: 11.45 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009063/1.139, allocations: 0.8047 MB / 1.288 GB, free: 11.14 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/1.139, allocations: 2.125 kB / 1.288 GB, free: 11.14 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00128/1.141, allocations: 0.8501 MB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/1.141, allocations: 9.281 kB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/1.141, allocations: 8.688 kB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/1.141, allocations: 11.81 kB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005692/1.141, allocations: 157.1 kB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.158e-05/1.141, allocations: 20.11 kB / 1.289 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/1.143, allocations: 147 kB / 1.289 GB, free: 10.99 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.282e-05/1.143, allocations: 34.22 kB / 1.289 GB, free: 10.99 MB / 1.014 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.0005228/1.143, allocations: 329.2 kB / 1.289 GB, free: 10.87 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/1.143, allocations: 90.25 kB / 1.289 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009807/1.144, allocations: 0.6218 MB / 1.29 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/1.144, allocations: 4.969 kB / 1.29 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/1.144, allocations: 0 / 1.29 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007325/1.145, allocations: 0.5172 MB / 1.291 GB, free: 10.69 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/1.148, allocations: 1.676 MB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.148, allocations: 1.438 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/1.148, allocations: 107.4 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/1.148, allocations: 3.969 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/1.148, allocations: 14.31 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/1.148, allocations: 6.75 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.148, allocations: 13.17 kB / 1.292 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/1.15, allocations: 1.016 MB / 1.293 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003488/1.15, allocations: 220.9 kB / 1.294 GB, free: 9.906 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/1.15, allocations: 12.56 kB / 1.294 GB, free: 9.906 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005803/1.151, allocations: 68 kB / 1.294 GB, free: 9.895 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/1.151, allocations: 43 kB / 1.294 GB, free: 9.887 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/1.151, allocations: 20.78 kB / 1.294 GB, free: 9.883 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000699/1.151, allocations: 0.5121 MB / 1.294 GB, free: 9.789 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.9e-07/1.151, allocations: 0 / 1.294 GB, free: 9.789 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001145/1.153, allocations: 298.2 kB / 1.294 GB, free: 9.75 MB / 1.014 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.00199/1.155, allocations: 1.671 MB / 1.296 GB, free: 8.953 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009192/1.156, allocations: 0.6132 MB / 1.297 GB, free: 8.934 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.156, allocations: 1.219 kB / 1.297 GB, free: 8.934 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003249/1.156, allocations: 269.2 kB / 1.297 GB, free: 8.934 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/1.158, allocations: 434.3 kB / 1.297 GB, free: 8.898 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009589/1.168, allocations: 7.936 MB / 1.305 GB, free: 5.348 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/1.168, allocations: 1.121 MB / 1.306 GB, free: 4.633 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0008914/1.169, allocations: 265.2 kB / 1.306 GB, free: 4.594 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/1.17, allocations: 366.3 kB / 1.307 GB, free: 4.582 MB / 1.014 GB Notification: Performance of SimCode: time 6.71e-07/1.17, allocations: 0 / 1.307 GB, free: 4.582 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/1.203, allocations: 22.1 MB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003288/1.203, allocations: 238.4 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.279/3.483, allocations: 5.094 kB / 1.329 GB, free: 15.71 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)