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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.378/2.378, allocations: 390.3 MB / 402.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 183.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 221.3 MB / 0.7915 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008641/0.0008639, allocations: 91.97 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.927e-05/3.945e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2897, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.183/6.472, allocations: 1.974 GB / 3.192 GB, free: 286.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00035/6.473, allocations: 85.64 kB / 3.192 GB, free: 286.2 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 2.247/8.72, allocations: 0.6664 GB / 3.859 GB, free: 68.14 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.503e-06/8.72, allocations: 0 / 3.859 GB, free: 68.14 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001232/8.721, allocations: 27.98 kB / 3.859 GB, free: 68.11 MB / 1.167 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.003948/8.725, allocations: 1.326 MB / 3.86 GB, free: 66.74 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/8.725, allocations: 8.031 kB / 3.86 GB, free: 66.73 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/8.727, allocations: 254.3 kB / 3.86 GB, free: 66.48 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/8.73, allocations: 1.105 MB / 3.861 GB, free: 65.33 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/8.73, allocations: 73.95 kB / 3.861 GB, free: 65.26 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/8.73, allocations: 100 kB / 3.862 GB, free: 65.16 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/8.732, allocations: 1.1 MB / 3.863 GB, free: 63.99 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/8.732, allocations: 3.938 kB / 3.863 GB, free: 63.98 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.484e-05/8.732, allocations: 40 kB / 3.863 GB, free: 63.95 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.464e-05/8.732, allocations: 33.98 kB / 3.863 GB, free: 63.91 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/8.734, allocations: 0.8315 MB / 3.864 GB, free: 63.08 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.006557/8.74, allocations: 5.707 MB / 3.869 GB, free: 56.92 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007908/8.741, allocations: 0.5414 MB / 3.87 GB, free: 56.37 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/8.742, allocations: 303.1 kB / 3.87 GB, free: 56.07 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005264/8.742, allocations: 311.8 kB / 3.87 GB, free: 55.71 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/8.742, allocations: 39 kB / 3.87 GB, free: 55.66 MB / 1.167 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/8.742, allocations: 0 / 3.87 GB, free: 55.66 MB / 1.167 GB Notification: Performance of matching and sorting (n=49): time 0.001367/8.744, allocations: 0.577 MB / 3.871 GB, free: 55.08 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/8.744, allocations: 63.84 kB / 3.871 GB, free: 55 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009456/8.745, allocations: 0.6487 MB / 3.871 GB, free: 54.35 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.088e-05/8.745, allocations: 37.7 kB / 3.872 GB, free: 54.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/8.745, allocations: 0.5065 MB / 3.872 GB, free: 53.79 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/8.745, allocations: 177.5 kB / 3.872 GB, free: 53.61 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/8.745, allocations: 12 kB / 3.872 GB, free: 53.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.207e-05/8.745, allocations: 334 kB / 3.873 GB, free: 53.27 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/8.746, allocations: 237.4 kB / 3.873 GB, free: 53.04 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005177/8.746, allocations: 0.5702 MB / 3.873 GB, free: 52.32 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/8.747, allocations: 347.1 kB / 3.874 GB, free: 51.98 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/8.747, allocations: 0 / 3.874 GB, free: 51.98 MB / 1.167 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001151/8.748, allocations: 0.8311 MB / 3.874 GB, free: 51.14 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/8.748, allocations: 9.25 kB / 3.874 GB, free: 51.13 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/8.748, allocations: 8 kB / 3.874 GB, free: 51.12 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/8.748, allocations: 16 kB / 3.874 GB, free: 51.11 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/8.748, allocations: 151.8 kB / 3.875 GB, free: 50.96 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.119e-05/8.748, allocations: 15.98 kB / 3.875 GB, free: 50.95 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/8.749, allocations: 151 kB / 3.875 GB, free: 50.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-05/8.75, allocations: 36 kB / 3.875 GB, free: 50.76 MB / 1.167 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001376/8.75, allocations: 148.8 kB / 3.875 GB, free: 50.61 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/8.75, allocations: 86.92 kB / 3.875 GB, free: 50.52 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000916/8.751, allocations: 0.6099 MB / 3.876 GB, free: 49.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/8.751, allocations: 4 kB / 3.876 GB, free: 49.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/8.751, allocations: 0 / 3.876 GB, free: 49.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005725/8.751, allocations: 0.5055 MB / 3.876 GB, free: 49.38 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002415/8.754, allocations: 1.652 MB / 3.878 GB, free: 47.65 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/8.754, allocations: 4 kB / 3.878 GB, free: 47.65 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/8.754, allocations: 107.9 kB / 3.878 GB, free: 47.54 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/8.754, allocations: 4 kB / 3.878 GB, free: 47.54 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/8.754, allocations: 12 kB / 3.878 GB, free: 47.53 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/8.754, allocations: 7.938 kB / 3.878 GB, free: 47.52 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/8.754, allocations: 0 / 3.878 GB, free: 47.52 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/8.756, allocations: 1.081 MB / 3.879 GB, free: 46.35 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004587/8.756, allocations: 224 kB / 3.879 GB, free: 46.11 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/8.756, allocations: 16 kB / 3.879 GB, free: 46.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006713/8.757, allocations: 67.78 kB / 3.879 GB, free: 46.03 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/8.757, allocations: 31.92 kB / 3.879 GB, free: 46 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/8.757, allocations: 19.98 kB / 3.879 GB, free: 45.98 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005432/8.758, allocations: 0.503 MB / 3.88 GB, free: 45.48 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/8.758, allocations: 0 / 3.88 GB, free: 45.48 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001735/8.759, allocations: 483.3 kB / 3.88 GB, free: 45.01 MB / 1.167 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002668/8.762, allocations: 1.896 MB / 3.882 GB, free: 43.04 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0008887/8.763, allocations: 0.5889 MB / 3.883 GB, free: 42.45 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/8.763, allocations: 4 kB / 3.883 GB, free: 42.45 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002802/8.763, allocations: 264 kB / 3.883 GB, free: 42.19 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/8.765, allocations: 430.9 kB / 3.883 GB, free: 41.78 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/8.767, allocations: 1.519 MB / 3.885 GB, free: 40.21 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/8.768, allocations: 1.145 MB / 3.886 GB, free: 39.04 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008281/8.769, allocations: 279.1 kB / 3.886 GB, free: 38.76 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/8.769, allocations: 71.36 kB / 3.886 GB, free: 38.69 MB / 1.167 GB Notification: Performance of SimCode: time 1.663e-06/8.769, allocations: 0 / 3.886 GB, free: 38.69 MB / 1.167 GB Notification: Performance of Templates: time 0.7699/9.539, allocations: 41.44 MB / 3.927 GB, free: 259.3 MB / 1.167 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","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches