Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_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.001113/0.001113, allocations: 109.4 kB / 15.69 MB, free: 128 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.00108/0.00108, allocations: 187.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.895/1.895, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 67.55 kB / 0.6718 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2307, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.6593/0.89, allocations: 195.1 MB / 0.9742 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01694/0.907, allocations: 14.28 MB / 0.9881 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001787/0.9089, allocations: 37.62 kB / 0.9881 GB, free: 13 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.9106, allocations: 0.4933 MB / 0.9886 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005105/0.9157, allocations: 1.891 MB / 0.9905 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.9182, allocations: 0.8612 MB / 0.9913 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003214/0.9214, allocations: 2.562 MB / 0.9938 GB, free: 9.723 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.9228, allocations: 1.105 MB / 0.9949 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004068/0.9269, allocations: 1.596 MB / 0.9964 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.9284, allocations: 0.9229 MB / 0.9973 GB, free: 7.805 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.9286, allocations: 105.2 kB / 0.9974 GB, free: 7.805 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002336/0.9309, allocations: 1.103 MB / 0.9985 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004814/0.9314, allocations: 0.4995 MB / 0.999 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007311/0.9322, allocations: 0.6314 MB / 0.9996 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002568/0.9348, allocations: 1.909 MB / 1.001 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.9348, allocations: 3.938 kB / 1.001 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9348, allocations: 0 / 1.001 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.13e-05/0.9348, allocations: 0 / 1.001 GB, free: 5.488 MB / 0.7325 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.002108/0.9369, allocations: 1.451 MB / 1.003 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.937, allocations: 10.22 kB / 1.003 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.9371, allocations: 150.8 kB / 1.003 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.9384, allocations: 251.9 kB / 1.003 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.9397, allocations: 0.7851 MB / 1.004 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.9398, allocations: 75.31 kB / 1.004 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.9399, allocations: 94.78 kB / 1.004 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.9414, allocations: 1.168 MB / 1.005 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.9415, allocations: 7.172 kB / 1.005 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-05/0.9416, allocations: 45.38 kB / 1.005 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.05e-05/0.9416, allocations: 32.19 kB / 1.005 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.9429, allocations: 0.9033 MB / 1.006 GB, free: 2.254 MB / 0.7325 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.005304/0.9482, allocations: 5.724 MB / 1.012 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007254/0.9489, allocations: 0.5317 MB / 1.012 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003863/0.9493, allocations: 314.1 kB / 1.013 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005687/0.9499, allocations: 314.4 kB / 1.013 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.95, allocations: 37.81 kB / 1.013 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.95, allocations: 0 / 1.013 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001462/0.9514, allocations: 0.8028 MB / 1.014 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.9515, allocations: 56.84 kB / 1.014 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008294/0.9523, allocations: 0.7464 MB / 1.015 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.9524, allocations: 34.55 kB / 1.015 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.9527, allocations: 0.5042 MB / 1.015 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.9529, allocations: 177.9 kB / 1.015 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/0.9531, allocations: 145.3 kB / 1.015 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9533, allocations: 344.2 kB / 1.016 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.9536, allocations: 249.2 kB / 1.016 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005806/0.9542, allocations: 0.562 MB / 1.017 GB, free: 9.707 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008796/0.9551, allocations: 0.7854 MB / 1.017 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.9551, allocations: 2.719 kB / 1.017 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001165/0.9563, allocations: 0.8482 MB / 1.018 GB, free: 8.672 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.9563, allocations: 13.47 kB / 1.018 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.9563, allocations: 7.844 kB / 1.018 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.9564, allocations: 12.62 kB / 1.018 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005557/0.9569, allocations: 157.9 kB / 1.018 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.9569, allocations: 12.19 kB / 1.018 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007122/0.9577, allocations: 95.66 kB / 1.018 GB, free: 8.562 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.745e-05/0.9577, allocations: 41.92 kB / 1.019 GB, free: 8.551 MB / 0.7481 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.000434/0.9582, allocations: 326.8 kB / 1.019 GB, free: 8.312 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.9583, allocations: 83 kB / 1.019 GB, free: 8.27 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009122/0.9592, allocations: 0.6166 MB / 1.02 GB, free: 7.918 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.9592, allocations: 6.031 kB / 1.02 GB, free: 7.918 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.9592, allocations: 4 kB / 1.02 GB, free: 7.914 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006462/0.9599, allocations: 0.5122 MB / 1.02 GB, free: 7.633 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.9622, allocations: 1.669 MB / 1.022 GB, free: 6.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.9622, allocations: 3.938 kB / 1.022 GB, free: 6.496 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.9627, allocations: 111.8 kB / 1.022 GB, free: 6.473 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.9627, allocations: 5.281 kB / 1.022 GB, free: 6.473 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.9628, allocations: 19.61 kB / 1.022 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.9628, allocations: 6.688 kB / 1.022 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.9628, allocations: 2.156 kB / 1.022 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.964, allocations: 1.051 MB / 1.023 GB, free: 5.812 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/0.9644, allocations: 223.8 kB / 1.023 GB, free: 5.621 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.9645, allocations: 12.72 kB / 1.023 GB, free: 5.613 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.9649, allocations: 27.77 kB / 1.023 GB, free: 5.594 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.965, allocations: 27.06 kB / 1.023 GB, free: 5.582 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.965, allocations: 22.52 kB / 1.023 GB, free: 5.574 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005705/0.9656, allocations: 0.5083 MB / 1.024 GB, free: 5.285 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9656, allocations: 0 / 1.024 GB, free: 5.285 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008581/0.9665, allocations: 291.2 kB / 1.024 GB, free: 5.23 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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.001858/0.9683, allocations: 1.713 MB / 1.026 GB, free: 3.996 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009109/0.9693, allocations: 0.6172 MB / 1.026 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.9693, allocations: 0 / 1.026 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.9696, allocations: 272.8 kB / 1.026 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/0.9716, allocations: 438.7 kB / 1.027 GB, free: 3.367 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009062/0.9807, allocations: 7.17 MB / 1.034 GB, free: 13.51 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006831/0.9814, allocations: 1.126 MB / 1.035 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0009437/0.9823, allocations: 267 kB / 1.035 GB, free: 12.09 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.9828, allocations: 355.3 kB / 1.036 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of SimCode: time 1.092e-06/0.9828, allocations: 0 / 1.036 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04622/1.029, allocations: 22.85 MB / 1.058 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.755/9.784, allocations: 12.59 kB / 1.058 GB, free: 5.227 MB / 0.7794 GB (rm -f Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)