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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001626/0.001626, allocations: 194 kB / 16.14 MB, free: 6.652 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.97 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3289, allocations: 157.4 MB / 1.052 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2241/0.5531, allocations: 192.9 MB / 1.24 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7684/1.322, allocations: 14.4 MB / 1.255 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002114/1.324, allocations: 35.31 kB / 1.255 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001864/1.326, allocations: 421.4 kB / 1.255 GB, free: 2.43 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005158/1.331, allocations: 1.77 MB / 1.257 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002577/1.333, allocations: 0.7745 MB / 1.257 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004572/1.338, allocations: 3.616 MB / 1.261 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00157/1.34, allocations: 0.9393 MB / 1.262 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005415/1.345, allocations: 1.45 MB / 1.263 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002368/1.347, allocations: 0.9614 MB / 1.264 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001902/1.348, allocations: 59.81 kB / 1.264 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003288/1.351, allocations: 1.254 MB / 1.266 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007959/1.352, allocations: 464.9 kB / 1.266 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001214/1.353, allocations: 0.5863 MB / 1.267 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003838/1.357, allocations: 1.926 MB / 1.268 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.357, allocations: 1.344 kB / 1.268 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/1.357, allocations: 0 / 1.268 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.243e-05/1.357, allocations: 0 / 1.268 GB, free: 2.121 MB / 0.9981 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.002869/1.36, allocations: 1.442 MB / 1.27 GB, free: 17.35 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.36, allocations: 11.12 kB / 1.27 GB, free: 17.35 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/1.361, allocations: 259 kB / 1.27 GB, free: 17.28 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/1.363, allocations: 0.7532 MB / 1.271 GB, free: 16.96 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.558e-05/1.363, allocations: 69.38 kB / 1.271 GB, free: 16.96 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/1.363, allocations: 95.94 kB / 1.271 GB, free: 16.96 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/1.365, allocations: 1.171 MB / 1.272 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/1.365, allocations: 6.047 kB / 1.272 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/1.365, allocations: 45.55 kB / 1.272 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-05/1.366, allocations: 34.28 kB / 1.272 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/1.368, allocations: 0.9019 MB / 1.273 GB, free: 16.72 MB / 1.014 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.0063/1.374, allocations: 5.728 MB / 1.279 GB, free: 12.94 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009486/1.375, allocations: 0.5378 MB / 1.279 GB, free: 12.92 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004403/1.375, allocations: 318.1 kB / 1.28 GB, free: 12.91 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006528/1.376, allocations: 313.9 kB / 1.28 GB, free: 12.62 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/1.376, allocations: 40.47 kB / 1.28 GB, free: 12.58 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 3.697e-06/1.376, allocations: 1.188 kB / 1.28 GB, free: 12.58 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001525/1.377, allocations: 0.8005 MB / 1.281 GB, free: 12.49 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/1.378, allocations: 60.41 kB / 1.281 GB, free: 12.43 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009474/1.378, allocations: 0.7467 MB / 1.281 GB, free: 12.29 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/1.379, allocations: 36.98 kB / 1.281 GB, free: 12.26 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/1.379, allocations: 0.5122 MB / 1.282 GB, free: 12.01 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/1.379, allocations: 178.6 kB / 1.282 GB, free: 11.9 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/1.379, allocations: 142.2 kB / 1.282 GB, free: 11.88 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001386/1.379, allocations: 333.9 kB / 1.283 GB, free: 11.57 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/1.38, allocations: 250.2 kB / 1.283 GB, free: 11.57 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006185/1.38, allocations: 0.5566 MB / 1.283 GB, free: 11.21 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009886/1.381, allocations: 0.7968 MB / 1.284 GB, free: 10.91 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.381, allocations: 2.594 kB / 1.284 GB, free: 10.91 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00128/1.383, allocations: 0.8525 MB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/1.383, allocations: 8.531 kB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/1.383, allocations: 6.969 kB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/1.383, allocations: 12.44 kB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/1.383, allocations: 158.3 kB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/1.383, allocations: 18.08 kB / 1.285 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/1.385, allocations: 148.8 kB / 1.285 GB, free: 10.76 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/1.385, allocations: 30.62 kB / 1.285 GB, free: 10.76 MB / 1.014 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.0005427/1.385, allocations: 334.8 kB / 1.286 GB, free: 10.64 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/1.385, allocations: 89.16 kB / 1.286 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/1.386, allocations: 0.6196 MB / 1.286 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/1.386, allocations: 4.281 kB / 1.286 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/1.386, allocations: 1 kB / 1.286 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007913/1.387, allocations: 0.5206 MB / 1.287 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/1.39, allocations: 1.672 MB / 1.288 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/1.39, allocations: 1.094 kB / 1.288 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/1.391, allocations: 108 kB / 1.289 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/1.391, allocations: 4.594 kB / 1.289 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/1.391, allocations: 19.16 kB / 1.289 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/1.391, allocations: 3.406 kB / 1.289 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/1.391, allocations: 7.672 kB / 1.289 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/1.392, allocations: 1.029 MB / 1.29 GB, free: 9.812 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004765/1.393, allocations: 219.6 kB / 1.29 GB, free: 9.672 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/1.393, allocations: 12.47 kB / 1.29 GB, free: 9.672 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00062/1.393, allocations: 62.36 kB / 1.29 GB, free: 9.664 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/1.393, allocations: 37.14 kB / 1.29 GB, free: 9.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/1.394, allocations: 20.86 kB / 1.29 GB, free: 9.66 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007459/1.394, allocations: 0.5148 MB / 1.29 GB, free: 9.562 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.61e-07/1.394, allocations: 0 / 1.29 GB, free: 9.562 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001154/1.395, allocations: 301.1 kB / 1.291 GB, free: 9.523 MB / 1.014 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.0005241/1.396, allocations: 206.8 kB / 1.291 GB, free: 9.418 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009825/1.397, allocations: 0.6071 MB / 1.292 GB, free: 9.406 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.397, allocations: 0 / 1.292 GB, free: 9.406 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003622/1.397, allocations: 273.4 kB / 1.292 GB, free: 9.406 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/1.4, allocations: 444.5 kB / 1.292 GB, free: 9.375 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/1.403, allocations: 2.318 MB / 1.295 GB, free: 8.141 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000714/1.404, allocations: 1.126 MB / 1.296 GB, free: 7.426 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009538/1.405, allocations: 266.4 kB / 1.296 GB, free: 7.387 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/1.405, allocations: 79.91 kB / 1.296 GB, free: 7.375 MB / 1.014 GB Notification: Performance of SimCode: time 6.42e-07/1.405, allocations: 2.312 kB / 1.296 GB, free: 7.375 MB / 1.014 GB Notification: Performance of Templates: time 0.02853/1.434, allocations: 14.94 MB / 1.311 GB, free: 6.453 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (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 & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches