Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001048/0.001048, allocations: 92.16 kB / 16.02 MB, free: 80 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.001439/0.001439, allocations: 173 kB / 16.92 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.76/2.76, allocations: 437.8 MB / 0.7128 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003617, allocations: 12 kB / 0.8735 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7395/0.7399, allocations: 153.8 MB / 1.024 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2074/0.9473, allocations: 180.4 MB / 1.2 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01102/0.9584, allocations: 6.962 MB / 1.207 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.9597, allocations: 27.81 kB / 1.207 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.9611, allocations: 334.2 kB / 1.207 GB, free: 3.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.004218/0.9654, allocations: 1.37 MB / 1.208 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003356/0.9687, allocations: 1.049 MB / 1.209 GB, free: 1.094 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003429/0.9722, allocations: 2.719 MB / 1.212 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.9733, allocations: 0.5434 MB / 1.213 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.9751, allocations: 0.7079 MB / 1.213 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.9767, allocations: 0.5985 MB / 1.214 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.9769, allocations: 32 kB / 1.214 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004375/0.9813, allocations: 2.186 MB / 1.216 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004358/0.9818, allocations: 251.2 kB / 1.216 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008593/0.9826, allocations: 403.8 kB / 1.217 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002353/0.985, allocations: 1.267 MB / 1.218 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.985, allocations: 0 / 1.218 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.973e-06/0.985, allocations: 0 / 1.218 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.612e-05/0.9851, allocations: 0 / 1.218 GB, free: 8.367 MB / 0.9669 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.002552/0.9876, allocations: 1.013 MB / 1.219 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.9877, allocations: 8.031 kB / 1.219 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/0.9899, allocations: 274.8 kB / 1.219 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.9912, allocations: 0.5792 MB / 1.22 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.9913, allocations: 45.25 kB / 1.22 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.9914, allocations: 55.94 kB / 1.22 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.9928, allocations: 0.6401 MB / 1.22 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.9928, allocations: 4 kB / 1.22 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/0.993, allocations: 24 kB / 1.22 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.993, allocations: 17.31 kB / 1.22 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.9941, allocations: 0.536 MB / 1.221 GB, free: 5.066 MB / 0.9669 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.004177/0.9983, allocations: 2.453 MB / 1.223 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.9992, allocations: 367.5 kB / 1.224 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004448/0.9996, allocations: 245.4 kB / 1.224 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007325/1, allocations: 323.6 kB / 1.224 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/1, allocations: 38.88 kB / 1.224 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=39): time 2.935e-06/1, allocations: 0 / 1.224 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39): time 0.001634/1.002, allocations: 0.6233 MB / 1.225 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/1.002, allocations: 55.41 kB / 1.225 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000709/1.003, allocations: 0.5027 MB / 1.225 GB, free: 168 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/1.003, allocations: 33.7 kB / 1.225 GB, free: 128 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/1.003, allocations: 336.3 kB / 1.226 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/1.003, allocations: 134.1 kB / 1.226 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/1.003, allocations: 41.7 kB / 1.226 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001673/1.004, allocations: 366.8 kB / 1.226 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004137/1.004, allocations: 168.8 kB / 1.226 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004408/1.004, allocations: 287.4 kB / 1.227 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008678/1.005, allocations: 472.2 kB / 1.227 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/1.005, allocations: 0 / 1.227 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001029/1.006, allocations: 0.5433 MB / 1.228 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/1.007, allocations: 157.8 kB / 1.228 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/1.007, allocations: 0 / 1.228 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/1.007, allocations: 11.94 kB / 1.228 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000769/1.007, allocations: 139.8 kB / 1.228 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004853/1.008, allocations: 0.5938 MB / 1.229 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/1.009, allocations: 91.59 kB / 1.229 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/1.009, allocations: 16 kB / 1.229 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/1.009, allocations: 4 kB / 1.229 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008985/1.01, allocations: 471.9 kB / 1.229 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.01, allocations: 4 kB / 1.229 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/1.01, allocations: 4 kB / 1.229 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/1.01, allocations: 132 kB / 1.229 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/1.01, allocations: 7.938 kB / 1.229 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006913/1.011, allocations: 83.53 kB / 1.229 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/1.011, allocations: 20 kB / 1.229 GB, free: 11.95 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.0005312/1.011, allocations: 304.9 kB / 1.23 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/1.012, allocations: 59.34 kB / 1.23 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/1.013, allocations: 0.4986 MB / 1.23 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/1.013, allocations: 4 kB / 1.23 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.013, allocations: 0 / 1.23 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009411/1.014, allocations: 0.7105 MB / 1.231 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/1.016, allocations: 1.296 MB / 1.232 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.016, allocations: 0 / 1.232 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006374/1.017, allocations: 136 kB / 1.232 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/1.017, allocations: 4 kB / 1.232 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/1.017, allocations: 12 kB / 1.232 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000469/1.017, allocations: 0.5978 MB / 1.233 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.017, allocations: 3.938 kB / 1.233 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/1.018, allocations: 0.8176 MB / 1.234 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/1.019, allocations: 188.4 kB / 1.234 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/1.019, allocations: 8 kB / 1.234 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005558/1.02, allocations: 61.05 kB / 1.234 GB, free: 7 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/1.02, allocations: 27.97 kB / 1.234 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/1.02, allocations: 15.94 kB / 1.234 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004377/1.02, allocations: 354.8 kB / 1.234 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/1.02, allocations: 0 / 1.234 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001122/1.021, allocations: 355.2 kB / 1.235 GB, free: 6.266 MB / 0.9825 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.0005238/1.022, allocations: 207.4 kB / 1.235 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001644/1.023, allocations: 0.6791 MB / 1.236 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/1.023, allocations: 1 kB / 1.236 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004635/1.024, allocations: 231.8 kB / 1.236 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/1.026, allocations: 362.6 kB / 1.236 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/1.029, allocations: 1.777 MB / 1.238 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000648/1.029, allocations: 0.9535 MB / 1.239 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.03, allocations: 55.44 kB / 1.239 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of SimCode: time 8.82e-07/1.03, allocations: 3.938 kB / 1.239 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of Templates: time 0.02171/1.051, allocations: 12.92 MB / 1.251 GB, free: 5.109 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches