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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00165/0.00165, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 193.5 kB / 16.53 MB, free: 6.664 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 67.53 kB / 0.912 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3654, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9346/1.3, allocations: 195.1 MB / 1.259 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01567/1.316, allocations: 14.32 MB / 1.273 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/1.317, allocations: 35.81 kB / 1.273 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001402/1.319, allocations: 0.4947 MB / 1.273 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004677/1.323, allocations: 1.88 MB / 1.275 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002559/1.326, allocations: 0.8601 MB / 1.276 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003531/1.329, allocations: 2.576 MB / 1.278 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/1.331, allocations: 1.115 MB / 1.279 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004634/1.336, allocations: 1.612 MB / 1.281 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/1.338, allocations: 0.9239 MB / 1.282 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001958/1.338, allocations: 106.9 kB / 1.282 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003014/1.341, allocations: 1.1 MB / 1.283 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007883/1.342, allocations: 0.49 MB / 1.284 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001474/1.343, allocations: 0.6347 MB / 1.284 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00464/1.348, allocations: 1.88 MB / 1.286 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/1.348, allocations: 0.75 kB / 1.286 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.404e-06/1.348, allocations: 2.5 kB / 1.286 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.804e-05/1.348, allocations: 0 / 1.286 GB, free: 5.34 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.003481/1.351, allocations: 1.461 MB / 1.287 GB, free: 20.55 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 6.311e-05/1.351, allocations: 10.08 kB / 1.288 GB, free: 20.55 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001829/1.353, allocations: 249.6 kB / 1.288 GB, free: 20.5 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/1.354, allocations: 0.749 MB / 1.288 GB, free: 20.18 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/1.355, allocations: 69.16 kB / 1.289 GB, free: 20.18 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/1.355, allocations: 98.42 kB / 1.289 GB, free: 20.18 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/1.357, allocations: 1.173 MB / 1.29 GB, free: 19.95 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/1.357, allocations: 4.625 kB / 1.29 GB, free: 19.95 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/1.357, allocations: 40.78 kB / 1.29 GB, free: 19.95 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-05/1.357, allocations: 33.62 kB / 1.29 GB, free: 19.95 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/1.358, allocations: 0.9012 MB / 1.291 GB, free: 19.94 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.006245/1.365, allocations: 5.778 MB / 1.296 GB, free: 16.16 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008654/1.365, allocations: 0.5397 MB / 1.297 GB, free: 16.13 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004357/1.366, allocations: 321.1 kB / 1.297 GB, free: 16.12 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006231/1.367, allocations: 311.3 kB / 1.298 GB, free: 15.84 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/1.367, allocations: 39.22 kB / 1.298 GB, free: 15.8 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/1.367, allocations: 0 / 1.298 GB, free: 15.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001583/1.368, allocations: 0.8016 MB / 1.298 GB, free: 15.71 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/1.368, allocations: 64.39 kB / 1.298 GB, free: 15.64 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000971/1.369, allocations: 0.7495 MB / 1.299 GB, free: 15.5 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/1.369, allocations: 36.45 kB / 1.299 GB, free: 15.47 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/1.37, allocations: 0.5101 MB / 1.3 GB, free: 15.22 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/1.37, allocations: 175 kB / 1.3 GB, free: 15.12 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/1.37, allocations: 145.6 kB / 1.3 GB, free: 15.09 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001426/1.37, allocations: 334.1 kB / 1.3 GB, free: 14.79 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/1.37, allocations: 248.2 kB / 1.301 GB, free: 14.79 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005399/1.371, allocations: 0.5498 MB / 1.301 GB, free: 14.44 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009135/1.372, allocations: 0.799 MB / 1.302 GB, free: 14.15 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/1.372, allocations: 2.281 kB / 1.302 GB, free: 14.15 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001375/1.373, allocations: 0.8469 MB / 1.303 GB, free: 14.06 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/1.373, allocations: 11.84 kB / 1.303 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/1.373, allocations: 8.031 kB / 1.303 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/1.373, allocations: 12.44 kB / 1.303 GB, free: 14.06 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/1.374, allocations: 160.6 kB / 1.303 GB, free: 14.05 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/1.374, allocations: 19.67 kB / 1.303 GB, free: 14.05 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007916/1.375, allocations: 85.95 kB / 1.303 GB, free: 14.01 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.315e-05/1.375, allocations: 37.62 kB / 1.303 GB, free: 14.01 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.0004962/1.375, allocations: 333.7 kB / 1.303 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/1.376, allocations: 89.53 kB / 1.303 GB, free: 13.84 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/1.377, allocations: 0.6186 MB / 1.304 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/1.377, allocations: 10.31 kB / 1.304 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/1.377, allocations: 0 / 1.304 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000732/1.377, allocations: 0.5164 MB / 1.305 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/1.38, allocations: 1.664 MB / 1.306 GB, free: 13.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.38, allocations: 4.188 kB / 1.306 GB, free: 13.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/1.38, allocations: 108.8 kB / 1.306 GB, free: 13.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/1.381, allocations: 3.297 kB / 1.306 GB, free: 13.34 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/1.381, allocations: 18.8 kB / 1.306 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/1.381, allocations: 13.2 kB / 1.306 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.381, allocations: 2.312 kB / 1.306 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/1.382, allocations: 1.027 MB / 1.307 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003755/1.382, allocations: 218.5 kB / 1.307 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/1.382, allocations: 15.69 kB / 1.307 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004526/1.383, allocations: 18.47 kB / 1.308 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.67e-05/1.383, allocations: 31.89 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/1.383, allocations: 23.28 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0007076/1.384, allocations: 0.5129 MB / 1.308 GB, free: 12.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.71e-07/1.384, allocations: 0.6562 kB / 1.308 GB, free: 12.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00121/1.385, allocations: 300.2 kB / 1.308 GB, free: 12.8 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.0005076/1.385, allocations: 207.5 kB / 1.309 GB, free: 12.7 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001277/1.387, allocations: 0.7118 MB / 1.309 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.387, allocations: 1.375 kB / 1.309 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003503/1.387, allocations: 274.6 kB / 1.31 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/1.389, allocations: 441.1 kB / 1.31 GB, free: 12.62 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/1.392, allocations: 1.945 MB / 1.312 GB, free: 11.77 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/1.393, allocations: 1.122 MB / 1.313 GB, free: 11.06 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009218/1.394, allocations: 270.3 kB / 1.313 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/1.394, allocations: 73.14 kB / 1.313 GB, free: 11.01 MB / 1.014 GB Notification: Performance of SimCode: time 5.71e-07/1.394, allocations: 3.094 kB / 1.313 GB, free: 11.01 MB / 1.014 GB Notification: Performance of Templates: time 0.02818/1.422, allocations: 15.41 MB / 1.328 GB, free: 10.06 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