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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001151/0.001151, allocations: 110 kB / 16.37 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.001137/0.001137, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.43/2.43, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 64.47 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2921, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.6958/0.988, allocations: 186.8 MB / 1.209 GB, free: 13.83 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.007981/0.996, allocations: 4.552 MB / 1.214 GB, free: 10.13 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.9973, allocations: 36.25 kB / 1.214 GB, free: 10.12 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.9987, allocations: 414.9 kB / 1.214 GB, free: 9.773 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.003823/1.003, allocations: 1.338 MB / 1.215 GB, free: 8.738 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002304/1.005, allocations: 0.7649 MB / 1.216 GB, free: 8.164 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002857/1.008, allocations: 1.956 MB / 1.218 GB, free: 7.047 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/1.009, allocations: 0.6689 MB / 1.219 GB, free: 6.629 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003184/1.012, allocations: 1.072 MB / 1.22 GB, free: 5.988 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/1.013, allocations: 0.5767 MB / 1.22 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000207/1.014, allocations: 65.69 kB / 1.22 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003118/1.017, allocations: 1.381 MB / 1.222 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0004304/1.017, allocations: 283.1 kB / 1.222 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0008109/1.018, allocations: 418.1 kB / 1.222 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002761/1.021, allocations: 1.481 MB / 1.224 GB, free: 3.504 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/1.021, allocations: 0 / 1.224 GB, free: 3.504 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.903e-06/1.021, allocations: 0 / 1.224 GB, free: 3.504 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.022e-05/1.021, allocations: 0 / 1.224 GB, free: 3.504 MB / 0.92 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.00235/1.023, allocations: 1.094 MB / 1.225 GB, free: 2.469 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.023, allocations: 8.031 kB / 1.225 GB, free: 2.461 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001461/1.025, allocations: 206.9 kB / 1.225 GB, free: 2.258 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/1.026, allocations: 0.6143 MB / 1.226 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/1.026, allocations: 43.38 kB / 1.226 GB, free: 1.559 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/1.026, allocations: 52 kB / 1.226 GB, free: 1.508 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/1.027, allocations: 0.6206 MB / 1.226 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/1.027, allocations: 3.938 kB / 1.226 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.711e-05/1.027, allocations: 23.94 kB / 1.226 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.588e-05/1.027, allocations: 21.3 kB / 1.226 GB, free: 0.8242 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008639/1.028, allocations: 0.4892 MB / 1.227 GB, free: 344 kB / 0.92 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.003306/1.032, allocations: 2.4 MB / 1.229 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006243/1.032, allocations: 350.8 kB / 1.23 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/1.033, allocations: 213.5 kB / 1.23 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006133/1.033, allocations: 311.2 kB / 1.23 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/1.033, allocations: 38.56 kB / 1.23 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 3.547e-06/1.033, allocations: 3.984 kB / 1.23 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.001175/1.034, allocations: 0.5466 MB / 1.231 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/1.035, allocations: 55.41 kB / 1.231 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006274/1.035, allocations: 0.4989 MB / 1.231 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/1.035, allocations: 33.7 kB / 1.231 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/1.035, allocations: 323.8 kB / 1.232 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.036, allocations: 130.1 kB / 1.232 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/1.036, allocations: 82.12 kB / 1.232 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001487/1.036, allocations: 370.7 kB / 1.232 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/1.036, allocations: 158.5 kB / 1.232 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/1.037, allocations: 267.7 kB / 1.232 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005936/1.037, allocations: 398.3 kB / 1.233 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/1.037, allocations: 4 kB / 1.233 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009435/1.038, allocations: 497 kB / 1.233 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/1.038, allocations: 8 kB / 1.233 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/1.038, allocations: 0 / 1.233 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.084e-05/1.038, allocations: 4 kB / 1.233 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006757/1.039, allocations: 104.7 kB / 1.233 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000618/1.04, allocations: 0.6 MB / 1.234 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/1.04, allocations: 47.52 kB / 1.234 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/1.04, allocations: 16 kB / 1.234 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005939/1.041, allocations: 328.9 kB / 1.234 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003994/1.041, allocations: 255.5 kB / 1.235 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006629/1.042, allocations: 408.5 kB / 1.235 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.356e-06/1.042, allocations: 0 / 1.235 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0009584/1.043, allocations: 484.8 kB / 1.235 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/1.043, allocations: 10.53 kB / 1.236 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.043, allocations: 4 kB / 1.236 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/1.043, allocations: 11.92 kB / 1.236 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004031/1.043, allocations: 79.91 kB / 1.236 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/1.043, allocations: 8.484 kB / 1.236 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/1.044, allocations: 36.42 kB / 1.236 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/1.044, allocations: 16 kB / 1.236 GB, free: 6.832 MB / 0.9356 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.0002335/1.044, allocations: 209.8 kB / 1.236 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/1.044, allocations: 59.28 kB / 1.236 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000823/1.045, allocations: 451.8 kB / 1.236 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/1.045, allocations: 4 kB / 1.236 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.045, allocations: 0 / 1.236 GB, free: 6.105 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006862/1.046, allocations: 0.6597 MB / 1.237 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/1.048, allocations: 1.204 MB / 1.238 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.048, allocations: 0 / 1.238 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/1.049, allocations: 99.8 kB / 1.238 GB, free: 3.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/1.049, allocations: 7.938 kB / 1.238 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/1.049, allocations: 16.2 kB / 1.238 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004344/1.049, allocations: 0.5937 MB / 1.239 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.049, allocations: 4.031 kB / 1.239 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/1.05, allocations: 0.701 MB / 1.24 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/1.051, allocations: 180.3 kB / 1.24 GB, free: 2.402 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/1.051, allocations: 15.92 kB / 1.24 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/1.051, allocations: 12 kB / 1.24 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/1.051, allocations: 31.91 kB / 1.24 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/1.051, allocations: 15.98 kB / 1.24 GB, free: 2.328 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004275/1.052, allocations: 354.8 kB / 1.24 GB, free: 1.984 MB / 0.9356 GB Notification: Performance of sort global known variables: time 6.11e-07/1.052, allocations: 0 / 1.24 GB, free: 1.984 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001066/1.053, allocations: 347.2 kB / 1.24 GB, free: 1.645 MB / 0.9356 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.0005572/1.053, allocations: 196.1 kB / 1.241 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00123/1.055, allocations: 0.5975 MB / 1.241 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.055, allocations: 4 kB / 1.241 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003178/1.055, allocations: 187.7 kB / 1.241 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/1.056, allocations: 368.8 kB / 1.242 GB, free: 328 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/1.059, allocations: 1.326 MB / 1.243 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000559/1.059, allocations: 0.9414 MB / 1.244 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0006284/1.06, allocations: 200.9 kB / 1.244 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/1.06, allocations: 51.44 kB / 1.244 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of SimCode: time 2.735e-06/1.06, allocations: 0 / 1.244 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of Templates: time 0.02113/1.081, allocations: 11.79 MB / 1.256 GB, free: 2.098 MB / 0.9512 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches