Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 216 kB / 22.26 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.322/1.322, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.883/2.883, allocations: 0.505 GB / 0.8101 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 63.47 kB / 1.177 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2966, allocations: 180.2 MB / 1.353 GB, free: 8.402 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2105/0.5071, allocations: 199.2 MB / 1.547 GB, free: 476 kB / 1.232 GB Notification: Performance of NFInst.instExpressions: time 0.01778/0.5249, allocations: 14.51 MB / 1.562 GB, free: 1.914 MB / 1.248 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.5263, allocations: 51.56 kB / 1.562 GB, free: 1.863 MB / 1.248 GB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.5279, allocations: 0.5202 MB / 1.562 GB, free: 1.34 MB / 1.248 GB Notification: Performance of NFTyping.typeBindings: time 0.00494/0.5328, allocations: 1.994 MB / 1.564 GB, free: 15.34 MB / 1.264 GB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.5352, allocations: 0.9003 MB / 1.565 GB, free: 14.44 MB / 1.264 GB Notification: Performance of NFFlatten.flatten: time 0.003423/0.5387, allocations: 2.62 MB / 1.568 GB, free: 11.81 MB / 1.264 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.5398, allocations: 0.8107 MB / 1.568 GB, free: 10.98 MB / 1.264 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004501/0.5443, allocations: 1.901 MB / 1.57 GB, free: 9.094 MB / 1.264 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.5459, allocations: 0.973 MB / 1.571 GB, free: 8.117 MB / 1.264 GB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.546, allocations: 108 kB / 1.571 GB, free: 8.012 MB / 1.264 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.5481, allocations: 1.161 MB / 1.572 GB, free: 6.848 MB / 1.264 GB Notification: Performance of NFScalarize.scalarize: time 0.0004841/0.5486, allocations: 0.5103 MB / 1.573 GB, free: 6.336 MB / 1.264 GB Notification: Performance of NFVerifyModel.verify: time 0.0006647/0.5493, allocations: 0.6377 MB / 1.573 GB, free: 5.695 MB / 1.264 GB Notification: Performance of NFConvertDAE.convert: time 0.002414/0.5517, allocations: 1.911 MB / 1.575 GB, free: 3.777 MB / 1.264 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5517, allocations: 4 kB / 1.575 GB, free: 3.773 MB / 1.264 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5517, allocations: 0 / 1.575 GB, free: 3.773 MB / 1.264 GB Notification: Performance of Transformations before backend: time 1.71e-05/0.5517, allocations: 0 / 1.575 GB, free: 3.773 MB / 1.264 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.002074/0.5538, allocations: 1.411 MB / 1.577 GB, free: 2.328 MB / 1.264 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.5538, allocations: 8.031 kB / 1.577 GB, free: 2.32 MB / 1.264 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001641/0.554, allocations: 155.5 kB / 1.577 GB, free: 2.16 MB / 1.264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.5552, allocations: 263 kB / 1.577 GB, free: 1.902 MB / 1.264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.5565, allocations: 0.7292 MB / 1.578 GB, free: 1.145 MB / 1.264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.5566, allocations: 74 kB / 1.578 GB, free: 1.07 MB / 1.264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.5567, allocations: 96 kB / 1.578 GB, free: 0.9766 MB / 1.264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.5583, allocations: 1.169 MB / 1.579 GB, free: 15.74 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.5583, allocations: 4 kB / 1.579 GB, free: 15.73 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.229e-05/0.5584, allocations: 43.94 kB / 1.579 GB, free: 15.69 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.381e-05/0.5585, allocations: 34 kB / 1.579 GB, free: 15.66 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.5598, allocations: 0.9015 MB / 1.58 GB, free: 14.75 MB / 1.279 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.005719/0.5655, allocations: 5.76 MB / 1.586 GB, free: 8.52 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008125/0.5663, allocations: 0.5198 MB / 1.586 GB, free: 7.992 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/0.5668, allocations: 290.6 kB / 1.587 GB, free: 7.703 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004755/0.5672, allocations: 92.42 kB / 1.587 GB, free: 7.613 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.5673, allocations: 35 kB / 1.587 GB, free: 7.57 MB / 1.279 GB Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.5673, allocations: 0 / 1.587 GB, free: 7.57 MB / 1.279 GB Notification: Performance of matching and sorting (n=49): time 0.001445/0.5687, allocations: 0.8069 MB / 1.587 GB, free: 6.754 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.5687, allocations: 59.84 kB / 1.587 GB, free: 6.684 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008726/0.5696, allocations: 0.751 MB / 1.588 GB, free: 5.926 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.5697, allocations: 37.7 kB / 1.588 GB, free: 5.883 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.5701, allocations: 0.5155 MB / 1.589 GB, free: 5.359 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.5702, allocations: 186.4 kB / 1.589 GB, free: 5.176 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.5704, allocations: 146.6 kB / 1.589 GB, free: 5.023 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.5706, allocations: 337.9 kB / 1.589 GB, free: 4.688 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.571, allocations: 249.8 kB / 1.59 GB, free: 4.445 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.5716, allocations: 0.5546 MB / 1.59 GB, free: 3.758 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.5726, allocations: 0.8034 MB / 1.591 GB, free: 2.844 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.5726, allocations: 4 kB / 1.591 GB, free: 2.84 MB / 1.279 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001209/0.5739, allocations: 0.851 MB / 1.592 GB, free: 1.98 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5739, allocations: 14.02 kB / 1.592 GB, free: 1.969 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.5739, allocations: 8 kB / 1.592 GB, free: 1.961 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.5739, allocations: 12 kB / 1.592 GB, free: 1.949 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005125/0.5744, allocations: 151.8 kB / 1.592 GB, free: 1.801 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.5744, allocations: 15.94 kB / 1.592 GB, free: 1.785 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006341/0.5751, allocations: 95.56 kB / 1.592 GB, free: 1.691 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.5751, allocations: 40 kB / 1.592 GB, free: 1.652 MB / 1.279 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.000419/0.5756, allocations: 337.3 kB / 1.592 GB, free: 1.312 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.5757, allocations: 91.44 kB / 1.593 GB, free: 1.223 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009749/0.5767, allocations: 0.614 MB / 1.593 GB, free: 0.6055 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.5767, allocations: 4 kB / 1.593 GB, free: 0.6016 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5767, allocations: 0 / 1.593 GB, free: 0.6016 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006848/0.5773, allocations: 0.5211 MB / 1.594 GB, free: 68 kB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.5797, allocations: 1.639 MB / 1.595 GB, free: 14.36 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5797, allocations: 4.219 kB / 1.595 GB, free: 14.35 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/0.5802, allocations: 111.8 kB / 1.595 GB, free: 14.24 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.5802, allocations: 4 kB / 1.595 GB, free: 14.24 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.5803, allocations: 23.98 kB / 1.595 GB, free: 14.21 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.5803, allocations: 4 kB / 1.595 GB, free: 14.21 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.5803, allocations: 0 / 1.595 GB, free: 14.21 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.5816, allocations: 1.031 MB / 1.596 GB, free: 13.14 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.5819, allocations: 147.4 kB / 1.597 GB, free: 13 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.582, allocations: 11.98 kB / 1.597 GB, free: 12.99 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.5824, allocations: 16 kB / 1.597 GB, free: 12.97 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.041e-05/0.5825, allocations: 39.88 kB / 1.597 GB, free: 12.93 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.5825, allocations: 23.98 kB / 1.597 GB, free: 12.91 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.0006416/0.5832, allocations: 0.5146 MB / 1.597 GB, free: 12.4 MB / 1.295 GB Notification: Performance of sort global known variables: time 9e-08/0.5832, allocations: 0 / 1.597 GB, free: 12.4 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.0008209/0.584, allocations: 299.4 kB / 1.597 GB, free: 12.11 MB / 1.295 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.001839/0.5858, allocations: 1.658 MB / 1.599 GB, free: 10.41 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.0009432/0.5868, allocations: 0.5868 MB / 1.6 GB, free: 9.816 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.5868, allocations: 5.938 kB / 1.6 GB, free: 9.812 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.5871, allocations: 263.6 kB / 1.6 GB, free: 9.555 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.5888, allocations: 431.4 kB / 1.6 GB, free: 9.141 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00912/0.598, allocations: 7.254 MB / 1.607 GB, free: 1.492 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007471/0.5987, allocations: 1.114 MB / 1.608 GB, free: 360 kB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.0007412/0.5994, allocations: 279.1 kB / 1.609 GB, free: 76 kB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.556/1.155, allocations: 359.8 kB / 1.609 GB, free: 256.8 MB / 1.295 GB Notification: Performance of SimCode: time 1.452e-06/1.155, allocations: 0 / 1.609 GB, free: 256.8 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05967/1.215, allocations: 23.84 MB / 1.632 GB, free: 251.8 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.3, allocations: 7.734 kB / 1.632 GB, free: 251.8 MB / 1.295 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable masFraSou.V in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable masFraSou.V from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! Error: Could not read variable vol.C[1] in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable vol.C[1] from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! Error: Could not read variable senTraSub.C in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable senTraSub.C from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! Error: Could not read variable senTraSubNoFlorRev.C in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable senTraSubNoFlorRev.C from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! Error: Could not read variable senPPM.ppm in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable senPPM.ppm from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! Error: Could not read variable masFraVol.V in file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv. Warning: Get data of variable masFraVol.V from file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.309646916999554]