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.001504/0.001504, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001796/0.001796, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.493/1.493, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.745/2.745, allocations: 461.9 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.59 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4021, allocations: 157.4 MB / 1.052 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2082/0.6104, allocations: 184.6 MB / 1.232 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007719/0.6182, allocations: 4.625 MB / 1.237 GB, free: 11 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008447/0.619, allocations: 27.81 kB / 1.237 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.6201, allocations: 350.1 kB / 1.237 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003467/0.6236, allocations: 1.267 MB / 1.238 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.6263, allocations: 0.6763 MB / 1.239 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003863/0.6302, allocations: 2.756 MB / 1.242 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009885/0.6312, allocations: 0.5626 MB / 1.242 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003638/0.6348, allocations: 0.9557 MB / 1.243 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.6362, allocations: 0.6121 MB / 1.244 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.554e-05/0.6363, allocations: 36 kB / 1.244 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003145/0.6394, allocations: 1.551 MB / 1.245 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003552/0.6398, allocations: 263.2 kB / 1.246 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005551/0.6403, allocations: 386.1 kB / 1.246 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002502/0.6429, allocations: 1.511 MB / 1.248 GB, free: 56 kB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.6429, allocations: 0 / 1.248 GB, free: 56 kB / 0.9981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6429, allocations: 0 / 1.248 GB, free: 56 kB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.6429, allocations: 0 / 1.248 GB, free: 56 kB / 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.6701/1.313, allocations: 1.083 MB / 1.249 GB, free: 198 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/1.313, allocations: 9.656 kB / 1.249 GB, free: 198 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/1.315, allocations: 204.9 kB / 1.249 GB, free: 197.9 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/1.316, allocations: 0.581 MB / 1.249 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.806e-05/1.316, allocations: 38.72 kB / 1.249 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/1.316, allocations: 55.27 kB / 1.249 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/1.318, allocations: 0.6171 MB / 1.25 GB, free: 197.6 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/1.318, allocations: 8.312 kB / 1.25 GB, free: 197.6 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.405e-05/1.318, allocations: 22.62 kB / 1.25 GB, free: 197.6 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.235e-05/1.318, allocations: 20 kB / 1.25 GB, free: 197.6 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009104/1.319, allocations: 0.4922 MB / 1.251 GB, free: 197.6 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.003054/1.322, allocations: 2.408 MB / 1.253 GB, free: 196.3 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/1.322, allocations: 356.9 kB / 1.253 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/1.323, allocations: 207.5 kB / 1.253 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005587/1.323, allocations: 309.8 kB / 1.254 GB, free: 196 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.323, allocations: 37.09 kB / 1.254 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=36): time 3.316e-06/1.323, allocations: 3.875 kB / 1.254 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36): time 0.001221/1.324, allocations: 0.5504 MB / 1.254 GB, free: 195.8 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/1.324, allocations: 56.97 kB / 1.254 GB, free: 195.8 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005743/1.325, allocations: 0.4991 MB / 1.255 GB, free: 195.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.013e-05/1.325, allocations: 36.05 kB / 1.255 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/1.325, allocations: 315 kB / 1.255 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/1.325, allocations: 134.2 kB / 1.255 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/1.326, allocations: 87.5 kB / 1.255 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.407e-05/1.326, allocations: 362.5 kB / 1.256 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/1.326, allocations: 153.2 kB / 1.256 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/1.326, allocations: 263.6 kB / 1.256 GB, free: 194.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005321/1.327, allocations: 403.1 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/1.327, allocations: 2.906 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007893/1.328, allocations: 485.5 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/1.328, allocations: 6.172 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/1.328, allocations: 6.781 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/1.328, allocations: 5.438 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/1.328, allocations: 98.03 kB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003155/1.329, allocations: 0.5921 MB / 1.258 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007403/1.329, allocations: 80.62 kB / 1.258 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/1.329, allocations: 18.64 kB / 1.258 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004906/1.33, allocations: 330.8 kB / 1.258 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003134/1.33, allocations: 259 kB / 1.258 GB, free: 194 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005013/1.331, allocations: 409.1 kB / 1.259 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.535e-06/1.331, allocations: 2.406 kB / 1.259 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007032/1.331, allocations: 484 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/1.331, allocations: 9.812 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/1.331, allocations: 10.25 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.781e-06/1.332, allocations: 3.625 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/1.332, allocations: 91 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/1.332, allocations: 4.016 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/1.333, allocations: 67.59 kB / 1.259 GB, free: 193.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/1.333, allocations: 20.3 kB / 1.259 GB, free: 193.8 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 (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.0001757/1.333, allocations: 204.5 kB / 1.26 GB, free: 193.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.11e-05/1.333, allocations: 67.89 kB / 1.26 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007446/1.334, allocations: 442.2 kB / 1.26 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.334, allocations: 2.812 kB / 1.26 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.334, allocations: 1.75 kB / 1.26 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005758/1.334, allocations: 0.6606 MB / 1.261 GB, free: 193 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/1.336, allocations: 1.21 MB / 1.262 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.336, allocations: 0 / 1.262 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/1.337, allocations: 92.16 kB / 1.262 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/1.337, allocations: 7.062 kB / 1.262 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/1.337, allocations: 11.45 kB / 1.262 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002362/1.337, allocations: 0.5941 MB / 1.263 GB, free: 192.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.337, allocations: 1.344 kB / 1.263 GB, free: 192.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009022/1.338, allocations: 0.7059 MB / 1.263 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/1.338, allocations: 178 kB / 1.263 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.162e-05/1.338, allocations: 11.95 kB / 1.263 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/1.339, allocations: 48.36 kB / 1.264 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.858e-05/1.339, allocations: 22.05 kB / 1.264 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/1.339, allocations: 16.05 kB / 1.264 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004868/1.339, allocations: 357.1 kB / 1.264 GB, free: 191.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.51e-07/1.339, allocations: 3.219 kB / 1.264 GB, free: 191.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001183/1.34, allocations: 345 kB / 1.264 GB, free: 191.6 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.0005346/1.341, allocations: 192.9 kB / 1.264 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001465/1.343, allocations: 0.5848 MB / 1.265 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/1.343, allocations: 0.8438 kB / 1.265 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003776/1.343, allocations: 194.3 kB / 1.265 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/1.345, allocations: 365.3 kB / 1.266 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/1.348, allocations: 1.573 MB / 1.267 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/1.349, allocations: 0.9432 MB / 1.268 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009914/1.35, allocations: 207.4 kB / 1.268 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/1.35, allocations: 47.44 kB / 1.268 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.573e-06/1.35, allocations: 5.312 kB / 1.268 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.02749/1.377, allocations: 11.42 MB / 1.279 GB, free: 186.9 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