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.005038/0.005038, allocations: 101 kB / 15.73 MB, free: 6.055 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.001369/0.001369, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.287/2.287, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.89 kB / 0.9504 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.849/0.8503, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2811/1.131, allocations: 195.1 MB / 1.278 GB, free: 10.56 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01958/1.151, allocations: 14.3 MB / 1.292 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/1.153, allocations: 35.81 kB / 1.292 GB, free: 12.19 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001981/1.155, allocations: 0.489 MB / 1.293 GB, free: 11.7 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.005447/1.16, allocations: 1.898 MB / 1.294 GB, free: 9.789 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002671/1.163, allocations: 0.8676 MB / 1.295 GB, free: 8.926 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003495/1.166, allocations: 2.576 MB / 1.298 GB, free: 6.348 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/1.168, allocations: 1.126 MB / 1.299 GB, free: 5.199 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004627/1.173, allocations: 1.593 MB / 1.3 GB, free: 3.617 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/1.175, allocations: 0.9204 MB / 1.301 GB, free: 2.695 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0003517/1.175, allocations: 108 kB / 1.301 GB, free: 2.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002686/1.178, allocations: 1.099 MB / 1.302 GB, free: 1.488 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0008013/1.178, allocations: 0.4987 MB / 1.303 GB, free: 0.9883 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001486/1.18, allocations: 0.6338 MB / 1.304 GB, free: 360 kB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003558/1.184, allocations: 1.909 MB / 1.305 GB, free: 14.44 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/1.184, allocations: 0 / 1.305 GB, free: 14.44 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.472e-06/1.184, allocations: 0 / 1.305 GB, free: 14.44 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.894e-05/1.184, allocations: 0 / 1.305 GB, free: 14.44 MB / 1.045 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.003523/1.187, allocations: 1.449 MB / 1.307 GB, free: 12.93 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/1.187, allocations: 8.031 kB / 1.307 GB, free: 12.93 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003654/1.188, allocations: 151.6 kB / 1.307 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/1.189, allocations: 250.4 kB / 1.307 GB, free: 12.52 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/1.191, allocations: 0.7921 MB / 1.308 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.897e-05/1.191, allocations: 70 kB / 1.308 GB, free: 11.62 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/1.192, allocations: 92 kB / 1.308 GB, free: 11.53 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/1.194, allocations: 1.169 MB / 1.309 GB, free: 10.29 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/1.194, allocations: 11.88 kB / 1.309 GB, free: 10.28 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.936e-05/1.194, allocations: 39.94 kB / 1.309 GB, free: 10.24 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.702e-05/1.194, allocations: 37.98 kB / 1.309 GB, free: 10.2 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/1.195, allocations: 0.9093 MB / 1.31 GB, free: 9.293 MB / 1.045 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.006643/1.202, allocations: 5.731 MB / 1.316 GB, free: 3.105 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/1.203, allocations: 0.5471 MB / 1.316 GB, free: 2.547 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/1.203, allocations: 310.6 kB / 1.317 GB, free: 2.242 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005706/1.204, allocations: 311.7 kB / 1.317 GB, free: 1.883 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/1.204, allocations: 43 kB / 1.317 GB, free: 1.832 MB / 1.045 GB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/1.204, allocations: 0 / 1.317 GB, free: 1.832 MB / 1.045 GB Notification: Performance of matching and sorting (n=49): time 0.001519/1.206, allocations: 0.7987 MB / 1.318 GB, free: 1.027 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/1.206, allocations: 55.84 kB / 1.318 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/1.207, allocations: 0.7625 MB / 1.319 GB, free: 196 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/1.207, allocations: 41.64 kB / 1.319 GB, free: 148 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004134/1.207, allocations: 0.5026 MB / 1.319 GB, free: 15.63 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/1.207, allocations: 181.5 kB / 1.319 GB, free: 15.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/1.208, allocations: 146.5 kB / 1.319 GB, free: 15.3 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001526/1.208, allocations: 337.9 kB / 1.32 GB, free: 14.97 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/1.208, allocations: 249.8 kB / 1.32 GB, free: 14.72 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/1.209, allocations: 0.5507 MB / 1.321 GB, free: 14.03 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/1.21, allocations: 0.8034 MB / 1.321 GB, free: 13.12 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/1.21, allocations: 0 / 1.321 GB, free: 13.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001403/1.211, allocations: 0.8422 MB / 1.322 GB, free: 12.27 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/1.211, allocations: 8 kB / 1.322 GB, free: 12.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/1.211, allocations: 8 kB / 1.322 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.211, allocations: 12.78 kB / 1.322 GB, free: 12.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005486/1.212, allocations: 159.7 kB / 1.322 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/1.212, allocations: 19.94 kB / 1.322 GB, free: 12.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007762/1.213, allocations: 87.14 kB / 1.322 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.977e-05/1.213, allocations: 39.98 kB / 1.322 GB, free: 11.94 MB / 1.061 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.0004479/1.213, allocations: 323.9 kB / 1.323 GB, free: 11.62 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/1.213, allocations: 94.88 kB / 1.323 GB, free: 11.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/1.214, allocations: 0.6219 MB / 1.323 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/1.214, allocations: 4 kB / 1.323 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.214, allocations: 0 / 1.323 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007116/1.215, allocations: 0.525 MB / 1.324 GB, free: 10.36 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002481/1.218, allocations: 1.663 MB / 1.326 GB, free: 8.613 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.218, allocations: 0 / 1.326 GB, free: 8.613 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/1.218, allocations: 111.8 kB / 1.326 GB, free: 8.504 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.494e-05/1.218, allocations: 7.984 kB / 1.326 GB, free: 8.496 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.782e-05/1.218, allocations: 19.94 kB / 1.326 GB, free: 8.477 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.724e-06/1.218, allocations: 4 kB / 1.326 GB, free: 8.473 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.218, allocations: 0 / 1.326 GB, free: 8.473 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/1.22, allocations: 1.027 MB / 1.327 GB, free: 7.406 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/1.22, allocations: 231.9 kB / 1.327 GB, free: 7.16 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/1.22, allocations: 12 kB / 1.327 GB, free: 7.148 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/1.221, allocations: 21.48 kB / 1.327 GB, free: 7.129 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/1.221, allocations: 27.97 kB / 1.327 GB, free: 7.102 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/1.221, allocations: 23.92 kB / 1.327 GB, free: 7.078 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0006484/1.221, allocations: 0.5107 MB / 1.328 GB, free: 6.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.6e-07/1.221, allocations: 0 / 1.328 GB, free: 6.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0009297/1.222, allocations: 303.2 kB / 1.328 GB, free: 6.273 MB / 1.061 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.002021/1.224, allocations: 1.662 MB / 1.329 GB, free: 4.578 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001013/1.225, allocations: 0.6118 MB / 1.33 GB, free: 3.965 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.225, allocations: 4 kB / 1.33 GB, free: 3.961 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003689/1.226, allocations: 267.7 kB / 1.33 GB, free: 3.699 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/1.228, allocations: 436.8 kB / 1.331 GB, free: 3.281 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009971/1.238, allocations: 7.204 MB / 1.338 GB, free: 11.69 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007872/1.239, allocations: 1.122 MB / 1.339 GB, free: 10.54 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000843/1.24, allocations: 271 kB / 1.339 GB, free: 10.27 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/1.24, allocations: 363.3 kB / 1.339 GB, free: 9.918 MB / 1.076 GB Notification: Performance of SimCode: time 5.29e-06/1.24, allocations: 0 / 1.339 GB, free: 9.918 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05484/1.295, allocations: 23.08 MB / 1.362 GB, free: 3.199 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.363/10.66, allocations: 23.5 kB / 1.362 GB, free: 3.176 MB / 1.092 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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches