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.322/2.322, allocations: 390.5 MB / 398 MB, free: 10.95 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.001165/0.001164, allocations: 176.8 kB / 491.2 MB, free: 1.582 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009869/0.000987, allocations: 89.89 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.803e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2438, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.552/5.796, allocations: 1.973 GB / 3.185 GB, free: 298.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/5.796, allocations: 93.62 kB / 3.185 GB, free: 298.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.228/8.024, allocations: 0.6589 GB / 3.844 GB, free: 77.91 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.184e-06/8.024, allocations: 4 kB / 3.844 GB, free: 77.91 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000106/8.024, allocations: 28 kB / 3.844 GB, free: 77.88 MB / 1.151 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.004587/8.029, allocations: 1.325 MB / 3.845 GB, free: 76.51 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/8.029, allocations: 8.031 kB / 3.845 GB, free: 76.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/8.031, allocations: 250.3 kB / 3.846 GB, free: 76.25 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/8.036, allocations: 1.113 MB / 3.847 GB, free: 75.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/8.036, allocations: 28 kB / 3.847 GB, free: 75.07 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003174/8.036, allocations: 59.98 kB / 3.847 GB, free: 75.02 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002223/8.039, allocations: 0.7614 MB / 3.848 GB, free: 74.25 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/8.041, allocations: 0.9751 MB / 3.849 GB, free: 73.21 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/8.041, allocations: 7.938 kB / 3.849 GB, free: 73.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/8.041, allocations: 0 / 3.849 GB, free: 73.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.794e-05/8.041, allocations: 38 kB / 3.849 GB, free: 73.16 MB / 1.151 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.008117/8.05, allocations: 5.521 MB / 3.854 GB, free: 67.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/8.051, allocations: 0.5015 MB / 3.855 GB, free: 66.69 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005254/8.051, allocations: 290.6 kB / 3.855 GB, free: 66.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000657/8.052, allocations: 315.8 kB / 3.855 GB, free: 66.04 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/8.052, allocations: 39 kB / 3.855 GB, free: 65.99 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 4.328e-06/8.052, allocations: 0 / 3.855 GB, free: 65.99 MB / 1.151 GB Notification: Performance of matching and sorting (n=49): time 0.00206/8.054, allocations: 0.5849 MB / 3.856 GB, free: 65.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/8.054, allocations: 55.84 kB / 3.856 GB, free: 65.33 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/8.055, allocations: 0.5193 MB / 3.856 GB, free: 64.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.85e-05/8.055, allocations: 25.7 kB / 3.856 GB, free: 64.77 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004473/8.056, allocations: 0.5063 MB / 3.857 GB, free: 64.26 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/8.056, allocations: 173.5 kB / 3.857 GB, free: 64.09 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/8.056, allocations: 3.938 kB / 3.857 GB, free: 64.08 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001444/8.056, allocations: 390.8 kB / 3.857 GB, free: 63.69 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004897/8.057, allocations: 217.5 kB / 3.858 GB, free: 63.48 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000715/8.058, allocations: 0.5375 MB / 3.858 GB, free: 62.79 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009227/8.058, allocations: 364.4 kB / 3.858 GB, free: 62.43 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/8.059, allocations: 4 kB / 3.858 GB, free: 62.43 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00188/8.06, allocations: 0.7726 MB / 3.859 GB, free: 61.65 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/8.06, allocations: 8 kB / 3.859 GB, free: 61.64 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/8.06, allocations: 8 kB / 3.859 GB, free: 61.64 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/8.061, allocations: 12 kB / 3.859 GB, free: 61.62 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000929/8.061, allocations: 155.7 kB / 3.859 GB, free: 61.47 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.119e-05/8.062, allocations: 19.92 kB / 3.859 GB, free: 61.45 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/8.063, allocations: 115.6 kB / 3.859 GB, free: 61.34 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/8.063, allocations: 36 kB / 3.859 GB, free: 61.3 MB / 1.151 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.000195/8.063, allocations: 128.7 kB / 3.86 GB, free: 61.17 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002391/8.064, allocations: 83.05 kB / 3.86 GB, free: 61.09 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/8.065, allocations: 0.5856 MB / 3.86 GB, free: 60.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/8.065, allocations: 4 kB / 3.86 GB, free: 60.49 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/8.065, allocations: 3.953 kB / 3.86 GB, free: 60.49 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001112/8.066, allocations: 0.5055 MB / 3.861 GB, free: 59.97 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/8.07, allocations: 1.524 MB / 3.862 GB, free: 58.38 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/8.07, allocations: 4 kB / 3.862 GB, free: 58.38 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009076/8.071, allocations: 120 kB / 3.862 GB, free: 58.26 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.421e-05/8.071, allocations: 4 kB / 3.862 GB, free: 58.26 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-05/8.071, allocations: 4 kB / 3.862 GB, free: 58.25 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/8.071, allocations: 4 kB / 3.862 GB, free: 58.25 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.717e-06/8.071, allocations: 15.86 kB / 3.862 GB, free: 58.23 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/8.073, allocations: 1.056 MB / 3.863 GB, free: 57.09 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005594/8.074, allocations: 216 kB / 3.864 GB, free: 56.86 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/8.074, allocations: 11.98 kB / 3.864 GB, free: 56.85 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/8.075, allocations: 51.8 kB / 3.864 GB, free: 56.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/8.075, allocations: 47.83 kB / 3.864 GB, free: 56.75 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/8.075, allocations: 15.98 kB / 3.864 GB, free: 56.74 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007225/8.076, allocations: 399.1 kB / 3.864 GB, free: 56.35 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.51e-07/8.076, allocations: 0 / 3.864 GB, free: 56.35 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002114/8.078, allocations: 411.2 kB / 3.865 GB, free: 55.95 MB / 1.151 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.003958/8.082, allocations: 2.137 MB / 3.867 GB, free: 53.73 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001472/8.083, allocations: 0.549 MB / 3.867 GB, free: 53.18 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/8.083, allocations: 0 / 3.867 GB, free: 53.18 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004774/8.084, allocations: 267.6 kB / 3.867 GB, free: 52.92 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/8.087, allocations: 360.9 kB / 3.868 GB, free: 52.58 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/8.091, allocations: 1.483 MB / 3.869 GB, free: 51.04 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007481/8.091, allocations: 1.141 MB / 3.87 GB, free: 49.88 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001494/8.093, allocations: 262.5 kB / 3.871 GB, free: 49.61 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/8.093, allocations: 67.42 kB / 3.871 GB, free: 49.55 MB / 1.151 GB Notification: Performance of SimCode: time 1.533e-06/8.093, allocations: 0 / 3.871 GB, free: 49.55 MB / 1.151 GB Notification: Performance of Templates: time 0.05587/8.149, allocations: 23.11 MB / 3.893 GB, free: 26.61 MB / 1.151 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