Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009879/0.0009879, allocations: 92.23 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.00131/0.00131, allocations: 183.9 kB / 16.92 MB, free: 6.926 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.404/1.404, 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 11.0.0-master/package.mo): time 2.673/2.673, allocations: 443.2 MB / 0.7181 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 10.88 kB / 0.8801 GB, free: 42.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3276, allocations: 155.1 MB / 1.032 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2077/0.5353, allocations: 180.4 MB / 1.208 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01137/0.5467, allocations: 6.97 MB / 1.215 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.548, allocations: 23.81 kB / 1.215 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.5494, allocations: 338.2 kB / 1.215 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004236/0.5536, allocations: 1.369 MB / 1.216 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003385/0.557, allocations: 1.057 MB / 1.217 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003853/0.5609, allocations: 2.709 MB / 1.22 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.5622, allocations: 0.5473 MB / 1.22 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.5643, allocations: 0.7041 MB / 1.221 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001795/0.5661, allocations: 0.5953 MB / 1.222 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.5663, allocations: 32 kB / 1.222 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004687/0.571, allocations: 2.186 MB / 1.224 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004875/0.5715, allocations: 255 kB / 1.224 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0008414/0.5723, allocations: 407.8 kB / 1.225 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.5747, allocations: 1.255 MB / 1.226 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.5747, allocations: 0 / 1.226 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.545e-06/0.5747, allocations: 0 / 1.226 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.165e-05/0.5748, allocations: 0 / 1.226 GB, free: 13.23 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.00239/0.5772, allocations: 1.022 MB / 1.227 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.5772, allocations: 8.031 kB / 1.227 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.5793, allocations: 270.8 kB / 1.227 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.5805, allocations: 0.5792 MB / 1.228 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.711e-05/0.5806, allocations: 37.31 kB / 1.228 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.5807, allocations: 63.98 kB / 1.228 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.582, allocations: 0.6401 MB / 1.228 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.582, allocations: 7.875 kB / 1.228 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-05/0.5821, allocations: 24 kB / 1.228 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.5821, allocations: 17.31 kB / 1.228 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.5832, allocations: 0.5282 MB / 1.229 GB, free: 9.93 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.003691/0.5869, allocations: 2.461 MB / 1.231 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007145/0.5876, allocations: 368.7 kB / 1.232 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.5881, allocations: 241.4 kB / 1.232 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006203/0.5887, allocations: 319.6 kB / 1.232 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.5887, allocations: 38.89 kB / 1.232 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=39): time 2.244e-06/0.5888, allocations: 4 kB / 1.232 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39): time 0.001514/0.5903, allocations: 0.6311 MB / 1.233 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.5903, allocations: 55.41 kB / 1.233 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006338/0.591, allocations: 0.5027 MB / 1.233 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.591, allocations: 29.7 kB / 1.233 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.5913, allocations: 328.4 kB / 1.234 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.5914, allocations: 138 kB / 1.234 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.857e-05/0.5915, allocations: 37.7 kB / 1.234 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5917, allocations: 370.8 kB / 1.234 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.5921, allocations: 172.8 kB / 1.234 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.5925, allocations: 299.3 kB / 1.235 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007917/0.5933, allocations: 460.2 kB / 1.235 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.5933, allocations: 8 kB / 1.235 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001048/0.5944, allocations: 0.528 MB / 1.236 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.5945, allocations: 164.8 kB / 1.236 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.5945, allocations: 0 / 1.236 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.5946, allocations: 11.88 kB / 1.236 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007733/0.5953, allocations: 155.8 kB / 1.236 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004536/0.5958, allocations: 0.586 MB / 1.237 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/0.5965, allocations: 79.64 kB / 1.237 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.35e-05/0.5966, allocations: 23.98 kB / 1.237 GB, free: 1.516 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.5966, allocations: 5.094 kB / 1.237 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008676/0.5975, allocations: 463.9 kB / 1.237 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.5975, allocations: 4.281 kB / 1.237 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.405e-06/0.5975, allocations: 8 kB / 1.237 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.5981, allocations: 131.7 kB / 1.237 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5981, allocations: 4 kB / 1.237 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.5988, allocations: 83.48 kB / 1.237 GB, free: 0.832 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.5989, allocations: 27.98 kB / 1.237 GB, free: 0.8047 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 (53): * Single equations (assignments): 52 * 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.0004532/0.5993, allocations: 303.9 kB / 1.238 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.5995, allocations: 55.34 kB / 1.238 GB, free: 456 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.6006, allocations: 0.4911 MB / 1.238 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.6006, allocations: 8 kB / 1.238 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.6006, allocations: 0 / 1.238 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009693/0.6016, allocations: 0.7144 MB / 1.239 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.6042, allocations: 1.3 MB / 1.24 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.6042, allocations: 0 / 1.24 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.6049, allocations: 124.1 kB / 1.24 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.411e-05/0.605, allocations: 11.98 kB / 1.24 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.605, allocations: 12 kB / 1.24 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004421/0.6055, allocations: 0.5898 MB / 1.241 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.6055, allocations: 4.031 kB / 1.241 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.6069, allocations: 0.8221 MB / 1.242 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.6073, allocations: 180.4 kB / 1.242 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.6074, allocations: 11.98 kB / 1.242 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/0.6081, allocations: 55.81 kB / 1.242 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.6082, allocations: 35.89 kB / 1.242 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.6082, allocations: 8 kB / 1.242 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005466/0.6088, allocations: 366.8 kB / 1.242 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.445e-06/0.6088, allocations: 0 / 1.242 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001247/0.61, allocations: 359.1 kB / 1.243 GB, free: 11.12 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,senDenFlo.d) * 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 (39): * Single equations (assignments): 38 * 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.000595/0.6107, allocations: 201.6 kB / 1.243 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001632/0.6123, allocations: 0.6875 MB / 1.244 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6123, allocations: 0 / 1.244 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004669/0.6128, allocations: 224.6 kB / 1.244 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.6148, allocations: 366.3 kB / 1.244 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.6177, allocations: 1.774 MB / 1.246 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006591/0.6184, allocations: 0.9534 MB / 1.247 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.6186, allocations: 59.42 kB / 1.247 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/0.6186, allocations: 0 / 1.247 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of Templates: time 0.5883/1.207, allocations: 12.9 MB / 1.259 GB, free: 216.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches