Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.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: translateModel(Buildings.Fluid.Sensors.Examples.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction") translateModel(Buildings.Fluid.Sensors.Examples.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007437/0.007437, allocations: 105.2 kB / 15.74 MB, free: 5.996 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.001723/0.001723, allocations: 197 kB / 16.67 MB, free: 5.918 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.373/1.373, allocations: 222.9 MB / 240.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.581/2.581, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.89 kB / 1.054 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8897/0.891, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2054/1.096, allocations: 186.8 MB / 1.39 GB, free: 2.113 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.008147/1.105, allocations: 4.577 MB / 1.395 GB, free: 13.52 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/1.106, allocations: 31.81 kB / 1.395 GB, free: 13.49 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001248/1.107, allocations: 413.4 kB / 1.395 GB, free: 13.09 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.003748/1.111, allocations: 1.338 MB / 1.396 GB, free: 11.74 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.002174/1.113, allocations: 0.7665 MB / 1.397 GB, free: 10.98 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.002491/1.116, allocations: 1.956 MB / 1.399 GB, free: 9.016 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008968/1.116, allocations: 0.6496 MB / 1.4 GB, free: 8.355 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/1.12, allocations: 1.104 MB / 1.401 GB, free: 7.262 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/1.121, allocations: 0.5822 MB / 1.401 GB, free: 6.68 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0001046/1.121, allocations: 64 kB / 1.401 GB, free: 6.617 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002654/1.124, allocations: 1.387 MB / 1.403 GB, free: 5.227 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0003226/1.124, allocations: 287.2 kB / 1.403 GB, free: 4.945 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0005167/1.125, allocations: 418.1 kB / 1.403 GB, free: 4.535 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.002559/1.127, allocations: 1.476 MB / 1.405 GB, free: 3.055 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/1.127, allocations: 0 / 1.405 GB, free: 3.055 MB / 1.123 GB Notification: Performance of FrontEnd: time 2.625e-06/1.127, allocations: 0 / 1.405 GB, free: 3.055 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.708e-05/1.127, allocations: 0 / 1.405 GB, free: 3.055 MB / 1.123 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001802/1.129, allocations: 1.098 MB / 1.406 GB, free: 1.906 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/1.129, allocations: 8.031 kB / 1.406 GB, free: 1.898 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/1.13, allocations: 198.9 kB / 1.406 GB, free: 1.703 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/1.132, allocations: 0.6066 MB / 1.407 GB, free: 1.051 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/1.132, allocations: 41.31 kB / 1.407 GB, free: 1.012 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/1.132, allocations: 63.98 kB / 1.407 GB, free: 0.9492 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/1.133, allocations: 0.6167 MB / 1.407 GB, free: 324 kB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/1.133, allocations: 3.938 kB / 1.407 GB, free: 320 kB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/1.133, allocations: 24 kB / 1.407 GB, free: 296 kB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-05/1.133, allocations: 17.31 kB / 1.407 GB, free: 280 kB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008365/1.134, allocations: 0.4931 MB / 1.408 GB, free: 15.78 MB / 1.139 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.003389/1.137, allocations: 2.404 MB / 1.41 GB, free: 13.17 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/1.138, allocations: 362.7 kB / 1.411 GB, free: 12.8 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003313/1.138, allocations: 208.8 kB / 1.411 GB, free: 12.6 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006637/1.139, allocations: 299.2 kB / 1.411 GB, free: 12.25 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/1.139, allocations: 42.56 kB / 1.411 GB, free: 12.2 MB / 1.139 GB Notification: Performance of pre-optimization done (n=36): time 4.047e-06/1.139, allocations: 0 / 1.411 GB, free: 12.2 MB / 1.139 GB Notification: Performance of matching and sorting (n=36): time 0.001414/1.14, allocations: 0.5485 MB / 1.412 GB, free: 11.64 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/1.14, allocations: 55.41 kB / 1.412 GB, free: 11.58 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007478/1.141, allocations: 0.495 MB / 1.412 GB, free: 11.07 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/1.141, allocations: 37.7 kB / 1.412 GB, free: 11.03 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.000302/1.142, allocations: 331.7 kB / 1.413 GB, free: 10.7 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.000128/1.142, allocations: 122.2 kB / 1.413 GB, free: 10.58 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/1.142, allocations: 86.03 kB / 1.413 GB, free: 10.49 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0002072/1.142, allocations: 362.8 kB / 1.413 GB, free: 10.13 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/1.142, allocations: 154.5 kB / 1.413 GB, free: 9.973 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/1.143, allocations: 263.8 kB / 1.413 GB, free: 9.68 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/1.143, allocations: 402.3 kB / 1.414 GB, free: 9.258 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.143, allocations: 3.938 kB / 1.414 GB, free: 9.254 MB / 1.139 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007431/1.144, allocations: 489.2 kB / 1.414 GB, free: 8.77 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/1.144, allocations: 4 kB / 1.414 GB, free: 8.766 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/1.144, allocations: 4 kB / 1.414 GB, free: 8.762 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/1.144, allocations: 4 kB / 1.414 GB, free: 8.758 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005558/1.145, allocations: 99.88 kB / 1.414 GB, free: 8.66 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000419/1.145, allocations: 0.5979 MB / 1.415 GB, free: 8.039 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/1.146, allocations: 51.58 kB / 1.415 GB, free: 7.988 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/1.146, allocations: 16 kB / 1.415 GB, free: 7.973 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005015/1.146, allocations: 332.9 kB / 1.415 GB, free: 7.645 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000332/1.147, allocations: 259.5 kB / 1.416 GB, free: 7.348 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005805/1.147, allocations: 400.6 kB / 1.416 GB, free: 6.926 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.867e-06/1.147, allocations: 7.922 kB / 1.416 GB, free: 6.918 MB / 1.139 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007232/1.148, allocations: 484.7 kB / 1.417 GB, free: 6.438 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/1.148, allocations: 8 kB / 1.417 GB, free: 6.43 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/1.148, allocations: 7.938 kB / 1.417 GB, free: 6.422 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.943e-06/1.148, allocations: 4 kB / 1.417 GB, free: 6.418 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/1.148, allocations: 91.83 kB / 1.417 GB, free: 6.328 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/1.148, allocations: 4 kB / 1.417 GB, free: 6.324 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/1.149, allocations: 35.73 kB / 1.417 GB, free: 6.289 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/1.149, allocations: 12 kB / 1.417 GB, free: 6.277 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002185/1.149, allocations: 212.2 kB / 1.417 GB, free: 6.062 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/1.149, allocations: 59.28 kB / 1.417 GB, free: 6.004 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007892/1.15, allocations: 453.1 kB / 1.417 GB, free: 5.551 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.15, allocations: 7.984 kB / 1.417 GB, free: 5.543 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.15, allocations: 0 / 1.417 GB, free: 5.543 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006766/1.151, allocations: 0.6521 MB / 1.418 GB, free: 4.805 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/1.153, allocations: 1.21 MB / 1.419 GB, free: 3.516 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.153, allocations: 0 / 1.419 GB, free: 3.516 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004608/1.153, allocations: 91.89 kB / 1.419 GB, free: 3.426 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/1.153, allocations: 4.219 kB / 1.419 GB, free: 3.422 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/1.153, allocations: 15.94 kB / 1.419 GB, free: 3.406 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003252/1.153, allocations: 0.5976 MB / 1.42 GB, free: 2.785 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.153, allocations: 0 / 1.42 GB, free: 2.785 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/1.154, allocations: 0.7079 MB / 1.421 GB, free: 2.035 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/1.155, allocations: 172.4 kB / 1.421 GB, free: 1.848 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.993e-05/1.155, allocations: 15.92 kB / 1.421 GB, free: 1.832 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003942/1.155, allocations: 16.06 kB / 1.421 GB, free: 1.816 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/1.155, allocations: 23.97 kB / 1.421 GB, free: 1.793 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/1.155, allocations: 16 kB / 1.421 GB, free: 1.777 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0003916/1.156, allocations: 358.8 kB / 1.421 GB, free: 1.43 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.31e-07/1.156, allocations: 0 / 1.421 GB, free: 1.43 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.000878/1.156, allocations: 347.1 kB / 1.421 GB, free: 1.09 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,senMasFra1.X) * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004585/1.157, allocations: 195.6 kB / 1.422 GB, free: 0.8984 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.001113/1.158, allocations: 0.5892 MB / 1.422 GB, free: 316 kB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.158, allocations: 0 / 1.422 GB, free: 316 kB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0002902/1.158, allocations: 188 kB / 1.422 GB, free: 128 kB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/1.16, allocations: 380.5 kB / 1.423 GB, free: 15.76 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/1.162, allocations: 1.338 MB / 1.424 GB, free: 14.38 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/1.163, allocations: 0.9413 MB / 1.425 GB, free: 13.41 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0006226/1.163, allocations: 208.9 kB / 1.425 GB, free: 13.2 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/1.163, allocations: 47.44 kB / 1.425 GB, free: 13.16 MB / 1.154 GB Notification: Performance of SimCode: time 4.01e-07/1.163, allocations: 4 kB / 1.425 GB, free: 13.15 MB / 1.154 GB Notification: Performance of Templates: time 0.02197/1.185, allocations: 12.06 MB / 1.437 GB, free: 1.262 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches