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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.005833/0.005833, allocations: 101.9 kB / 15.88 MB, free: 5.867 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.001321/0.001321, allocations: 191.5 kB / 16.79 MB, free: 5.809 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.413/1.413, allocations: 222.9 MB / 240.5 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.685/2.685, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 65.38 kB / 0.899 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3494, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2261/0.5755, allocations: 192.9 MB / 1.241 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6823/1.258, allocations: 14.4 MB / 1.255 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/1.26, allocations: 37.41 kB / 1.255 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/1.261, allocations: 419.8 kB / 1.256 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005247/1.267, allocations: 1.767 MB / 1.257 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00255/1.269, allocations: 0.7755 MB / 1.258 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004891/1.274, allocations: 3.622 MB / 1.262 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/1.276, allocations: 0.9362 MB / 1.263 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005558/1.281, allocations: 1.44 MB / 1.264 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/1.284, allocations: 0.9609 MB / 1.265 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001984/1.284, allocations: 59.78 kB / 1.265 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003424/1.287, allocations: 1.255 MB / 1.266 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008259/1.288, allocations: 463.2 kB / 1.267 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001216/1.289, allocations: 0.5884 MB / 1.267 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002779/1.292, allocations: 1.436 MB / 1.269 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/1.292, allocations: 0 / 1.269 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.615e-06/1.292, allocations: 0 / 1.269 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.942e-05/1.292, allocations: 2.906 kB / 1.269 GB, free: 1.895 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.003389/1.296, allocations: 1.447 MB / 1.27 GB, free: 17.12 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.296, allocations: 15.67 kB / 1.27 GB, free: 17.11 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001655/1.297, allocations: 254.3 kB / 1.27 GB, free: 17.05 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/1.299, allocations: 0.7558 MB / 1.271 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.246e-05/1.299, allocations: 66.22 kB / 1.271 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/1.299, allocations: 97.27 kB / 1.271 GB, free: 16.73 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/1.301, allocations: 1.174 MB / 1.272 GB, free: 16.5 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/1.301, allocations: 4.844 kB / 1.272 GB, free: 16.5 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/1.302, allocations: 42.56 kB / 1.272 GB, free: 16.5 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.913e-05/1.302, allocations: 34.48 kB / 1.272 GB, free: 16.5 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/1.304, allocations: 0.9006 MB / 1.273 GB, free: 16.49 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.007271/1.311, allocations: 5.729 MB / 1.279 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008956/1.312, allocations: 0.5406 MB / 1.279 GB, free: 12.68 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/1.312, allocations: 319 kB / 1.28 GB, free: 12.67 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006424/1.313, allocations: 316.3 kB / 1.28 GB, free: 12.38 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/1.313, allocations: 42.88 kB / 1.28 GB, free: 12.34 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/1.313, allocations: 0 / 1.28 GB, free: 12.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001665/1.315, allocations: 0.7981 MB / 1.281 GB, free: 12.25 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/1.315, allocations: 61.34 kB / 1.281 GB, free: 12.19 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009246/1.316, allocations: 0.7482 MB / 1.282 GB, free: 12.05 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.913e-05/1.316, allocations: 37.7 kB / 1.282 GB, free: 12.02 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/1.316, allocations: 0.5071 MB / 1.282 GB, free: 11.78 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/1.316, allocations: 177.3 kB / 1.282 GB, free: 11.67 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/1.316, allocations: 141.2 kB / 1.282 GB, free: 11.65 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001231/1.317, allocations: 333.5 kB / 1.283 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/1.317, allocations: 247.9 kB / 1.283 GB, free: 11.34 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006145/1.318, allocations: 0.5557 MB / 1.284 GB, free: 10.98 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/1.319, allocations: 0.7997 MB / 1.284 GB, free: 10.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/1.319, allocations: 2.188 kB / 1.284 GB, free: 10.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001318/1.32, allocations: 0.8503 MB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/1.32, allocations: 9 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/1.32, allocations: 7.312 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/1.32, allocations: 14.09 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/1.321, allocations: 157.7 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/1.321, allocations: 15.16 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/1.322, allocations: 153.1 kB / 1.285 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.476e-05/1.322, allocations: 32.28 kB / 1.285 GB, free: 10.52 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.0005014/1.322, allocations: 329.4 kB / 1.286 GB, free: 10.4 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/1.322, allocations: 88.12 kB / 1.286 GB, free: 10.36 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/1.324, allocations: 0.6228 MB / 1.287 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/1.324, allocations: 4.219 kB / 1.287 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.324, allocations: 2.188 kB / 1.287 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006864/1.324, allocations: 0.5196 MB / 1.287 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/1.327, allocations: 1.671 MB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/1.327, allocations: 2.344 kB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/1.328, allocations: 110.2 kB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/1.328, allocations: 4.641 kB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/1.328, allocations: 16.78 kB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/1.328, allocations: 3.406 kB / 1.289 GB, free: 9.836 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/1.328, allocations: 9.156 kB / 1.289 GB, free: 9.832 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/1.329, allocations: 1.023 MB / 1.29 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004309/1.33, allocations: 223.6 kB / 1.29 GB, free: 9.434 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/1.33, allocations: 15.61 kB / 1.29 GB, free: 9.434 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/1.33, allocations: 61.75 kB / 1.29 GB, free: 9.426 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/1.33, allocations: 39.67 kB / 1.29 GB, free: 9.418 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.832e-05/1.33, allocations: 19.64 kB / 1.29 GB, free: 9.418 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0006893/1.331, allocations: 0.518 MB / 1.291 GB, free: 9.32 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/1.331, allocations: 1.203 kB / 1.291 GB, free: 9.32 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001068/1.332, allocations: 298.3 kB / 1.291 GB, free: 9.281 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.000519/1.333, allocations: 204.1 kB / 1.291 GB, free: 9.18 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009931/1.334, allocations: 0.6084 MB / 1.292 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/1.334, allocations: 1.281 kB / 1.292 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003524/1.334, allocations: 271.1 kB / 1.292 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/1.336, allocations: 435.4 kB / 1.292 GB, free: 9.141 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/1.34, allocations: 2.397 MB / 1.295 GB, free: 7.879 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007205/1.34, allocations: 1.125 MB / 1.296 GB, free: 7.164 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/1.341, allocations: 82.39 kB / 1.296 GB, free: 7.156 MB / 1.014 GB Notification: Performance of SimCode: time 4.61e-07/1.341, allocations: 0 / 1.296 GB, free: 7.156 MB / 1.014 GB Notification: Performance of Templates: time 0.02333/1.364, allocations: 14.66 MB / 1.31 GB, free: 5.855 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches