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.0008357/0.0008355, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009924/0.0009924, allocations: 182.2 kB / 16.92 MB, free: 6.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.408/1.408, allocations: 223.3 MB / 241 MB, free: 5.344 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.593/2.593, allocations: 437.8 MB / 0.7128 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.000379, allocations: 8 kB / 0.8735 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7222/0.7226, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2056/0.9283, allocations: 182.1 MB / 1.202 GB, free: 9.039 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008632/0.937, allocations: 4.573 MB / 1.206 GB, free: 4.453 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.9383, allocations: 27.81 kB / 1.206 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.9399, allocations: 346.1 kB / 1.206 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.004304/0.9442, allocations: 1.272 MB / 1.208 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.9466, allocations: 0.666 MB / 1.208 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003765/0.9504, allocations: 2.753 MB / 1.211 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.9517, allocations: 0.5427 MB / 1.211 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003759/0.9554, allocations: 0.938 MB / 1.212 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.9569, allocations: 0.5975 MB / 1.213 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.9571, allocations: 31.94 kB / 1.213 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.9605, allocations: 1.551 MB / 1.215 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004825/0.961, allocations: 247.2 kB / 1.215 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008889/0.9619, allocations: 391.9 kB / 1.215 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002043/0.9639, allocations: 1.068 MB / 1.216 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.9639, allocations: 7.938 kB / 1.216 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.334e-06/0.964, allocations: 0 / 1.216 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.923e-05/0.964, allocations: 0 / 1.216 GB, free: 10.01 MB / 0.9669 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.002005/0.966, allocations: 0.9426 MB / 1.217 GB, free: 9.012 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.9661, allocations: 12.03 kB / 1.217 GB, free: 9 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.9676, allocations: 198.9 kB / 1.217 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.9688, allocations: 0.5832 MB / 1.218 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.9689, allocations: 37.31 kB / 1.218 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.969, allocations: 60 kB / 1.218 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.9702, allocations: 0.6167 MB / 1.219 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.9702, allocations: 3.938 kB / 1.219 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.9703, allocations: 28 kB / 1.219 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.05e-05/0.9704, allocations: 17.31 kB / 1.219 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009155/0.9713, allocations: 0.4892 MB / 1.219 GB, free: 6.914 MB / 0.9669 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.003681/0.975, allocations: 2.396 MB / 1.221 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006733/0.9757, allocations: 359.4 kB / 1.222 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.976, allocations: 211.8 kB / 1.222 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006214/0.9766, allocations: 323.2 kB / 1.222 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.9767, allocations: 38.42 kB / 1.222 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=36): time 2.165e-06/0.9767, allocations: 4 kB / 1.222 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of matching and sorting (n=36): time 0.001247/0.978, allocations: 0.5533 MB / 1.223 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.978, allocations: 55.41 kB / 1.223 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007001/0.9787, allocations: 0.495 MB / 1.223 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.414e-05/0.9788, allocations: 33.7 kB / 1.223 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.9791, allocations: 323.8 kB / 1.224 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.9792, allocations: 126.1 kB / 1.224 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.9793, allocations: 41.7 kB / 1.224 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001818/0.9795, allocations: 362.8 kB / 1.224 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.9797, allocations: 152.8 kB / 1.224 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.9801, allocations: 255.7 kB / 1.225 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005943/0.9807, allocations: 418 kB / 1.225 GB, free: 432 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.9807, allocations: 4 kB / 1.225 GB, free: 428 kB / 0.9669 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008352/0.9815, allocations: 481.3 kB / 1.226 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.9817, allocations: 153 kB / 1.226 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.9817, allocations: 4.062 kB / 1.226 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.9817, allocations: 7.938 kB / 1.226 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.9823, allocations: 107.8 kB / 1.226 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004342/0.9828, allocations: 0.5899 MB / 1.226 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007013/0.9835, allocations: 79.61 kB / 1.226 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.9835, allocations: 20 kB / 1.226 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.348e-06/0.9835, allocations: 7.938 kB / 1.226 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006557/0.9842, allocations: 403.9 kB / 1.227 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.9842, allocations: 0 / 1.227 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.9842, allocations: 4 kB / 1.227 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.9846, allocations: 99.77 kB / 1.227 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.9846, allocations: 4 kB / 1.227 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/0.9852, allocations: 71.83 kB / 1.227 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.9853, allocations: 16 kB / 1.227 GB, free: 14.33 MB / 0.9825 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.0003927/0.9857, allocations: 306.5 kB / 1.227 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.9858, allocations: 55.34 kB / 1.227 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008178/0.9866, allocations: 455.5 kB / 1.228 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.9866, allocations: 4 kB / 1.228 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.9866, allocations: 0 / 1.228 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006649/0.9873, allocations: 0.6558 MB / 1.228 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.9893, allocations: 1.214 MB / 1.23 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.9893, allocations: 4 kB / 1.23 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.9898, allocations: 88.11 kB / 1.23 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.9898, allocations: 4 kB / 1.23 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.9898, allocations: 12 kB / 1.23 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003692/0.9902, allocations: 0.5938 MB / 1.23 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.9902, allocations: 0 / 1.23 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009902/0.9912, allocations: 0.7084 MB / 1.231 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.9915, allocations: 184.3 kB / 1.231 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.9916, allocations: 12 kB / 1.231 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004937/0.9921, allocations: 43.84 kB / 1.231 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.9922, allocations: 27.97 kB / 1.231 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.9922, allocations: 15.98 kB / 1.231 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004674/0.9927, allocations: 354.8 kB / 1.232 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9927, allocations: 0 / 1.232 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001025/0.9937, allocations: 351.1 kB / 1.232 GB, free: 9.027 MB / 0.9825 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.0005112/0.9943, allocations: 200.3 kB / 1.232 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001279/0.9956, allocations: 0.5819 MB / 1.233 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.9956, allocations: 0 / 1.233 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.9959, allocations: 183.8 kB / 1.233 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.998, allocations: 375 kB / 1.233 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/1.001, allocations: 1.709 MB / 1.235 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007016/1.002, allocations: 0.9417 MB / 1.236 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/1.002, allocations: 47.44 kB / 1.236 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of SimCode: time 1.082e-06/1.002, allocations: 7.938 kB / 1.236 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of Templates: time 0.02107/1.023, allocations: 12.58 MB / 1.248 GB, free: 8.414 MB / 0.9981 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches