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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001254/0.001254, allocations: 108.8 kB / 15.99 MB, free: 6.348 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.001385/0.001385, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.424/1.424, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.712/2.712, allocations: 482.4 MB / 0.755 GB, free: 7.133 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.78 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7197/0.7216, allocations: 162.2 MB / 1.082 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2277/0.9493, allocations: 182.7 MB / 1.261 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01047/0.9599, allocations: 6.941 MB / 1.268 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.961, allocations: 31.75 kB / 1.268 GB, free: 0.8828 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.9623, allocations: 350.2 kB / 1.268 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00385/0.9661, allocations: 1.358 MB / 1.269 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003119/0.9693, allocations: 1.076 MB / 1.27 GB, free: 14.1 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002686/0.972, allocations: 1.937 MB / 1.272 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009681/0.973, allocations: 0.6414 MB / 1.273 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.9752, allocations: 1.028 MB / 1.274 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.9765, allocations: 0.6148 MB / 1.274 GB, free: 9.859 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.9766, allocations: 68 kB / 1.275 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.9801, allocations: 1.987 MB / 1.276 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003522/0.9805, allocations: 291.2 kB / 1.277 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005286/0.981, allocations: 434 kB / 1.277 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.9829, allocations: 1.286 MB / 1.278 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.9829, allocations: 0 / 1.278 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9829, allocations: 4 kB / 1.278 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.9829, allocations: 0 / 1.278 GB, free: 5.801 MB / 0.9981 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.001906/0.9849, allocations: 1.16 MB / 1.28 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.9849, allocations: 12.03 kB / 1.28 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00191/0.9868, allocations: 274.7 kB / 1.28 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009258/0.9878, allocations: 0.5754 MB / 1.28 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.9878, allocations: 45.3 kB / 1.28 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.392e-05/0.9879, allocations: 60 kB / 1.28 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.989, allocations: 0.6362 MB / 1.281 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.9891, allocations: 3.938 kB / 1.281 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.9891, allocations: 20 kB / 1.281 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.817e-05/0.9892, allocations: 17.31 kB / 1.281 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009605/0.9901, allocations: 0.5204 MB / 1.282 GB, free: 2.379 MB / 0.9981 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.003183/0.9933, allocations: 2.528 MB / 1.284 GB, free: 15.62 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000679/0.994, allocations: 366.2 kB / 1.284 GB, free: 15.25 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.9944, allocations: 237.4 kB / 1.285 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005937/0.995, allocations: 303.6 kB / 1.285 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.9951, allocations: 38.89 kB / 1.285 GB, free: 14.62 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 1.984e-06/0.9951, allocations: 0 / 1.285 GB, free: 14.62 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001444/0.9965, allocations: 0.6182 MB / 1.286 GB, free: 14 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.9966, allocations: 59.34 kB / 1.286 GB, free: 13.93 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005981/0.9972, allocations: 0.4951 MB / 1.286 GB, free: 13.42 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.9973, allocations: 37.7 kB / 1.286 GB, free: 13.38 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.9975, allocations: 324.4 kB / 1.287 GB, free: 13.05 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.9977, allocations: 138 kB / 1.287 GB, free: 12.92 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.9978, allocations: 94.03 kB / 1.287 GB, free: 12.82 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.998, allocations: 374.7 kB / 1.287 GB, free: 12.45 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/0.9984, allocations: 170.5 kB / 1.287 GB, free: 12.28 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004457/0.9988, allocations: 287.4 kB / 1.288 GB, free: 11.96 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007462/0.9996, allocations: 444.3 kB / 1.288 GB, free: 11.49 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.9996, allocations: 0 / 1.288 GB, free: 11.49 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009407/1.001, allocations: 0.5279 MB / 1.288 GB, free: 10.96 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/1.001, allocations: 10.19 kB / 1.288 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/1.001, allocations: 4 kB / 1.288 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/1.001, allocations: 4 kB / 1.288 GB, free: 10.94 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/1.001, allocations: 127.8 kB / 1.289 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004266/1.002, allocations: 0.598 MB / 1.289 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/1.002, allocations: 91.5 kB / 1.289 GB, free: 10.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/1.002, allocations: 16 kB / 1.289 GB, free: 10.09 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005541/1.003, allocations: 344.9 kB / 1.29 GB, free: 9.75 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004282/1.003, allocations: 291.4 kB / 1.29 GB, free: 9.426 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007342/1.004, allocations: 448.4 kB / 1.29 GB, free: 8.957 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/1.004, allocations: 7.938 kB / 1.29 GB, free: 8.949 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009164/1.005, allocations: 0.5199 MB / 1.291 GB, free: 8.422 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/1.005, allocations: 4 kB / 1.291 GB, free: 8.418 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.005, allocations: 4 kB / 1.291 GB, free: 8.414 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/1.005, allocations: 7.938 kB / 1.291 GB, free: 8.406 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005071/1.006, allocations: 120.1 kB / 1.291 GB, free: 8.289 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/1.006, allocations: 4 kB / 1.291 GB, free: 8.285 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/1.006, allocations: 75.62 kB / 1.291 GB, free: 8.211 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/1.006, allocations: 20 kB / 1.291 GB, free: 8.191 MB / 1.014 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.000187/1.007, allocations: 209.8 kB / 1.291 GB, free: 7.98 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/1.007, allocations: 59.28 kB / 1.291 GB, free: 7.922 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009193/1.008, allocations: 484 kB / 1.292 GB, free: 7.441 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/1.008, allocations: 7.938 kB / 1.292 GB, free: 7.434 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.008, allocations: 4.125 kB / 1.292 GB, free: 7.43 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008623/1.009, allocations: 0.703 MB / 1.292 GB, free: 6.641 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/1.011, allocations: 1.296 MB / 1.294 GB, free: 5.266 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.011, allocations: 3.984 kB / 1.294 GB, free: 5.262 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006317/1.011, allocations: 128 kB / 1.294 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/1.011, allocations: 0 / 1.294 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/1.011, allocations: 19.98 kB / 1.294 GB, free: 5.117 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003558/1.012, allocations: 0.586 MB / 1.294 GB, free: 4.508 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.012, allocations: 0 / 1.294 GB, free: 4.508 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/1.013, allocations: 0.8016 MB / 1.295 GB, free: 3.664 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/1.013, allocations: 176.3 kB / 1.295 GB, free: 3.473 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/1.013, allocations: 15.94 kB / 1.295 GB, free: 3.457 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005053/1.014, allocations: 51.86 kB / 1.295 GB, free: 3.406 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.599e-05/1.014, allocations: 27.91 kB / 1.295 GB, free: 3.379 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.5e-05/1.014, allocations: 15.98 kB / 1.296 GB, free: 3.363 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004479/1.014, allocations: 350.8 kB / 1.296 GB, free: 3.023 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.31e-07/1.014, allocations: 0 / 1.296 GB, free: 3.023 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001011/1.015, allocations: 363.1 kB / 1.296 GB, free: 2.668 MB / 1.014 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.0004777/1.016, allocations: 204.9 kB / 1.296 GB, free: 2.465 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001613/1.018, allocations: 0.7197 MB / 1.297 GB, free: 1.746 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.018, allocations: 0 / 1.297 GB, free: 1.746 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004419/1.018, allocations: 221 kB / 1.297 GB, free: 1.531 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/1.02, allocations: 370 kB / 1.298 GB, free: 1.184 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/1.022, allocations: 1.684 MB / 1.299 GB, free: 15.44 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/1.023, allocations: 0.9458 MB / 1.3 GB, free: 14.47 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/1.023, allocations: 59.42 kB / 1.3 GB, free: 14.41 MB / 1.029 GB Notification: Performance of SimCode: time 5.81e-07/1.023, allocations: 4 kB / 1.3 GB, free: 14.41 MB / 1.029 GB Notification: Performance of Templates: time 0.01809/1.041, allocations: 12.95 MB / 1.313 GB, free: 1.527 MB / 1.029 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=400 -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