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.001517/0.001517, allocations: 104 kB / 15.61 MB, free: 148 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.001895/0.001895, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.572/2.572, allocations: 437.1 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5883/0.5897, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1962/0.786, allocations: 195.1 MB / 1.208 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01845/0.8045, allocations: 14.31 MB / 1.222 GB, free: 280 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.806, allocations: 35.81 kB / 1.222 GB, free: 244 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.8082, allocations: 0.5046 MB / 1.222 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.005362/0.8136, allocations: 1.894 MB / 1.224 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002813/0.8164, allocations: 0.8517 MB / 1.225 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003466/0.8199, allocations: 2.569 MB / 1.228 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.8216, allocations: 1.119 MB / 1.229 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.8256, allocations: 1.594 MB / 1.23 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.8273, allocations: 0.9248 MB / 1.231 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.8276, allocations: 107.9 kB / 1.231 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.8302, allocations: 1.095 MB / 1.232 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0006733/0.8309, allocations: 0.4949 MB / 1.233 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.8319, allocations: 0.6338 MB / 1.233 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.8349, allocations: 1.885 MB / 1.235 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.8349, allocations: 4 kB / 1.235 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8349, allocations: 0 / 1.235 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.219e-05/0.835, allocations: 0 / 1.235 GB, free: 2.535 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.002622/0.8376, allocations: 1.441 MB / 1.237 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.8377, allocations: 12.03 kB / 1.237 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002086/0.8379, allocations: 143.6 kB / 1.237 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/0.8394, allocations: 262.3 kB / 1.237 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.8408, allocations: 0.7493 MB / 1.238 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.169e-05/0.8408, allocations: 70 kB / 1.238 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.841, allocations: 92 kB / 1.238 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001802/0.8428, allocations: 1.169 MB / 1.239 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.8428, allocations: 7.938 kB / 1.239 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.669e-05/0.8429, allocations: 43.88 kB / 1.239 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-05/0.843, allocations: 34 kB / 1.239 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.8444, allocations: 0.9015 MB / 1.24 GB, free: 13.45 MB / 0.9981 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.005623/0.8501, allocations: 5.774 MB / 1.246 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008685/0.8509, allocations: 0.5369 MB / 1.246 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.8514, allocations: 318.6 kB / 1.247 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000611/0.852, allocations: 315.7 kB / 1.247 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.852, allocations: 39 kB / 1.247 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.8521, allocations: 0 / 1.247 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.00155/0.8536, allocations: 0.8026 MB / 1.248 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.8537, allocations: 59.84 kB / 1.248 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009428/0.8546, allocations: 0.7509 MB / 1.248 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/0.8547, allocations: 37.7 kB / 1.249 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/0.855, allocations: 0.5142 MB / 1.249 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.8552, allocations: 177.5 kB / 1.249 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.8554, allocations: 142.5 kB / 1.249 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.8556, allocations: 341.9 kB / 1.25 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.856, allocations: 249.9 kB / 1.25 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006221/0.8566, allocations: 0.5546 MB / 1.25 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.8576, allocations: 0.7995 MB / 1.251 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.8577, allocations: 4 kB / 1.251 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001346/0.859, allocations: 0.8466 MB / 1.252 GB, free: 388 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.8591, allocations: 9.094 kB / 1.252 GB, free: 380 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.8591, allocations: 8 kB / 1.252 GB, free: 372 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.8591, allocations: 12 kB / 1.252 GB, free: 360 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.8597, allocations: 155.7 kB / 1.252 GB, free: 204 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/0.8597, allocations: 19.92 kB / 1.252 GB, free: 184 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/0.8604, allocations: 95.36 kB / 1.252 GB, free: 88 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.285e-05/0.8605, allocations: 36 kB / 1.252 GB, free: 52 kB / 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.4771/1.338, allocations: 321.1 kB / 1.253 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002135/1.338, allocations: 87.72 kB / 1.253 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/1.339, allocations: 0.6157 MB / 1.253 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/1.339, allocations: 5.062 kB / 1.253 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/1.339, allocations: 0.7031 kB / 1.253 GB, free: 235.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007393/1.34, allocations: 0.5278 MB / 1.254 GB, free: 235.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/1.343, allocations: 1.667 MB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/1.343, allocations: 2.156 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/1.343, allocations: 112.9 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-05/1.343, allocations: 7.656 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/1.343, allocations: 16.47 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.949e-06/1.343, allocations: 4.812 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.343, allocations: 1.875 kB / 1.256 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/1.345, allocations: 1.017 MB / 1.257 GB, free: 233.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/1.345, allocations: 224.4 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/1.345, allocations: 10.61 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/1.346, allocations: 22.05 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.934e-05/1.346, allocations: 42.91 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.674e-05/1.346, allocations: 19.61 kB / 1.257 GB, free: 233.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008584/1.347, allocations: 0.5126 MB / 1.257 GB, free: 233.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.347, allocations: 0 / 1.257 GB, free: 233.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001026/1.348, allocations: 295.7 kB / 1.258 GB, free: 233.4 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.001827/1.35, allocations: 1.666 MB / 1.259 GB, free: 232.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001342/1.351, allocations: 0.7101 MB / 1.26 GB, free: 232.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.351, allocations: 1.062 kB / 1.26 GB, free: 232.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004162/1.351, allocations: 273.4 kB / 1.26 GB, free: 232 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/1.353, allocations: 450.9 kB / 1.261 GB, free: 231.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009607/1.363, allocations: 7.492 MB / 1.268 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/1.364, allocations: 1.12 MB / 1.269 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009775/1.365, allocations: 272.3 kB / 1.269 GB, free: 226.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/1.365, allocations: 361.3 kB / 1.27 GB, free: 226.6 MB / 0.9981 GB Notification: Performance of SimCode: time 8.21e-07/1.365, allocations: 0 / 1.27 GB, free: 226.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04437/1.409, allocations: 22.87 MB / 1.292 GB, free: 212.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.528/9.937, allocations: 8.969 kB / 1.292 GB, free: 212.5 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches