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.007504/0.007504, allocations: 98.39 kB / 15.73 MB, free: 5.98 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.001361/0.001362, allocations: 194.4 kB / 16.67 MB, free: 5.91 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.434/2.434, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 64.12 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8426/0.8439, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2211/1.065, allocations: 195.1 MB / 1.357 GB, free: 15.9 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.02031/1.085, allocations: 14.33 MB / 1.371 GB, free: 1.535 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/1.087, allocations: 43.69 kB / 1.371 GB, free: 1.492 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002047/1.089, allocations: 0.4969 MB / 1.371 GB, free: 0.9922 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.005629/1.095, allocations: 1.964 MB / 1.373 GB, free: 15.02 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002655/1.097, allocations: 0.8793 MB / 1.374 GB, free: 14.14 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.003549/1.101, allocations: 2.57 MB / 1.377 GB, free: 11.57 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001797/1.103, allocations: 1.115 MB / 1.378 GB, free: 10.43 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005696/1.108, allocations: 1.64 MB / 1.379 GB, free: 8.797 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001992/1.11, allocations: 0.9252 MB / 1.38 GB, free: 7.871 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0004354/1.111, allocations: 108 kB / 1.38 GB, free: 7.766 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002602/1.113, allocations: 1.107 MB / 1.381 GB, free: 6.656 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.000668/1.114, allocations: 0.4948 MB / 1.382 GB, free: 6.16 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.001087/1.115, allocations: 0.6416 MB / 1.382 GB, free: 5.516 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.003196/1.118, allocations: 1.912 MB / 1.384 GB, free: 3.598 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/1.119, allocations: 4 kB / 1.384 GB, free: 3.594 MB / 1.107 GB Notification: Performance of FrontEnd: time 2.715e-06/1.119, allocations: 0 / 1.384 GB, free: 3.594 MB / 1.107 GB Notification: Performance of Transformations before backend: time 5.904e-05/1.119, allocations: 0 / 1.384 GB, free: 3.594 MB / 1.107 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.003153/1.122, allocations: 1.488 MB / 1.386 GB, free: 2.055 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/1.122, allocations: 16.86 kB / 1.386 GB, free: 2.039 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/1.122, allocations: 143.6 kB / 1.386 GB, free: 1.891 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/1.123, allocations: 259 kB / 1.386 GB, free: 1.637 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/1.125, allocations: 0.7967 MB / 1.387 GB, free: 0.7969 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.727e-05/1.125, allocations: 77.94 kB / 1.387 GB, free: 0.7227 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/1.125, allocations: 92 kB / 1.387 GB, free: 0.6328 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/1.127, allocations: 1.169 MB / 1.388 GB, free: 15.39 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/1.127, allocations: 0 / 1.388 GB, free: 15.39 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-05/1.127, allocations: 47.92 kB / 1.388 GB, free: 15.34 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-05/1.127, allocations: 33.98 kB / 1.388 GB, free: 15.31 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/1.129, allocations: 0.9015 MB / 1.389 GB, free: 14.41 MB / 1.123 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.0061/1.135, allocations: 5.756 MB / 1.395 GB, free: 8.199 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008697/1.136, allocations: 0.5415 MB / 1.395 GB, free: 7.652 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004454/1.136, allocations: 320.3 kB / 1.396 GB, free: 7.34 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005889/1.137, allocations: 311.7 kB / 1.396 GB, free: 6.98 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.137, allocations: 42.94 kB / 1.396 GB, free: 6.93 MB / 1.123 GB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/1.137, allocations: 0 / 1.396 GB, free: 6.93 MB / 1.123 GB Notification: Performance of matching and sorting (n=49): time 0.001545/1.139, allocations: 0.7992 MB / 1.397 GB, free: 6.125 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/1.139, allocations: 59.84 kB / 1.397 GB, free: 6.055 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009672/1.14, allocations: 0.751 MB / 1.398 GB, free: 5.293 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 6.364e-05/1.14, allocations: 37.7 kB / 1.398 GB, free: 5.25 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/1.14, allocations: 0.5195 MB / 1.398 GB, free: 4.723 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/1.14, allocations: 190.4 kB / 1.398 GB, free: 4.535 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/1.141, allocations: 146.6 kB / 1.398 GB, free: 4.387 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.141, allocations: 333.9 kB / 1.399 GB, free: 4.055 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/1.141, allocations: 245.9 kB / 1.399 GB, free: 3.816 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006026/1.142, allocations: 0.5585 MB / 1.399 GB, free: 3.125 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009994/1.143, allocations: 0.7996 MB / 1.4 GB, free: 2.215 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.143, allocations: 4 kB / 1.4 GB, free: 2.211 MB / 1.123 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001347/1.144, allocations: 0.8387 MB / 1.401 GB, free: 1.363 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/1.144, allocations: 14.5 kB / 1.401 GB, free: 1.352 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/1.144, allocations: 8 kB / 1.401 GB, free: 1.344 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/1.144, allocations: 12.81 kB / 1.401 GB, free: 1.332 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/1.145, allocations: 151.8 kB / 1.401 GB, free: 1.184 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/1.145, allocations: 19.92 kB / 1.401 GB, free: 1.164 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007958/1.146, allocations: 99.28 kB / 1.401 GB, free: 1.066 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.227e-05/1.146, allocations: 36 kB / 1.401 GB, free: 1.031 MB / 1.123 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.0004541/1.146, allocations: 329.4 kB / 1.402 GB, free: 0.6992 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/1.146, allocations: 87.44 kB / 1.402 GB, free: 0.6133 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/1.147, allocations: 0.6257 MB / 1.402 GB, free: 15.98 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/1.147, allocations: 4 kB / 1.402 GB, free: 15.97 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.147, allocations: 3.938 kB / 1.402 GB, free: 15.97 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007036/1.148, allocations: 0.5249 MB / 1.403 GB, free: 15.43 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/1.151, allocations: 1.675 MB / 1.405 GB, free: 13.68 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.151, allocations: 0 / 1.405 GB, free: 13.68 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005389/1.151, allocations: 111.9 kB / 1.405 GB, free: 13.57 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/1.151, allocations: 0 / 1.405 GB, free: 13.57 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/1.151, allocations: 16 kB / 1.405 GB, free: 13.55 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/1.151, allocations: 7.984 kB / 1.405 GB, free: 13.54 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.151, allocations: 7.938 kB / 1.405 GB, free: 13.54 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/1.153, allocations: 1.027 MB / 1.406 GB, free: 12.47 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/1.153, allocations: 220.5 kB / 1.406 GB, free: 12.23 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/1.153, allocations: 15.98 kB / 1.406 GB, free: 12.22 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/1.154, allocations: 17.12 kB / 1.406 GB, free: 12.2 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/1.154, allocations: 36.03 kB / 1.406 GB, free: 12.17 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/1.154, allocations: 19.98 kB / 1.406 GB, free: 12.15 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.000656/1.155, allocations: 0.5146 MB / 1.407 GB, free: 11.64 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.9e-07/1.155, allocations: 0 / 1.407 GB, free: 11.64 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0009207/1.155, allocations: 307.4 kB / 1.407 GB, free: 11.34 MB / 1.139 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.001929/1.157, allocations: 1.671 MB / 1.408 GB, free: 9.637 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0009969/1.158, allocations: 0.6078 MB / 1.409 GB, free: 9.027 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/1.158, allocations: 0 / 1.409 GB, free: 9.027 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0003774/1.159, allocations: 275.6 kB / 1.409 GB, free: 8.758 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/1.161, allocations: 444.2 kB / 1.41 GB, free: 8.328 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/1.172, allocations: 7.232 MB / 1.417 GB, free: 0.7148 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/1.173, allocations: 1.122 MB / 1.418 GB, free: 15.57 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0008617/1.174, allocations: 263 kB / 1.418 GB, free: 15.3 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005374/1.174, allocations: 363.3 kB / 1.418 GB, free: 14.95 MB / 1.154 GB Notification: Performance of SimCode: time 7.81e-07/1.174, allocations: 0 / 1.418 GB, free: 14.95 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05037/1.225, allocations: 23.09 MB / 1.441 GB, free: 8.176 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.057/10.28, allocations: 16.5 kB / 1.441 GB, free: 8.16 MB / 1.17 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