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.001023/0.001023, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001274/0.001274, allocations: 168.7 kB / 15.95 MB, free: 204 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.354/1.354, 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 11.0.0-master/package.mo): time 2.742/2.742, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003407, allocations: 10.06 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2784, allocations: 159.6 MB / 1.058 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.1736/0.452, allocations: 169.9 MB / 1.224 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006592/0.4587, allocations: 4.296 MB / 1.228 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005013/0.4592, allocations: 27.81 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007903/0.46, allocations: 282.2 kB / 1.228 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.4622, allocations: 0.9953 MB / 1.229 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.4637, allocations: 0.5741 MB / 1.23 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002347/0.4661, allocations: 2.307 MB / 1.232 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007024/0.4668, allocations: 0.4913 MB / 1.233 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.4685, allocations: 0.8559 MB / 1.234 GB, free: 1.082 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007607/0.4693, allocations: 0.5681 MB / 1.234 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.236e-05/0.4694, allocations: 28 kB / 1.234 GB, free: 496 kB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.4712, allocations: 0.8614 MB / 1.235 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.4715, allocations: 247.2 kB / 1.235 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.4716, allocations: 169.3 kB / 1.235 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.4728, allocations: 1.009 MB / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4728, allocations: 0 / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4728, allocations: 4 kB / 1.236 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.4728, allocations: 0 / 1.236 GB, free: 14.19 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001387/0.4742, allocations: 0.9558 MB / 1.237 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.4742, allocations: 8.031 kB / 1.237 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.4755, allocations: 206.9 kB / 1.238 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008543/0.4763, allocations: 0.5563 MB / 1.238 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.4764, allocations: 41.31 kB / 1.238 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.255e-05/0.4765, allocations: 52 kB / 1.238 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009717/0.4775, allocations: 0.6245 MB / 1.239 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.4775, allocations: 4 kB / 1.239 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-05/0.4775, allocations: 20 kB / 1.239 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.4776, allocations: 17.31 kB / 1.239 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007723/0.4784, allocations: 0.4892 MB / 1.239 GB, free: 11.12 MB / 0.9981 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.002692/0.4811, allocations: 2.404 MB / 1.242 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.4816, allocations: 353.6 kB / 1.242 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000302/0.482, allocations: 216.6 kB / 1.242 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005373/0.4825, allocations: 323.2 kB / 1.242 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.4825, allocations: 42.5 kB / 1.243 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=36): time 1.844e-06/0.4826, allocations: 3.938 kB / 1.243 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36): time 0.00109/0.4836, allocations: 0.5413 MB / 1.243 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.4837, allocations: 59.41 kB / 1.243 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005381/0.4842, allocations: 499 kB / 1.244 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.4843, allocations: 33.7 kB / 1.244 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.4845, allocations: 319.8 kB / 1.244 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.4846, allocations: 126.2 kB / 1.244 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.4847, allocations: 8 kB / 1.244 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4848, allocations: 362.8 kB / 1.244 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.485, allocations: 144.8 kB / 1.245 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.4853, allocations: 267.7 kB / 1.245 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.4856, allocations: 185.5 kB / 1.245 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4856, allocations: 3.953 kB / 1.245 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007052/0.4864, allocations: 485.7 kB / 1.245 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.144e-05/0.4864, allocations: 152.8 kB / 1.246 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4865, allocations: 4 kB / 1.246 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.4865, allocations: 4 kB / 1.246 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005547/0.487, allocations: 103.8 kB / 1.246 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000341/0.4874, allocations: 0.6015 MB / 1.246 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.4879, allocations: 79.73 kB / 1.246 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.488, allocations: 16 kB / 1.246 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-06/0.488, allocations: 4 kB / 1.246 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006118/0.4886, allocations: 403.8 kB / 1.247 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.4886, allocations: 288 / 1.247 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.631e-06/0.4886, allocations: 8 kB / 1.247 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.489, allocations: 91.89 kB / 1.247 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.489, allocations: 7.938 kB / 1.247 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.4895, allocations: 67.55 kB / 1.247 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.4895, allocations: 20 kB / 1.247 GB, free: 2.836 MB / 0.9981 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.0002945/0.4898, allocations: 308.9 kB / 1.247 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-05/0.4899, allocations: 63.27 kB / 1.247 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007127/0.4906, allocations: 456.5 kB / 1.248 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.4906, allocations: 4 kB / 1.248 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4907, allocations: 0 / 1.248 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006115/0.4913, allocations: 0.6518 MB / 1.248 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4925/0.9837, allocations: 1.204 MB / 1.25 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.9838, allocations: 2.047 kB / 1.25 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000624/0.9844, allocations: 89.33 kB / 1.25 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.9845, allocations: 3.375 kB / 1.25 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-05/0.9846, allocations: 12.06 kB / 1.25 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002753/0.9848, allocations: 0.5932 MB / 1.25 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.9849, allocations: 3.25 kB / 1.25 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.9861, allocations: 0.7145 MB / 1.251 GB, free: 191 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003292/0.9864, allocations: 181.1 kB / 1.251 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.9866, allocations: 8.938 kB / 1.251 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005626/0.9871, allocations: 45.7 kB / 1.251 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.9872, allocations: 26.36 kB / 1.251 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.9873, allocations: 16.89 kB / 1.251 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000515/0.9878, allocations: 354.2 kB / 1.252 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9878, allocations: 0 / 1.252 GB, free: 190.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001144/0.9889, allocations: 351.5 kB / 1.252 GB, free: 190.8 MB / 0.9981 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.0004962/0.9894, allocations: 180.4 kB / 1.252 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001302/0.9908, allocations: 0.5823 MB / 1.253 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.9908, allocations: 0.6562 kB / 1.253 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003781/0.9912, allocations: 188.2 kB / 1.253 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.993, allocations: 365 kB / 1.253 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.9953, allocations: 1.678 MB / 1.255 GB, free: 190 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.9957, allocations: 0.9426 MB / 1.256 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007415/0.9964, allocations: 208.5 kB / 1.256 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.9966, allocations: 49.86 kB / 1.256 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of SimCode: time 8.91e-07/0.9966, allocations: 0 / 1.256 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0223/1.019, allocations: 11.04 MB / 1.267 GB, free: 188.5 MB / 0.9981 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