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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001185/0.001185, allocations: 102.2 kB / 16.27 MB, free: 6 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.00129/0.00129, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.42/1.42, 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 11.0.1-master/package.mo): time 2.614/2.614, allocations: 469.4 MB / 0.7427 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 62.81 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3199, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.7333/1.053, allocations: 186.8 MB / 1.247 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.008305/1.062, allocations: 4.561 MB / 1.251 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/1.063, allocations: 31.81 kB / 1.251 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001326/1.064, allocations: 413.5 kB / 1.252 GB, free: 9.277 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003619/1.068, allocations: 1.35 MB / 1.253 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002156/1.07, allocations: 0.752 MB / 1.254 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002642/1.073, allocations: 1.957 MB / 1.255 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/1.074, allocations: 0.6561 MB / 1.256 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003115/1.077, allocations: 1.075 MB / 1.257 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001309/1.078, allocations: 0.5783 MB / 1.258 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002252/1.078, allocations: 68 kB / 1.258 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003033/1.081, allocations: 1.384 MB / 1.259 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000413/1.082, allocations: 287.2 kB / 1.259 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0007447/1.083, allocations: 414.1 kB / 1.26 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003094/1.086, allocations: 1.465 MB / 1.261 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.086, allocations: 0 / 1.261 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.853e-06/1.086, allocations: 0 / 1.261 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.935e-05/1.086, allocations: 0 / 1.261 GB, free: 15.3 MB / 0.9825 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.00216/1.088, allocations: 1.101 MB / 1.262 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/1.088, allocations: 8.625 kB / 1.262 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/1.089, allocations: 206.9 kB / 1.263 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/1.091, allocations: 0.5797 MB / 1.263 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/1.091, allocations: 37.31 kB / 1.263 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/1.091, allocations: 56 kB / 1.263 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/1.092, allocations: 0.6128 MB / 1.264 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/1.092, allocations: 3.938 kB / 1.264 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/1.092, allocations: 35.91 kB / 1.264 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.802e-05/1.092, allocations: 21.31 kB / 1.264 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008406/1.093, allocations: 0.4901 MB / 1.264 GB, free: 12.05 MB / 0.9825 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.003667/1.096, allocations: 2.412 MB / 1.267 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007079/1.097, allocations: 357 kB / 1.267 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/1.097, allocations: 212.8 kB / 1.267 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006249/1.098, allocations: 311.2 kB / 1.268 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/1.098, allocations: 34.56 kB / 1.268 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=36): time 2.234e-06/1.098, allocations: 0 / 1.268 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of matching and sorting (n=36): time 0.001208/1.099, allocations: 0.5446 MB / 1.268 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/1.099, allocations: 55.41 kB / 1.268 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006779/1.1, allocations: 0.5028 MB / 1.269 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/1.1, allocations: 37.7 kB / 1.269 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/1.1, allocations: 319.8 kB / 1.269 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/1.101, allocations: 130.1 kB / 1.269 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/1.101, allocations: 82.12 kB / 1.269 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001714/1.101, allocations: 370.7 kB / 1.27 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/1.101, allocations: 158.5 kB / 1.27 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/1.101, allocations: 260.9 kB / 1.27 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005532/1.102, allocations: 406.1 kB / 1.27 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/1.102, allocations: 4 kB / 1.27 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007752/1.103, allocations: 492.8 kB / 1.271 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/1.103, allocations: 11.94 kB / 1.271 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/1.103, allocations: 0 / 1.271 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/1.103, allocations: 4 kB / 1.271 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/1.104, allocations: 103.9 kB / 1.271 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000397/1.104, allocations: 0.5979 MB / 1.271 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005425/1.104, allocations: 47.52 kB / 1.272 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-05/1.105, allocations: 24.06 kB / 1.272 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004565/1.105, allocations: 324.9 kB / 1.272 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003138/1.105, allocations: 259.5 kB / 1.272 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005157/1.106, allocations: 400.3 kB / 1.272 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/1.106, allocations: 0 / 1.272 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007596/1.107, allocations: 496.9 kB / 1.273 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/1.107, allocations: 4 kB / 1.273 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/1.107, allocations: 4 kB / 1.273 GB, free: 2.672 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.274e-06/1.107, allocations: 7.938 kB / 1.273 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/1.107, allocations: 79.91 kB / 1.273 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/1.107, allocations: 4 kB / 1.273 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004931/1.108, allocations: 35.73 kB / 1.273 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/1.108, allocations: 19.94 kB / 1.273 GB, free: 2.527 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.0001561/1.108, allocations: 208.3 kB / 1.273 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/1.108, allocations: 63.27 kB / 1.273 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007024/1.109, allocations: 435.6 kB / 1.274 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/1.109, allocations: 11.92 kB / 1.274 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.109, allocations: 0 / 1.274 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006106/1.109, allocations: 0.6609 MB / 1.274 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/1.111, allocations: 1.218 MB / 1.276 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/1.111, allocations: 0 / 1.276 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004671/1.111, allocations: 88.11 kB / 1.276 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/1.111, allocations: 15.92 kB / 1.276 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.338e-05/1.112, allocations: 12 kB / 1.276 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002893/1.112, allocations: 0.586 MB / 1.276 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.112, allocations: 4 kB / 1.276 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/1.113, allocations: 0.7002 MB / 1.277 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/1.113, allocations: 184.3 kB / 1.277 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.232e-05/1.113, allocations: 11.94 kB / 1.277 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/1.113, allocations: 16 kB / 1.277 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/1.114, allocations: 27.91 kB / 1.277 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.867e-05/1.114, allocations: 20.05 kB / 1.277 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004163/1.114, allocations: 354.8 kB / 1.278 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.114, allocations: 0 / 1.278 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009364/1.115, allocations: 347.2 kB / 1.278 GB, free: 13.33 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 (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.0004778/1.115, allocations: 209.5 kB / 1.278 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001229/1.117, allocations: 0.6254 MB / 1.279 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/1.117, allocations: 0 / 1.279 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003092/1.117, allocations: 189.1 kB / 1.279 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/1.119, allocations: 365.9 kB / 1.279 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/1.121, allocations: 1.385 MB / 1.281 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005372/1.122, allocations: 0.9452 MB / 1.282 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/1.122, allocations: 55.38 kB / 1.282 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/1.122, allocations: 0 / 1.282 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of Templates: time 0.01799/1.14, allocations: 12.61 MB / 1.294 GB, free: 12.98 MB / 1.014 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches