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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001574/0.001574, allocations: 108 kB / 15.6 MB, free: 132 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.001451/0.001451, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.435/1.435, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.886/2.886, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 64.14 kB / 0.8692 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6905/0.6926, allocations: 151.6 MB / 1.017 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2401/0.9327, allocations: 185 MB / 1.198 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01179/0.9445, allocations: 6.981 MB / 1.205 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.9458, allocations: 31.81 kB / 1.205 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.9471, allocations: 401.5 kB / 1.205 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003888/0.9511, allocations: 1.447 MB / 1.207 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003117/0.9542, allocations: 1.15 MB / 1.208 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00265/0.9569, allocations: 1.941 MB / 1.21 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.958, allocations: 0.6648 MB / 1.21 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.9597, allocations: 0.8172 MB / 1.211 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.9611, allocations: 0.5992 MB / 1.212 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.9612, allocations: 68 kB / 1.212 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004202/0.9654, allocations: 1.933 MB / 1.214 GB, free: 8.781 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003945/0.9658, allocations: 291.2 kB / 1.214 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005678/0.9664, allocations: 426.1 kB / 1.214 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003335/0.9698, allocations: 1.745 MB / 1.216 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.9698, allocations: 0 / 1.216 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.452e-06/0.9698, allocations: 4 kB / 1.216 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.9698, allocations: 0 / 1.216 GB, free: 6.324 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.002161/0.972, allocations: 1.154 MB / 1.217 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.972, allocations: 8.031 kB / 1.217 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.974, allocations: 274.8 kB / 1.217 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.975, allocations: 0.5792 MB / 1.218 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.279e-05/0.9751, allocations: 49.25 kB / 1.218 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.9752, allocations: 52 kB / 1.218 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.9764, allocations: 0.6284 MB / 1.219 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.9764, allocations: 3.938 kB / 1.219 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.9765, allocations: 28 kB / 1.219 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/0.9765, allocations: 17.31 kB / 1.219 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.9775, allocations: 0.5243 MB / 1.219 GB, free: 2.906 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.003441/0.981, allocations: 2.472 MB / 1.222 GB, free: 220 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007104/0.9817, allocations: 359.5 kB / 1.222 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004154/0.9821, allocations: 238.8 kB / 1.222 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006561/0.9828, allocations: 315.5 kB / 1.223 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.9829, allocations: 38.89 kB / 1.223 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=39): time 2.515e-06/0.9829, allocations: 0 / 1.223 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39): time 0.00146/0.9843, allocations: 0.6116 MB / 1.223 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.9844, allocations: 55.41 kB / 1.223 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.985, allocations: 0.495 MB / 1.224 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.9851, allocations: 33.64 kB / 1.224 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.9853, allocations: 332.4 kB / 1.224 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.9855, allocations: 130.1 kB / 1.224 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.9856, allocations: 94.03 kB / 1.224 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001985/0.9858, allocations: 374.7 kB / 1.225 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.9862, allocations: 174.5 kB / 1.225 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.9867, allocations: 279.4 kB / 1.225 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007947/0.9875, allocations: 456.2 kB / 1.226 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.9875, allocations: 0 / 1.226 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009856/0.9885, allocations: 0.5239 MB / 1.226 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.9885, allocations: 9.406 kB / 1.226 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.9885, allocations: 0 / 1.226 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.9886, allocations: 4 kB / 1.226 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/0.9893, allocations: 132.1 kB / 1.226 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005028/0.9898, allocations: 0.6054 MB / 1.227 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005547/0.9904, allocations: 51.52 kB / 1.227 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.9904, allocations: 16 kB / 1.227 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005884/0.991, allocations: 356.8 kB / 1.227 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004402/0.9915, allocations: 279.5 kB / 1.227 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007667/0.9923, allocations: 460.3 kB / 1.228 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.9923, allocations: 0 / 1.228 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009469/0.9932, allocations: 0.5162 MB / 1.228 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.9932, allocations: 4.281 kB / 1.228 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.9933, allocations: 11.98 kB / 1.228 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.317e-06/0.9933, allocations: 11.88 kB / 1.228 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005162/0.9938, allocations: 119.8 kB / 1.229 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.9938, allocations: 4 kB / 1.229 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.9943, allocations: 43.8 kB / 1.229 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.9944, allocations: 20 kB / 1.229 GB, free: 8.848 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.000203/0.9946, allocations: 204.2 kB / 1.229 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.9947, allocations: 67.25 kB / 1.229 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009684/0.9957, allocations: 486.7 kB / 1.229 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.9957, allocations: 7.984 kB / 1.229 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.9957, allocations: 0 / 1.229 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009166/0.9966, allocations: 0.7066 MB / 1.23 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.9988, allocations: 1.284 MB / 1.231 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.9988, allocations: 4 kB / 1.231 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006438/0.9994, allocations: 123.8 kB / 1.231 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.9994, allocations: 4 kB / 1.231 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.9995, allocations: 8 kB / 1.231 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003842/0.9999, allocations: 0.5978 MB / 1.232 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.9999, allocations: 4.031 kB / 1.232 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/1.001, allocations: 0.8023 MB / 1.233 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/1.001, allocations: 176.3 kB / 1.233 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/1.002, allocations: 19.92 kB / 1.233 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/1.002, allocations: 15.98 kB / 1.233 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.309e-05/1.002, allocations: 31.97 kB / 1.233 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/1.002, allocations: 15.98 kB / 1.233 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004371/1.003, allocations: 350.8 kB / 1.233 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/1.003, allocations: 0 / 1.233 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001028/1.004, allocations: 363.1 kB / 1.234 GB, free: 3.359 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.0005106/1.004, allocations: 211.2 kB / 1.234 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001639/1.006, allocations: 0.7189 MB / 1.235 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.006, allocations: 3.938 kB / 1.235 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004498/1.006, allocations: 220 kB / 1.235 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/1.008, allocations: 366.7 kB / 1.235 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/1.01, allocations: 1.393 MB / 1.237 GB, free: 432 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006749/1.011, allocations: 0.9457 MB / 1.237 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0006975/1.012, allocations: 208.9 kB / 1.238 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/1.012, allocations: 51.44 kB / 1.238 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/1.012, allocations: 0 / 1.238 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of Templates: time 0.02363/1.036, allocations: 12.39 MB / 1.25 GB, free: 2.996 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches