Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_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_9_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.001479/0.001479, 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.001886/0.001886, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.479/2.479, allocations: 390.2 MB / 0.6643 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 71.88 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7658/0.7672, allocations: 140.4 MB / 0.9491 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2002/0.9674, allocations: 182.6 MB / 1.127 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01097/0.9784, allocations: 6.926 MB / 1.134 GB, free: 3.965 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.9803, allocations: 27.81 kB / 1.134 GB, free: 3.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.9821, allocations: 350.2 kB / 1.135 GB, free: 3.594 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004785/0.987, allocations: 1.358 MB / 1.136 GB, free: 2.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003492/0.9905, allocations: 1.069 MB / 1.137 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003229/0.9938, allocations: 1.944 MB / 1.139 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.995, allocations: 0.6453 MB / 1.139 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.9971, allocations: 0.8329 MB / 1.14 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.9987, allocations: 0.6266 MB / 1.141 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002223/0.9989, allocations: 68 kB / 1.141 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003829/1.003, allocations: 1.999 MB / 1.143 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004639/1.003, allocations: 291.2 kB / 1.143 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0007565/1.004, allocations: 434 kB / 1.144 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003826/1.008, allocations: 1.866 MB / 1.145 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/1.008, allocations: 0 / 1.145 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.164e-06/1.008, allocations: 0 / 1.145 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.846e-05/1.008, allocations: 0 / 1.145 GB, free: 8.441 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002612/1.011, allocations: 1.161 MB / 1.147 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/1.011, allocations: 12.03 kB / 1.147 GB, free: 7.215 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002026/1.013, allocations: 266.8 kB / 1.147 GB, free: 6.953 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/1.014, allocations: 0.5869 MB / 1.147 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/1.014, allocations: 41.31 kB / 1.147 GB, free: 6.285 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-05/1.014, allocations: 52 kB / 1.147 GB, free: 6.234 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/1.015, allocations: 0.6362 MB / 1.148 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/1.015, allocations: 3.938 kB / 1.148 GB, free: 5.578 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.354e-05/1.015, allocations: 24 kB / 1.148 GB, free: 5.555 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.978e-05/1.015, allocations: 17.31 kB / 1.148 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/1.016, allocations: 0.5243 MB / 1.149 GB, free: 5.008 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.003371/1.02, allocations: 2.453 MB / 1.151 GB, free: 2.344 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/1.02, allocations: 357.2 kB / 1.151 GB, free: 1.988 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003818/1.021, allocations: 233.4 kB / 1.152 GB, free: 1.758 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005868/1.021, allocations: 307.6 kB / 1.152 GB, free: 1.402 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/1.021, allocations: 34.89 kB / 1.152 GB, free: 1.359 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 1.943e-06/1.021, allocations: 3.938 kB / 1.152 GB, free: 1.355 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.001476/1.023, allocations: 0.6184 MB / 1.153 GB, free: 0.7305 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/1.023, allocations: 55.41 kB / 1.153 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/1.023, allocations: 0.495 MB / 1.153 GB, free: 164 kB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/1.024, allocations: 37.64 kB / 1.153 GB, free: 120 kB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/1.024, allocations: 328.5 kB / 1.153 GB, free: 15.79 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.024, allocations: 142 kB / 1.154 GB, free: 15.65 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/1.024, allocations: 86.03 kB / 1.154 GB, free: 15.56 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001607/1.024, allocations: 370.7 kB / 1.154 GB, free: 15.19 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/1.025, allocations: 174.5 kB / 1.154 GB, free: 15.02 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/1.025, allocations: 283.4 kB / 1.154 GB, free: 14.7 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007713/1.026, allocations: 452.2 kB / 1.155 GB, free: 14.23 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/1.026, allocations: 4 kB / 1.155 GB, free: 14.22 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009231/1.027, allocations: 0.5162 MB / 1.155 GB, free: 13.7 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/1.027, allocations: 4 kB / 1.155 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/1.027, allocations: 4 kB / 1.155 GB, free: 13.69 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/1.027, allocations: 4 kB / 1.155 GB, free: 13.69 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007385/1.028, allocations: 140 kB / 1.156 GB, free: 13.55 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004086/1.028, allocations: 0.5936 MB / 1.156 GB, free: 12.93 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006488/1.029, allocations: 87.59 kB / 1.156 GB, free: 12.85 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/1.029, allocations: 20.06 kB / 1.156 GB, free: 12.83 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006423/1.029, allocations: 356.9 kB / 1.157 GB, free: 12.48 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004624/1.03, allocations: 279.4 kB / 1.157 GB, free: 12.16 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007023/1.031, allocations: 452.4 kB / 1.157 GB, free: 11.69 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.194e-06/1.031, allocations: 0 / 1.157 GB, free: 11.69 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008993/1.031, allocations: 0.5239 MB / 1.158 GB, free: 11.16 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/1.031, allocations: 8.281 kB / 1.158 GB, free: 11.15 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/1.031, allocations: 11.94 kB / 1.158 GB, free: 11.14 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.725e-06/1.031, allocations: 7.938 kB / 1.158 GB, free: 11.13 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/1.032, allocations: 111.9 kB / 1.158 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/1.032, allocations: 4 kB / 1.158 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/1.033, allocations: 83.56 kB / 1.158 GB, free: 10.94 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/1.033, allocations: 16 kB / 1.158 GB, free: 10.92 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 (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.0002107/1.033, allocations: 204.2 kB / 1.158 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/1.033, allocations: 59.28 kB / 1.158 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008507/1.034, allocations: 491.9 kB / 1.159 GB, free: 10.17 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/1.034, allocations: 4 kB / 1.159 GB, free: 10.16 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.034, allocations: 0 / 1.159 GB, free: 10.16 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007851/1.035, allocations: 0.7107 MB / 1.159 GB, free: 9.367 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/1.037, allocations: 1.293 MB / 1.161 GB, free: 7.996 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/1.037, allocations: 4 kB / 1.161 GB, free: 7.992 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005959/1.037, allocations: 115.9 kB / 1.161 GB, free: 7.879 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/1.037, allocations: 4 kB / 1.161 GB, free: 7.875 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/1.037, allocations: 11.98 kB / 1.161 GB, free: 7.863 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003811/1.038, allocations: 0.5938 MB / 1.161 GB, free: 7.246 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.038, allocations: 7.969 kB / 1.161 GB, free: 7.238 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/1.039, allocations: 0.794 MB / 1.162 GB, free: 6.406 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/1.039, allocations: 176.3 kB / 1.162 GB, free: 6.215 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/1.04, allocations: 15.94 kB / 1.162 GB, free: 6.199 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005042/1.04, allocations: 43.95 kB / 1.162 GB, free: 6.156 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.456e-05/1.04, allocations: 31.89 kB / 1.162 GB, free: 6.125 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/1.04, allocations: 16 kB / 1.162 GB, free: 6.109 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000409/1.041, allocations: 354.8 kB / 1.163 GB, free: 5.766 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/1.041, allocations: 0 / 1.163 GB, free: 5.766 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001012/1.042, allocations: 367 kB / 1.163 GB, free: 5.406 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,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.0005335/1.042, allocations: 212.3 kB / 1.163 GB, free: 5.203 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00168/1.044, allocations: 0.7101 MB / 1.164 GB, free: 4.492 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.044, allocations: 1.125 kB / 1.164 GB, free: 4.492 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000432/1.044, allocations: 227.9 kB / 1.164 GB, free: 4.27 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.046, allocations: 350.6 kB / 1.165 GB, free: 3.93 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/1.049, allocations: 1.653 MB / 1.166 GB, free: 2.23 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007982/1.05, allocations: 0.9574 MB / 1.167 GB, free: 1.246 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0007812/1.051, allocations: 204.9 kB / 1.167 GB, free: 1.043 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/1.051, allocations: 51.42 kB / 1.167 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of SimCode: time 4.51e-07/1.051, allocations: 0 / 1.167 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of Templates: time 0.02388/1.075, allocations: 12.27 MB / 1.179 GB, free: 4.906 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches