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.001191/0.001191, allocations: 108 kB / 15.6 MB, free: 132 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.001182/0.001182, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.337/2.337, allocations: 390.2 MB / 0.6647 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.89 kB / 0.8126 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6215/0.6229, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.214/0.8369, allocations: 195.1 MB / 1.14 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01811/0.8551, allocations: 14.31 MB / 1.154 GB, free: 15.64 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.8565, allocations: 35.81 kB / 1.154 GB, free: 15.61 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.8581, allocations: 0.5007 MB / 1.155 GB, free: 15.11 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.004692/0.8629, allocations: 1.893 MB / 1.157 GB, free: 13.21 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002451/0.8654, allocations: 0.8579 MB / 1.157 GB, free: 12.35 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003166/0.8685, allocations: 2.573 MB / 1.16 GB, free: 9.77 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.8702, allocations: 1.111 MB / 1.161 GB, free: 8.637 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004267/0.8744, allocations: 1.592 MB / 1.163 GB, free: 7.055 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.8762, allocations: 0.9221 MB / 1.163 GB, free: 6.133 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003089/0.8765, allocations: 108 kB / 1.164 GB, free: 6.027 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.8791, allocations: 1.091 MB / 1.165 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0006684/0.8798, allocations: 0.4987 MB / 1.165 GB, free: 4.434 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.8809, allocations: 0.6338 MB / 1.166 GB, free: 3.797 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003301/0.8842, allocations: 1.881 MB / 1.168 GB, free: 1.91 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.8842, allocations: 8 kB / 1.168 GB, free: 1.902 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8842, allocations: 0 / 1.168 GB, free: 1.902 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.45e-05/0.8843, allocations: 0 / 1.168 GB, free: 1.902 MB / 0.92 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.002921/0.8872, allocations: 1.445 MB / 1.169 GB, free: 412 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.8873, allocations: 8.031 kB / 1.169 GB, free: 404 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000268/0.8876, allocations: 151.6 kB / 1.169 GB, free: 244 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/0.8892, allocations: 258.4 kB / 1.169 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.8908, allocations: 0.7453 MB / 1.17 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.555e-05/0.8908, allocations: 73.94 kB / 1.17 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.891, allocations: 92 kB / 1.17 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.8928, allocations: 1.173 MB / 1.171 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.8929, allocations: 0 / 1.171 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.893, allocations: 43.94 kB / 1.171 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.621e-05/0.893, allocations: 33.98 kB / 1.172 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.8945, allocations: 0.9054 MB / 1.172 GB, free: 12.8 MB / 0.9356 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.006584/0.9011, allocations: 5.774 MB / 1.178 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008611/0.902, allocations: 0.5243 MB / 1.179 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.9024, allocations: 323.8 kB / 1.179 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006022/0.903, allocations: 315.7 kB / 1.179 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.9031, allocations: 46.88 kB / 1.179 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.9031, allocations: 0 / 1.179 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49): time 0.001523/0.9046, allocations: 0.7987 MB / 1.18 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.9047, allocations: 55.84 kB / 1.18 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009747/0.9056, allocations: 0.7587 MB / 1.181 GB, free: 3.672 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.9057, allocations: 37.7 kB / 1.181 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/0.9061, allocations: 0.5065 MB / 1.181 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.9062, allocations: 177.4 kB / 1.181 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.9065, allocations: 138.6 kB / 1.182 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.9066, allocations: 337.9 kB / 1.182 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.907, allocations: 253.9 kB / 1.182 GB, free: 2.211 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.9076, allocations: 0.5585 MB / 1.183 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009618/0.9086, allocations: 0.7918 MB / 1.183 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.9086, allocations: 0 / 1.183 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001255/0.9099, allocations: 0.8544 MB / 1.184 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.9099, allocations: 8 kB / 1.184 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.9099, allocations: 8 kB / 1.184 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.9099, allocations: 12 kB / 1.184 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.9105, allocations: 151.8 kB / 1.185 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.9105, allocations: 19.92 kB / 1.185 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00072/0.9112, allocations: 95.36 kB / 1.185 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.9113, allocations: 32 kB / 1.185 GB, free: 15.43 MB / 0.9512 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.0004153/0.9117, allocations: 333.5 kB / 1.185 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.9119, allocations: 86.97 kB / 1.185 GB, free: 15 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009467/0.9128, allocations: 0.6218 MB / 1.186 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.9128, allocations: 4 kB / 1.186 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.9128, allocations: 4 kB / 1.186 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006956/0.9135, allocations: 0.525 MB / 1.186 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.9159, allocations: 1.663 MB / 1.188 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.9159, allocations: 8.031 kB / 1.188 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005149/0.9164, allocations: 107.9 kB / 1.188 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.9164, allocations: 4 kB / 1.188 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/0.9165, allocations: 12 kB / 1.188 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.9165, allocations: 7.984 kB / 1.188 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.9165, allocations: 3.938 kB / 1.188 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.9178, allocations: 1.023 MB / 1.189 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003133/0.9181, allocations: 220 kB / 1.189 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.9182, allocations: 15.98 kB / 1.189 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/0.9187, allocations: 20.69 kB / 1.189 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.486e-05/0.9188, allocations: 35.95 kB / 1.189 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.9188, allocations: 15.94 kB / 1.189 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0006124/0.9194, allocations: 0.5185 MB / 1.19 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9194, allocations: 3.938 kB / 1.19 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0008607/0.9203, allocations: 299.2 kB / 1.19 GB, free: 9.754 MB / 0.9512 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.001892/0.9222, allocations: 1.665 MB / 1.192 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001115/0.9233, allocations: 0.7092 MB / 1.192 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.9234, allocations: 4.625 kB / 1.192 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.9237, allocations: 275.6 kB / 1.193 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.9256, allocations: 436.2 kB / 1.193 GB, free: 6.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009221/0.9348, allocations: 7.5 MB / 1.2 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/0.9356, allocations: 1.126 MB / 1.201 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0008295/0.9364, allocations: 263.1 kB / 1.202 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004585/0.9369, allocations: 363.3 kB / 1.202 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of SimCode: time 4e-07/0.9369, allocations: 3.938 kB / 1.202 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04917/0.9861, allocations: 22.87 MB / 1.224 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/9.043, allocations: 3.938 kB / 1.224 GB, free: 6.422 MB / 0.9825 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