Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001473/0.001473, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001975/0.001975, allocations: 193 kB / 16.25 MB, free: 6.629 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.438/1.438, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.2 MB / 0.6644 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7698/0.7713, allocations: 140.3 MB / 0.9491 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2157/0.9871, allocations: 184.4 MB / 1.129 GB, free: 9.066 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00863/0.9958, allocations: 4.549 MB / 1.134 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.9973, allocations: 27.81 kB / 1.134 GB, free: 4.477 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.9989, allocations: 358.1 kB / 1.134 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003821/1.003, allocations: 1.268 MB / 1.135 GB, free: 2.852 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002317/1.005, allocations: 0.6843 MB / 1.136 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002873/1.008, allocations: 1.958 MB / 1.138 GB, free: 212 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/1.009, allocations: 0.632 MB / 1.138 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004099/1.013, allocations: 1.079 MB / 1.139 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/1.015, allocations: 0.6165 MB / 1.14 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002705/1.015, allocations: 68 kB / 1.14 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/1.018, allocations: 1.43 MB / 1.141 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005698/1.019, allocations: 295.2 kB / 1.142 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0009887/1.02, allocations: 418.1 kB / 1.142 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003171/1.023, allocations: 1.535 MB / 1.144 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/1.023, allocations: 0 / 1.144 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.653e-06/1.023, allocations: 0 / 1.144 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.12e-05/1.023, allocations: 0 / 1.144 GB, free: 10.14 MB / 0.9044 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.002545/1.026, allocations: 1.102 MB / 1.145 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/1.026, allocations: 8.031 kB / 1.145 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/1.027, allocations: 206.9 kB / 1.145 GB, free: 8.77 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/1.028, allocations: 0.5793 MB / 1.146 GB, free: 8.148 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/1.029, allocations: 37.31 kB / 1.146 GB, free: 8.113 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/1.029, allocations: 59.91 kB / 1.146 GB, free: 8.055 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/1.03, allocations: 0.6167 MB / 1.146 GB, free: 7.422 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/1.03, allocations: 3.938 kB / 1.146 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/1.03, allocations: 24 kB / 1.146 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/1.03, allocations: 25.3 kB / 1.146 GB, free: 7.367 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/1.031, allocations: 0.4892 MB / 1.147 GB, free: 6.875 MB / 0.9044 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.003671/1.035, allocations: 2.396 MB / 1.149 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006877/1.035, allocations: 364.6 kB / 1.149 GB, free: 3.91 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/1.036, allocations: 212.8 kB / 1.15 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005923/1.036, allocations: 303.2 kB / 1.15 GB, free: 3.348 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/1.036, allocations: 42.55 kB / 1.15 GB, free: 3.297 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=36): time 2.915e-06/1.036, allocations: 0 / 1.15 GB, free: 3.297 MB / 0.9044 GB Notification: Performance of matching and sorting (n=36): time 0.001317/1.038, allocations: 0.5369 MB / 1.15 GB, free: 2.754 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/1.038, allocations: 67.25 kB / 1.151 GB, free: 2.676 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005694/1.038, allocations: 0.4989 MB / 1.151 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/1.038, allocations: 33.7 kB / 1.151 GB, free: 2.129 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/1.039, allocations: 319.8 kB / 1.151 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/1.039, allocations: 126.2 kB / 1.152 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/1.039, allocations: 82.05 kB / 1.152 GB, free: 1.602 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001529/1.039, allocations: 366.8 kB / 1.152 GB, free: 1.234 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/1.039, allocations: 154.5 kB / 1.152 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00044/1.04, allocations: 255.8 kB / 1.152 GB, free: 0.793 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006011/1.04, allocations: 410.2 kB / 1.153 GB, free: 372 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/1.04, allocations: 0 / 1.153 GB, free: 372 kB / 0.9044 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007985/1.041, allocations: 488.9 kB / 1.153 GB, free: 15.88 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/1.041, allocations: 4 kB / 1.153 GB, free: 15.87 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/1.041, allocations: 4 kB / 1.153 GB, free: 15.87 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/1.041, allocations: 4 kB / 1.153 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006381/1.042, allocations: 104.2 kB / 1.153 GB, free: 15.76 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004666/1.042, allocations: 0.6054 MB / 1.154 GB, free: 15.13 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006757/1.043, allocations: 79.64 kB / 1.154 GB, free: 15.05 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/1.043, allocations: 16 kB / 1.154 GB, free: 15.04 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005334/1.044, allocations: 328.9 kB / 1.154 GB, free: 14.71 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003715/1.044, allocations: 255.4 kB / 1.155 GB, free: 14.43 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005497/1.045, allocations: 412.5 kB / 1.155 GB, free: 13.99 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.416e-06/1.045, allocations: 4 kB / 1.155 GB, free: 13.99 MB / 0.92 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0006883/1.045, allocations: 484.5 kB / 1.155 GB, free: 13.51 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/1.045, allocations: 4 kB / 1.155 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/1.045, allocations: 7.938 kB / 1.155 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/1.045, allocations: 4 kB / 1.155 GB, free: 13.49 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/1.046, allocations: 87.89 kB / 1.155 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/1.046, allocations: 7.938 kB / 1.155 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/1.046, allocations: 71.92 kB / 1.156 GB, free: 13.33 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/1.046, allocations: 16 kB / 1.156 GB, free: 13.31 MB / 0.92 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.0001767/1.046, allocations: 204.2 kB / 1.156 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-05/1.047, allocations: 59.28 kB / 1.156 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007641/1.047, allocations: 449.2 kB / 1.156 GB, free: 12.59 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.047, allocations: 4 kB / 1.156 GB, free: 12.59 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/1.047, allocations: 0 / 1.156 GB, free: 12.59 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006404/1.048, allocations: 0.6599 MB / 1.157 GB, free: 11.84 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/1.05, allocations: 1.204 MB / 1.158 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.05, allocations: 0 / 1.158 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/1.05, allocations: 96.11 kB / 1.158 GB, free: 10.47 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/1.05, allocations: 4 kB / 1.158 GB, free: 10.47 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/1.05, allocations: 11.98 kB / 1.158 GB, free: 10.46 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003276/1.051, allocations: 0.5899 MB / 1.159 GB, free: 9.844 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/1.051, allocations: 7.969 kB / 1.159 GB, free: 9.836 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008635/1.052, allocations: 0.6973 MB / 1.159 GB, free: 9.102 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/1.052, allocations: 176.3 kB / 1.16 GB, free: 8.91 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.98e-05/1.052, allocations: 19.92 kB / 1.16 GB, free: 8.891 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/1.052, allocations: 40.53 kB / 1.16 GB, free: 8.852 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/1.052, allocations: 35.91 kB / 1.16 GB, free: 8.816 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/1.052, allocations: 12 kB / 1.16 GB, free: 8.805 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003939/1.053, allocations: 362.8 kB / 1.16 GB, free: 8.453 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.8e-07/1.053, allocations: 0 / 1.16 GB, free: 8.453 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000904/1.054, allocations: 347.1 kB / 1.16 GB, free: 8.113 MB / 0.92 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.0004754/1.054, allocations: 197.6 kB / 1.161 GB, free: 7.914 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001245/1.055, allocations: 0.6375 MB / 1.161 GB, free: 7.277 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.055, allocations: 0 / 1.161 GB, free: 7.277 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003114/1.056, allocations: 188 kB / 1.161 GB, free: 7.094 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/1.057, allocations: 355.3 kB / 1.162 GB, free: 6.762 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/1.06, allocations: 1.587 MB / 1.163 GB, free: 5.125 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/1.06, allocations: 0.9492 MB / 1.164 GB, free: 4.148 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0006765/1.061, allocations: 208.9 kB / 1.164 GB, free: 3.941 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/1.061, allocations: 47.44 kB / 1.164 GB, free: 3.895 MB / 0.92 GB Notification: Performance of SimCode: time 4.4e-07/1.061, allocations: 0 / 1.164 GB, free: 3.895 MB / 0.92 GB Notification: Performance of Templates: time 0.02058/1.082, allocations: 11.74 MB / 1.176 GB, free: 8.34 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches