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.001863/0.001862, allocations: 105.7 kB / 16.27 MB, free: 6.418 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.002112/0.002113, allocations: 189.6 kB / 17.2 MB, free: 5.949 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.428/1.428, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.189/2.189, allocations: 390.3 MB / 0.6653 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 66.05 kB / 0.8132 GB, free: 33.12 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2702, allocations: 140.4 MB / 0.9503 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.7775/1.048, allocations: 186.8 MB / 1.133 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00931/1.057, allocations: 4.568 MB / 1.137 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/1.059, allocations: 32.53 kB / 1.137 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001369/1.06, allocations: 415.5 kB / 1.138 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004997/1.066, allocations: 1.336 MB / 1.139 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002704/1.068, allocations: 0.7514 MB / 1.14 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003545/1.072, allocations: 1.963 MB / 1.142 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/1.073, allocations: 0.6495 MB / 1.142 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003637/1.077, allocations: 1.069 MB / 1.143 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/1.078, allocations: 0.5905 MB / 1.144 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001546/1.078, allocations: 70.17 kB / 1.144 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003654/1.082, allocations: 1.376 MB / 1.145 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004413/1.082, allocations: 289.6 kB / 1.145 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006781/1.083, allocations: 414.7 kB / 1.146 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003373/1.086, allocations: 1.462 MB / 1.147 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/1.086, allocations: 0 / 1.147 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.192e-06/1.086, allocations: 0 / 1.147 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.216e-05/1.086, allocations: 0 / 1.147 GB, free: 4.07 MB / 0.8575 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.002082/1.088, allocations: 1.094 MB / 1.148 GB, free: 19.4 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/1.088, allocations: 9.812 kB / 1.148 GB, free: 19.4 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/1.09, allocations: 204.8 kB / 1.149 GB, free: 19.36 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009457/1.091, allocations: 0.5783 MB / 1.149 GB, free: 19.06 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.404e-05/1.091, allocations: 42.73 kB / 1.149 GB, free: 19.06 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/1.091, allocations: 58.19 kB / 1.149 GB, free: 19.06 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/1.092, allocations: 0.6239 MB / 1.15 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/1.092, allocations: 5.031 kB / 1.15 GB, free: 18.98 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.585e-05/1.092, allocations: 22.12 kB / 1.15 GB, free: 18.97 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/1.092, allocations: 22.81 kB / 1.15 GB, free: 18.96 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/1.093, allocations: 0.4943 MB / 1.15 GB, free: 18.81 MB / 0.8731 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.002965/1.096, allocations: 2.403 MB / 1.153 GB, free: 17.09 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/1.096, allocations: 360.2 kB / 1.153 GB, free: 16.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/1.097, allocations: 221.3 kB / 1.153 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005912/1.097, allocations: 308.5 kB / 1.154 GB, free: 16.57 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/1.097, allocations: 49.05 kB / 1.154 GB, free: 16.51 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=36): time 2.375e-06/1.097, allocations: 0 / 1.154 GB, free: 16.51 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36): time 0.001187/1.099, allocations: 0.5403 MB / 1.154 GB, free: 16.3 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/1.099, allocations: 54.91 kB / 1.154 GB, free: 16.24 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005922/1.099, allocations: 0.4974 MB / 1.155 GB, free: 16.01 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/1.099, allocations: 41.45 kB / 1.155 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/1.1, allocations: 316 kB / 1.155 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/1.1, allocations: 128.6 kB / 1.155 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/1.1, allocations: 86.66 kB / 1.155 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000166/1.1, allocations: 364.3 kB / 1.156 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/1.1, allocations: 158.8 kB / 1.156 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/1.101, allocations: 255.1 kB / 1.156 GB, free: 15 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/1.101, allocations: 411.5 kB / 1.156 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/1.101, allocations: 0 / 1.156 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007743/1.102, allocations: 485.8 kB / 1.157 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/1.102, allocations: 11.16 kB / 1.157 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.102, allocations: 4.938 kB / 1.157 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/1.102, allocations: 4.344 kB / 1.157 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005924/1.103, allocations: 102 kB / 1.157 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004146/1.103, allocations: 0.6046 MB / 1.158 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/1.104, allocations: 40.28 kB / 1.158 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/1.104, allocations: 19.61 kB / 1.158 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004958/1.104, allocations: 330.3 kB / 1.158 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003062/1.104, allocations: 257.2 kB / 1.158 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005071/1.105, allocations: 407.7 kB / 1.159 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.815e-06/1.105, allocations: 1.125 kB / 1.159 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007576/1.106, allocations: 491.1 kB / 1.159 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/1.106, allocations: 5.438 kB / 1.159 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/1.106, allocations: 3.156 kB / 1.159 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/1.106, allocations: 8.219 kB / 1.159 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/1.106, allocations: 85.73 kB / 1.159 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/1.106, allocations: 6.547 kB / 1.159 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/1.107, allocations: 29.19 kB / 1.159 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/1.107, allocations: 19.16 kB / 1.159 GB, free: 13.1 MB / 0.8731 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.0002194/1.107, allocations: 218.2 kB / 1.159 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/1.107, allocations: 63.03 kB / 1.159 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007603/1.108, allocations: 439.3 kB / 1.16 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/1.108, allocations: 4.594 kB / 1.16 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/1.108, allocations: 3.938 kB / 1.16 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006997/1.109, allocations: 0.6605 MB / 1.16 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/1.111, allocations: 1.201 MB / 1.162 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.111, allocations: 1.312 kB / 1.162 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005075/1.111, allocations: 94.06 kB / 1.162 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/1.111, allocations: 7 kB / 1.162 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/1.111, allocations: 15.64 kB / 1.162 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003384/1.112, allocations: 0.5942 MB / 1.162 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.112, allocations: 1.406 kB / 1.162 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009797/1.113, allocations: 0.7022 MB / 1.163 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/1.113, allocations: 176.1 kB / 1.163 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/1.113, allocations: 16.31 kB / 1.163 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/1.113, allocations: 20.58 kB / 1.163 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/1.114, allocations: 26.7 kB / 1.163 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/1.114, allocations: 12.36 kB / 1.163 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004582/1.114, allocations: 365.2 kB / 1.164 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/1.114, allocations: 0 / 1.164 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001076/1.115, allocations: 344.3 kB / 1.164 GB, free: 10 MB / 0.8731 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.0004825/1.116, allocations: 192.1 kB / 1.164 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001318/1.117, allocations: 0.6346 MB / 1.165 GB, free: 9.672 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/1.117, allocations: 0 / 1.165 GB, free: 9.672 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003435/1.117, allocations: 190.1 kB / 1.165 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/1.119, allocations: 366.4 kB / 1.165 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/1.121, allocations: 1.397 MB / 1.167 GB, free: 8.648 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/1.122, allocations: 0.942 MB / 1.168 GB, free: 7.918 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/1.122, allocations: 55.61 kB / 1.168 GB, free: 7.906 MB / 0.8731 GB Notification: Performance of SimCode: time 5.01e-07/1.122, allocations: 0 / 1.168 GB, free: 7.906 MB / 0.8731 GB Notification: Performance of Templates: time 0.01967/1.142, allocations: 12.62 MB / 1.18 GB, free: 3.121 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches