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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009012/0.009012, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001927/0.001927, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 68.11 kB / 1.054 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3381, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 1.08/1.418, allocations: 195.1 MB / 1.398 GB, free: 11.57 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.02157/1.439, allocations: 14.32 MB / 1.412 GB, free: 15.96 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/1.442, allocations: 36.19 kB / 1.412 GB, free: 15.95 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.002141/1.444, allocations: 0.4949 MB / 1.412 GB, free: 15.53 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.006209/1.45, allocations: 1.888 MB / 1.414 GB, free: 14.08 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002949/1.453, allocations: 0.8676 MB / 1.415 GB, free: 13.42 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.004164/1.457, allocations: 2.573 MB / 1.418 GB, free: 11.95 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00205/1.459, allocations: 1.116 MB / 1.419 GB, free: 11.3 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005015/1.464, allocations: 1.613 MB / 1.42 GB, free: 10.34 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002077/1.466, allocations: 0.9221 MB / 1.421 GB, free: 9.805 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0004031/1.467, allocations: 106.6 kB / 1.421 GB, free: 9.805 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003001/1.47, allocations: 1.099 MB / 1.422 GB, free: 9.234 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.000851/1.471, allocations: 0.5018 MB / 1.423 GB, free: 8.898 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.001696/1.472, allocations: 0.6343 MB / 1.423 GB, free: 8.492 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.00423/1.477, allocations: 1.905 MB / 1.425 GB, free: 7.262 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/1.477, allocations: 0 / 1.425 GB, free: 7.262 MB / 1.107 GB Notification: Performance of FrontEnd: time 3.757e-06/1.477, allocations: 0 / 1.425 GB, free: 7.262 MB / 1.107 GB Notification: Performance of Transformations before backend: time 8.236e-05/1.477, allocations: 10 kB / 1.425 GB, free: 7.254 MB / 1.107 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.00367/1.48, allocations: 1.45 MB / 1.427 GB, free: 6.148 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/1.48, allocations: 8.406 kB / 1.427 GB, free: 6.148 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003233/1.481, allocations: 146.8 kB / 1.427 GB, free: 6.031 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001711/1.482, allocations: 258.1 kB / 1.427 GB, free: 5.91 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001868/1.484, allocations: 0.7837 MB / 1.428 GB, free: 5.207 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/1.484, allocations: 70 kB / 1.428 GB, free: 5.137 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/1.485, allocations: 99.89 kB / 1.428 GB, free: 5.039 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/1.487, allocations: 1.169 MB / 1.429 GB, free: 3.801 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/1.487, allocations: 3.938 kB / 1.429 GB, free: 3.797 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.899e-05/1.487, allocations: 47.92 kB / 1.429 GB, free: 3.75 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/1.487, allocations: 34 kB / 1.429 GB, free: 3.715 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/1.488, allocations: 0.8976 MB / 1.43 GB, free: 2.82 MB / 1.107 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.006317/1.495, allocations: 5.743 MB / 1.436 GB, free: 12.61 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/1.496, allocations: 0.5361 MB / 1.436 GB, free: 12.07 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004302/1.496, allocations: 322.6 kB / 1.437 GB, free: 11.75 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005975/1.497, allocations: 311.7 kB / 1.437 GB, free: 11.39 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/1.497, allocations: 39 kB / 1.437 GB, free: 11.34 MB / 1.123 GB Notification: Performance of pre-optimization done (n=49): time 1.794e-06/1.497, allocations: 0 / 1.437 GB, free: 11.34 MB / 1.123 GB Notification: Performance of matching and sorting (n=49): time 0.001501/1.498, allocations: 0.8064 MB / 1.438 GB, free: 10.53 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/1.498, allocations: 55.84 kB / 1.438 GB, free: 10.46 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009255/1.499, allocations: 0.7548 MB / 1.438 GB, free: 9.695 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/1.499, allocations: 37.7 kB / 1.438 GB, free: 9.652 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003717/1.5, allocations: 0.4987 MB / 1.439 GB, free: 9.145 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/1.5, allocations: 177.5 kB / 1.439 GB, free: 8.969 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/1.5, allocations: 150.5 kB / 1.439 GB, free: 8.816 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001608/1.5, allocations: 337.9 kB / 1.44 GB, free: 8.48 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/1.501, allocations: 249.8 kB / 1.44 GB, free: 8.238 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006283/1.501, allocations: 0.5507 MB / 1.44 GB, free: 7.555 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/1.502, allocations: 0.7995 MB / 1.441 GB, free: 6.645 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/1.502, allocations: 4 kB / 1.441 GB, free: 6.641 MB / 1.123 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001343/1.504, allocations: 0.8463 MB / 1.442 GB, free: 5.789 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/1.504, allocations: 8 kB / 1.442 GB, free: 5.781 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/1.504, allocations: 8 kB / 1.442 GB, free: 5.773 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/1.504, allocations: 15.94 kB / 1.442 GB, free: 5.758 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/1.504, allocations: 155.7 kB / 1.442 GB, free: 5.605 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-05/1.504, allocations: 16.5 kB / 1.442 GB, free: 5.59 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/1.505, allocations: 91.11 kB / 1.442 GB, free: 5.5 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.957e-05/1.505, allocations: 43.98 kB / 1.442 GB, free: 5.457 MB / 1.123 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.0004077/1.506, allocations: 325.4 kB / 1.443 GB, free: 5.129 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/1.506, allocations: 86.97 kB / 1.443 GB, free: 5.043 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009967/1.507, allocations: 0.618 MB / 1.443 GB, free: 4.414 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/1.507, allocations: 11.94 kB / 1.443 GB, free: 4.402 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/1.507, allocations: 0 / 1.443 GB, free: 4.402 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007046/1.507, allocations: 0.5211 MB / 1.444 GB, free: 3.871 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/1.51, allocations: 1.663 MB / 1.445 GB, free: 2.129 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/1.51, allocations: 3.984 kB / 1.445 GB, free: 2.125 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005111/1.511, allocations: 115.8 kB / 1.446 GB, free: 2.012 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.178e-05/1.511, allocations: 4 kB / 1.446 GB, free: 2.008 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.493e-05/1.511, allocations: 15.98 kB / 1.446 GB, free: 1.992 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/1.511, allocations: 4 kB / 1.446 GB, free: 1.988 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.511, allocations: 4 kB / 1.446 GB, free: 1.984 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/1.512, allocations: 1.011 MB / 1.447 GB, free: 0.9336 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/1.512, allocations: 227.9 kB / 1.447 GB, free: 0.6914 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/1.513, allocations: 20 kB / 1.447 GB, free: 0.6719 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004703/1.513, allocations: 12 kB / 1.447 GB, free: 0.6602 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/1.513, allocations: 31.95 kB / 1.447 GB, free: 0.6289 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/1.513, allocations: 23.98 kB / 1.447 GB, free: 0.6055 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0007355/1.514, allocations: 0.5146 MB / 1.447 GB, free: 96 kB / 1.123 GB Notification: Performance of sort global known variables: time 1.5e-07/1.514, allocations: 0 / 1.447 GB, free: 96 kB / 1.123 GB Notification: Performance of remove unused functions: time 0.0009887/1.515, allocations: 295.3 kB / 1.448 GB, free: 15.8 MB / 1.139 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.002195/1.517, allocations: 1.682 MB / 1.449 GB, free: 14.09 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.001029/1.518, allocations: 0.6043 MB / 1.45 GB, free: 13.49 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.518, allocations: 8.062 kB / 1.45 GB, free: 13.48 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0003697/1.519, allocations: 275.5 kB / 1.45 GB, free: 13.21 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/1.521, allocations: 441 kB / 1.451 GB, free: 12.8 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/1.531, allocations: 7.202 MB / 1.458 GB, free: 5.199 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/1.532, allocations: 1.118 MB / 1.459 GB, free: 4.055 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.000835/1.533, allocations: 267 kB / 1.459 GB, free: 3.789 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005184/1.534, allocations: 359.3 kB / 1.459 GB, free: 3.441 MB / 1.139 GB Notification: Performance of SimCode: time 6.42e-07/1.534, allocations: 0 / 1.459 GB, free: 3.441 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05443/1.588, allocations: 23.45 MB / 1.482 GB, free: 12.32 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.316/10.9, allocations: 10.31 kB / 1.482 GB, free: 12.31 MB / 1.17 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > 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