Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_10_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_10_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.001028/0.001028, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001352/0.001352, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.596/2.596, allocations: 437.7 MB / 0.7117 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000404/0.0004042, allocations: 12 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.56/0.5604, allocations: 153.8 MB / 1.022 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.1684/0.7289, allocations: 169.9 MB / 1.188 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006746/0.7356, allocations: 4.296 MB / 1.193 GB, free: 1.508 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006652/0.7363, allocations: 27.81 kB / 1.193 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0008413/0.7372, allocations: 278.2 kB / 1.193 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002535/0.7397, allocations: 1.003 MB / 1.194 GB, free: 204 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.7414, allocations: 0.5756 MB / 1.194 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002571/0.744, allocations: 2.315 MB / 1.197 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.7448, allocations: 495.3 kB / 1.197 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.7465, allocations: 0.8559 MB / 1.198 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007652/0.7473, allocations: 0.5642 MB / 1.198 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.857e-05/0.7473, allocations: 28 kB / 1.199 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.7492, allocations: 0.8652 MB / 1.199 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002717/0.7495, allocations: 247.3 kB / 1.2 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.7497, allocations: 169.3 kB / 1.2 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.7508, allocations: 1.009 MB / 1.201 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.7508, allocations: 0 / 1.201 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7508, allocations: 0 / 1.201 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.7508, allocations: 0 / 1.201 GB, free: 9.066 MB / 0.9512 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.001498/0.7523, allocations: 0.9582 MB / 1.202 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.7524, allocations: 11.97 kB / 1.202 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.7537, allocations: 206.9 kB / 1.202 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008688/0.7545, allocations: 0.5563 MB / 1.202 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.7546, allocations: 41.31 kB / 1.202 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.747e-05/0.7547, allocations: 52 kB / 1.203 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009923/0.7557, allocations: 0.6205 MB / 1.203 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.7557, allocations: 7.984 kB / 1.203 GB, free: 6.508 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.7558, allocations: 24 kB / 1.203 GB, free: 6.484 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.909e-05/0.7558, allocations: 17.31 kB / 1.203 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007957/0.7566, allocations: 0.4892 MB / 1.204 GB, free: 5.977 MB / 0.9512 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.0028/0.7594, allocations: 2.392 MB / 1.206 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005936/0.76, allocations: 354.6 kB / 1.206 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.7603, allocations: 215 kB / 1.207 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005703/0.7609, allocations: 323.2 kB / 1.207 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.761, allocations: 42.42 kB / 1.207 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=36): time 1.733e-06/0.761, allocations: 0 / 1.207 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36): time 0.001098/0.7621, allocations: 0.5443 MB / 1.207 GB, free: 1.84 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.7621, allocations: 55.41 kB / 1.207 GB, free: 1.773 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005446/0.7627, allocations: 0.4911 MB / 1.208 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.7627, allocations: 37.7 kB / 1.208 GB, free: 1.227 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.763, allocations: 311.9 kB / 1.208 GB, free: 0.918 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.7631, allocations: 138 kB / 1.208 GB, free: 0.7812 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-05/0.7631, allocations: 8 kB / 1.208 GB, free: 0.7734 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.7633, allocations: 366.7 kB / 1.209 GB, free: 416 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.7635, allocations: 144.8 kB / 1.209 GB, free: 272 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.7638, allocations: 259.8 kB / 1.209 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.7641, allocations: 185.5 kB / 1.209 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.7642, allocations: 0 / 1.209 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007141/0.7649, allocations: 485.5 kB / 1.21 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.446e-05/0.765, allocations: 160.9 kB / 1.21 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.765, allocations: 4 kB / 1.21 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.765, allocations: 4 kB / 1.21 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.7656, allocations: 91.89 kB / 1.21 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003755/0.766, allocations: 0.6016 MB / 1.211 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.7665, allocations: 83.64 kB / 1.211 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.7666, allocations: 20 kB / 1.211 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.136e-06/0.7666, allocations: 4 kB / 1.211 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006005/0.7672, allocations: 395.5 kB / 1.211 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.7672, allocations: 7.938 kB / 1.211 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.102e-06/0.7672, allocations: 4 kB / 1.211 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.7676, allocations: 87.89 kB / 1.211 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.7676, allocations: 4.281 kB / 1.211 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/0.7681, allocations: 75.55 kB / 1.211 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.7681, allocations: 20 kB / 1.211 GB, free: 13.71 MB / 0.9669 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.7684, allocations: 308.9 kB / 1.212 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-05/0.7685, allocations: 55.34 kB / 1.212 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007147/0.7692, allocations: 443.4 kB / 1.212 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.7693, allocations: 0 / 1.212 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.7693, allocations: 4 kB / 1.212 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006036/0.7699, allocations: 0.6572 MB / 1.213 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.7715, allocations: 1.208 MB / 1.214 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.7715, allocations: 4.031 kB / 1.214 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/0.772, allocations: 91.88 kB / 1.214 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.772, allocations: 4 kB / 1.214 GB, free: 10.78 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.772, allocations: 8 kB / 1.214 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002762/0.7723, allocations: 0.5976 MB / 1.215 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.7723, allocations: 4.031 kB / 1.215 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008602/0.7732, allocations: 0.7251 MB / 1.215 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.7734, allocations: 176.4 kB / 1.215 GB, free: 9.191 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.648e-05/0.7735, allocations: 15.94 kB / 1.215 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.7739, allocations: 39.88 kB / 1.216 GB, free: 9.137 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.774, allocations: 23.97 kB / 1.216 GB, free: 9.113 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.774, allocations: 20 kB / 1.216 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003823/0.7744, allocations: 354.8 kB / 1.216 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7744, allocations: 3.938 kB / 1.216 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000883/0.7753, allocations: 343.2 kB / 1.216 GB, free: 8.41 MB / 0.9669 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004192/0.7757, allocations: 198.4 kB / 1.216 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001097/0.7768, allocations: 0.5854 MB / 1.217 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7769, allocations: 0 / 1.217 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.7772, allocations: 189.8 kB / 1.217 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.7789, allocations: 351.2 kB / 1.217 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.7811, allocations: 1.673 MB / 1.219 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.7816, allocations: 0.9417 MB / 1.22 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0006803/0.7823, allocations: 208.9 kB / 1.22 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.7824, allocations: 51.42 kB / 1.22 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of SimCode: time 3.7e-07/0.7824, allocations: 0 / 1.22 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of Templates: time 0.01924/0.8017, allocations: 11.03 MB / 1.231 GB, free: 9.289 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches