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.001684/0.001684, allocations: 99.27 kB / 16.35 MB, free: 5.875 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.001904/0.001904, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.611/2.611, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 71.81 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2692, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.6476/0.9168, allocations: 185.1 MB / 1.207 GB, free: 15.29 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01012/0.927, allocations: 6.965 MB / 1.214 GB, free: 9.645 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.9285, allocations: 33.72 kB / 1.214 GB, free: 9.629 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.9301, allocations: 400.7 kB / 1.215 GB, free: 9.297 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.004062/0.9342, allocations: 1.446 MB / 1.216 GB, free: 8.184 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00323/0.9375, allocations: 1.172 MB / 1.217 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002833/0.9403, allocations: 1.939 MB / 1.219 GB, free: 6.203 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.9414, allocations: 0.6588 MB / 1.22 GB, free: 5.793 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.9432, allocations: 0.8176 MB / 1.221 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.9446, allocations: 0.5998 MB / 1.221 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.9448, allocations: 70.12 kB / 1.221 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.9483, allocations: 1.932 MB / 1.223 GB, free: 3.867 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003705/0.9487, allocations: 285.7 kB / 1.223 GB, free: 3.676 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0006779/0.9494, allocations: 435 kB / 1.224 GB, free: 3.406 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003047/0.9525, allocations: 1.761 MB / 1.225 GB, free: 1.898 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.9525, allocations: 0 / 1.225 GB, free: 1.898 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9525, allocations: 4 kB / 1.225 GB, free: 1.895 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.447e-05/0.9525, allocations: 0 / 1.225 GB, free: 1.895 MB / 0.92 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.001946/0.9545, allocations: 1.161 MB / 1.227 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.9545, allocations: 12.03 kB / 1.227 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/0.9564, allocations: 270.8 kB / 1.227 GB, free: 416 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.9576, allocations: 0.6105 MB / 1.227 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.9576, allocations: 41.31 kB / 1.228 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.072e-05/0.9577, allocations: 59.98 kB / 1.228 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.9588, allocations: 0.6362 MB / 1.228 GB, free: 15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.9588, allocations: 0 / 1.228 GB, free: 15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.313e-05/0.9589, allocations: 23.94 kB / 1.228 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.9589, allocations: 21.3 kB / 1.228 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009413/0.9598, allocations: 0.5282 MB / 1.229 GB, free: 14.43 MB / 0.9356 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.00304/0.9629, allocations: 2.453 MB / 1.231 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00066/0.9636, allocations: 361 kB / 1.232 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.964, allocations: 235 kB / 1.232 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000555/0.9645, allocations: 315.5 kB / 1.232 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.9646, allocations: 42.88 kB / 1.232 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.9646, allocations: 0 / 1.232 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39): time 0.00133/0.9659, allocations: 0.6031 MB / 1.233 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.966, allocations: 55.41 kB / 1.233 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005527/0.9665, allocations: 0.4989 MB / 1.233 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.9666, allocations: 33.7 kB / 1.233 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.9668, allocations: 324.4 kB / 1.234 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.9669, allocations: 142.1 kB / 1.234 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.9671, allocations: 93.97 kB / 1.234 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.9672, allocations: 370.7 kB / 1.234 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/0.9676, allocations: 174.4 kB / 1.234 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.968, allocations: 283.4 kB / 1.235 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007085/0.9687, allocations: 450.1 kB / 1.235 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.9687, allocations: 0 / 1.235 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009336/0.9697, allocations: 0.5278 MB / 1.236 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.9697, allocations: 8 kB / 1.236 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.9697, allocations: 0 / 1.236 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.9697, allocations: 4 kB / 1.236 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006808/0.9704, allocations: 132.9 kB / 1.236 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003705/0.9708, allocations: 0.6054 MB / 1.236 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.9713, allocations: 51.52 kB / 1.236 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.9714, allocations: 17.58 kB / 1.236 GB, free: 6.277 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005029/0.9719, allocations: 357.7 kB / 1.237 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003856/0.9723, allocations: 279.4 kB / 1.237 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006835/0.973, allocations: 456.4 kB / 1.237 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.164e-06/0.973, allocations: 0 / 1.237 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008775/0.9739, allocations: 0.5241 MB / 1.238 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.9739, allocations: 8 kB / 1.238 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.9739, allocations: 0 / 1.238 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.994e-06/0.9739, allocations: 7.938 kB / 1.238 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.9744, allocations: 111.9 kB / 1.238 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.9744, allocations: 7.938 kB / 1.238 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000483/0.9749, allocations: 47.78 kB / 1.238 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.975, allocations: 24.06 kB / 1.238 GB, free: 4.402 MB / 0.9356 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.0001603/0.9751, allocations: 205 kB / 1.238 GB, free: 4.195 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.9753, allocations: 55.34 kB / 1.238 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008591/0.9761, allocations: 495.7 kB / 1.239 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.9761, allocations: 4 kB / 1.239 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.9761, allocations: 0 / 1.239 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007545/0.9769, allocations: 0.7066 MB / 1.239 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.9788, allocations: 1.281 MB / 1.241 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.9788, allocations: 7.984 kB / 1.241 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006339/0.9795, allocations: 119.8 kB / 1.241 GB, free: 1.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.9795, allocations: 4 kB / 1.241 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.9795, allocations: 15.98 kB / 1.241 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003149/0.9799, allocations: 0.5939 MB / 1.241 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9799, allocations: 7.969 kB / 1.241 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.9811, allocations: 0.7946 MB / 1.242 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002948/0.9814, allocations: 184.2 kB / 1.242 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.482e-05/0.9815, allocations: 11.94 kB / 1.242 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004262/0.9819, allocations: 27.97 kB / 1.242 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.982, allocations: 27.97 kB / 1.242 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.982, allocations: 8 kB / 1.242 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004067/0.9824, allocations: 358.8 kB / 1.243 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.543e-06/0.9824, allocations: 0 / 1.243 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009169/0.9834, allocations: 359.2 kB / 1.243 GB, free: 14.92 MB / 0.9512 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.0004338/0.9838, allocations: 204.1 kB / 1.243 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.9852, allocations: 0.6795 MB / 1.244 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.9852, allocations: 0 / 1.244 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004264/0.9857, allocations: 223.7 kB / 1.244 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.9872, allocations: 370.4 kB / 1.245 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.9894, allocations: 1.371 MB / 1.246 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.99, allocations: 0.9535 MB / 1.247 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0006015/0.9906, allocations: 208.9 kB / 1.247 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.9908, allocations: 47.44 kB / 1.247 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of SimCode: time 3.9e-07/0.9908, allocations: 0 / 1.247 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of Templates: time 0.02162/1.012, allocations: 12.39 MB / 1.259 GB, free: 14.6 MB / 0.9669 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 -s gbode -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