Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.012/0.012, allocations: 101.1 kB / 15.73 MB, free: 6.469 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.00143/0.00143, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.49/2.49, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 72.14 kB / 0.9509 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3145, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9883/1.303, allocations: 195.1 MB / 1.278 GB, free: 3.488 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02037/1.323, allocations: 14.32 MB / 1.292 GB, free: 3.328 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002333/1.326, allocations: 42.12 kB / 1.292 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001887/1.328, allocations: 0.498 MB / 1.293 GB, free: 3.316 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006645/1.334, allocations: 1.883 MB / 1.295 GB, free: 3.242 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003188/1.337, allocations: 0.8711 MB / 1.296 GB, free: 3.219 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004904/1.342, allocations: 2.566 MB / 1.298 GB, free: 3.219 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/1.344, allocations: 1.122 MB / 1.299 GB, free: 3.109 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005924/1.35, allocations: 1.615 MB / 1.301 GB, free: 3.086 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002664/1.353, allocations: 0.9247 MB / 1.302 GB, free: 3.082 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002594/1.353, allocations: 106.5 kB / 1.302 GB, free: 3.082 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00333/1.357, allocations: 1.099 MB / 1.303 GB, free: 3.07 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007653/1.357, allocations: 0.4978 MB / 1.303 GB, free: 3.062 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/1.359, allocations: 0.6357 MB / 1.304 GB, free: 3.043 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004042/1.363, allocations: 1.908 MB / 1.306 GB, free: 2.797 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/1.363, allocations: 2.844 kB / 1.306 GB, free: 2.797 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.813e-06/1.363, allocations: 0 / 1.306 GB, free: 2.797 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.555e-05/1.363, allocations: 0.8438 kB / 1.306 GB, free: 2.797 MB / 1.014 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.002698/1.365, allocations: 1.452 MB / 1.307 GB, free: 2.016 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/1.366, allocations: 9.406 kB / 1.307 GB, free: 2.016 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/1.367, allocations: 252.3 kB / 1.308 GB, free: 1.957 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/1.368, allocations: 0.7874 MB / 1.308 GB, free: 1.641 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.545e-05/1.368, allocations: 71.88 kB / 1.308 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/1.369, allocations: 97.86 kB / 1.308 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/1.37, allocations: 1.167 MB / 1.31 GB, free: 1.41 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/1.371, allocations: 2.031 kB / 1.31 GB, free: 1.41 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.265e-05/1.371, allocations: 45.47 kB / 1.31 GB, free: 1.406 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.192e-05/1.371, allocations: 35.75 kB / 1.31 GB, free: 1.402 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/1.372, allocations: 0.9043 MB / 1.311 GB, free: 1.395 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.006272/1.378, allocations: 5.741 MB / 1.316 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009859/1.379, allocations: 0.539 MB / 1.317 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/1.38, allocations: 322.2 kB / 1.317 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006632/1.381, allocations: 311.2 kB / 1.317 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/1.381, allocations: 41.62 kB / 1.317 GB, free: 13.26 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 3.066e-06/1.381, allocations: 0 / 1.317 GB, free: 13.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.001796/1.383, allocations: 0.8011 MB / 1.318 GB, free: 13.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/1.383, allocations: 55.88 kB / 1.318 GB, free: 13.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/1.384, allocations: 0.7571 MB / 1.319 GB, free: 12.97 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.162e-05/1.384, allocations: 36.48 kB / 1.319 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/1.384, allocations: 0.5063 MB / 1.319 GB, free: 12.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/1.384, allocations: 177.6 kB / 1.32 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/1.385, allocations: 146.5 kB / 1.32 GB, free: 12.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001379/1.385, allocations: 340.6 kB / 1.32 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003737/1.385, allocations: 246.7 kB / 1.32 GB, free: 12.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006455/1.386, allocations: 0.5538 MB / 1.321 GB, free: 11.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009916/1.387, allocations: 0.8031 MB / 1.322 GB, free: 11.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.433e-06/1.387, allocations: 2.438 kB / 1.322 GB, free: 11.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001406/1.388, allocations: 0.8483 MB / 1.322 GB, free: 11.52 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/1.388, allocations: 9.375 kB / 1.322 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/1.388, allocations: 8.094 kB / 1.323 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.848e-05/1.388, allocations: 12.78 kB / 1.323 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/1.389, allocations: 154.4 kB / 1.323 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.92e-05/1.389, allocations: 18.84 kB / 1.323 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009182/1.39, allocations: 86.5 kB / 1.323 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.66e-05/1.39, allocations: 34.16 kB / 1.323 GB, free: 11.48 MB / 1.029 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.0006602/1.391, allocations: 333.2 kB / 1.323 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/1.391, allocations: 88.03 kB / 1.323 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/1.392, allocations: 0.6178 MB / 1.324 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/1.392, allocations: 4.5 kB / 1.324 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/1.392, allocations: 2.062 kB / 1.324 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008923/1.393, allocations: 0.5187 MB / 1.324 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/1.395, allocations: 1.675 MB / 1.326 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/1.395, allocations: 2.75 kB / 1.326 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005064/1.396, allocations: 110.9 kB / 1.326 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/1.396, allocations: 4.938 kB / 1.326 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.617e-05/1.396, allocations: 18.09 kB / 1.326 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/1.396, allocations: 4.531 kB / 1.326 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/1.396, allocations: 7.688 kB / 1.326 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/1.398, allocations: 1.019 MB / 1.327 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/1.398, allocations: 225.1 kB / 1.327 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/1.398, allocations: 15.25 kB / 1.327 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004475/1.399, allocations: 24.56 kB / 1.327 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/1.399, allocations: 35.02 kB / 1.327 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.439e-05/1.399, allocations: 17.31 kB / 1.327 GB, free: 10.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0006719/1.399, allocations: 0.5149 MB / 1.328 GB, free: 10.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.71e-07/1.399, allocations: 0.9062 kB / 1.328 GB, free: 10.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001167/1.401, allocations: 289.2 kB / 1.328 GB, free: 10.27 MB / 1.029 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.000636/1.401, allocations: 208.6 kB / 1.328 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009567/1.402, allocations: 0.6179 MB / 1.329 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.402, allocations: 4.656 kB / 1.329 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003521/1.403, allocations: 268.3 kB / 1.329 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/1.404, allocations: 440.8 kB / 1.33 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003051/1.407, allocations: 1.932 MB / 1.332 GB, free: 9.238 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006536/1.408, allocations: 1.122 MB / 1.333 GB, free: 8.527 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0007311/1.409, allocations: 268.7 kB / 1.333 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/1.409, allocations: 71.3 kB / 1.333 GB, free: 8.473 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/1.409, allocations: 3.938 kB / 1.333 GB, free: 8.469 MB / 1.029 GB Notification: Performance of Templates: time 0.02829/1.437, allocations: 15.78 MB / 1.348 GB, free: 6.273 MB / 1.029 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches