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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00593/0.00593, allocations: 96.31 kB / 15.73 MB, free: 6.039 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.001155/0.001155, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.355/2.355, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 67.7 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2494, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.7729/1.022, allocations: 185 MB / 1.268 GB, free: 3.148 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.008828/1.031, allocations: 6.966 MB / 1.275 GB, free: 3.094 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/1.032, allocations: 29.28 kB / 1.275 GB, free: 3.094 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001172/1.034, allocations: 416.3 kB / 1.275 GB, free: 3.086 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003583/1.037, allocations: 1.511 MB / 1.277 GB, free: 3.027 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003191/1.04, allocations: 1.179 MB / 1.278 GB, free: 2.988 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003057/1.043, allocations: 1.944 MB / 1.28 GB, free: 2.988 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001195/1.045, allocations: 0.662 MB / 1.281 GB, free: 2.926 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/1.047, allocations: 0.8492 MB / 1.281 GB, free: 2.922 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/1.048, allocations: 0.5993 MB / 1.282 GB, free: 2.918 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001205/1.048, allocations: 67.12 kB / 1.282 GB, free: 2.918 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004007/1.052, allocations: 1.946 MB / 1.284 GB, free: 2.898 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0003913/1.053, allocations: 289.8 kB / 1.284 GB, free: 2.895 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0007269/1.053, allocations: 429.3 kB / 1.285 GB, free: 2.895 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003879/1.057, allocations: 1.771 MB / 1.286 GB, free: 2.793 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/1.057, allocations: 2.109 kB / 1.286 GB, free: 2.793 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.643e-06/1.057, allocations: 0 / 1.286 GB, free: 2.793 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.203e-05/1.057, allocations: 1 kB / 1.286 GB, free: 2.793 MB / 1.014 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.001792/1.059, allocations: 1.19 MB / 1.288 GB, free: 2.078 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/1.059, allocations: 10.5 kB / 1.288 GB, free: 2.078 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/1.059, allocations: 94.77 kB / 1.288 GB, free: 2.039 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/1.061, allocations: 279 kB / 1.288 GB, free: 1.996 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/1.062, allocations: 0.616 MB / 1.289 GB, free: 1.707 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/1.062, allocations: 42.12 kB / 1.289 GB, free: 1.707 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/1.062, allocations: 54.84 kB / 1.289 GB, free: 1.707 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/1.064, allocations: 0.6379 MB / 1.289 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/1.064, allocations: 0 / 1.289 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/1.064, allocations: 20.41 kB / 1.289 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/1.064, allocations: 19.45 kB / 1.289 GB, free: 1.633 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009883/1.065, allocations: 0.5248 MB / 1.29 GB, free: 1.625 MB / 1.014 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.003345/1.068, allocations: 2.464 MB / 1.292 GB, free: 16.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/1.069, allocations: 366 kB / 1.293 GB, free: 16.27 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003796/1.069, allocations: 237.6 kB / 1.293 GB, free: 16.26 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006216/1.07, allocations: 308.8 kB / 1.293 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/1.07, allocations: 38.73 kB / 1.293 GB, free: 15.94 MB / 1.029 GB Notification: Performance of pre-optimization done (n=39): time 2.044e-06/1.07, allocations: 0.5938 kB / 1.293 GB, free: 15.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=39): time 0.00142/1.071, allocations: 0.6167 MB / 1.294 GB, free: 15.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/1.071, allocations: 57.72 kB / 1.294 GB, free: 15.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005577/1.072, allocations: 0.4946 MB / 1.294 GB, free: 15.68 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/1.072, allocations: 36.33 kB / 1.294 GB, free: 15.65 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000209/1.072, allocations: 323.3 kB / 1.295 GB, free: 15.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/1.072, allocations: 158.4 kB / 1.295 GB, free: 15.39 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/1.072, allocations: 86.69 kB / 1.295 GB, free: 15.38 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001508/1.073, allocations: 367.1 kB / 1.295 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003319/1.073, allocations: 176.5 kB / 1.295 GB, free: 15.05 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/1.073, allocations: 283.4 kB / 1.296 GB, free: 14.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006793/1.074, allocations: 452.6 kB / 1.296 GB, free: 14.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.074, allocations: 3.938 kB / 1.296 GB, free: 14.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009049/1.075, allocations: 0.5298 MB / 1.297 GB, free: 14.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1.075, allocations: 9.75 kB / 1.297 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/1.075, allocations: 4.047 kB / 1.297 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/1.075, allocations: 5.812 kB / 1.297 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007319/1.076, allocations: 129.8 kB / 1.297 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003789/1.076, allocations: 0.5912 MB / 1.297 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006199/1.077, allocations: 56.58 kB / 1.297 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.442e-05/1.077, allocations: 18.23 kB / 1.297 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005843/1.077, allocations: 353.6 kB / 1.298 GB, free: 14.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003927/1.078, allocations: 278.5 kB / 1.298 GB, free: 13.98 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000686/1.078, allocations: 454.1 kB / 1.298 GB, free: 13.9 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.745e-06/1.078, allocations: 0 / 1.298 GB, free: 13.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009295/1.079, allocations: 0.5267 MB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/1.079, allocations: 5.906 kB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/1.079, allocations: 4.094 kB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.226e-06/1.079, allocations: 4.781 kB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005463/1.08, allocations: 118.6 kB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/1.08, allocations: 5.859 kB / 1.299 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006157/1.081, allocations: 43.7 kB / 1.299 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/1.081, allocations: 22.48 kB / 1.299 GB, free: 13.81 MB / 1.029 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.0002156/1.081, allocations: 207.3 kB / 1.299 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/1.081, allocations: 61.03 kB / 1.299 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009538/1.082, allocations: 490.3 kB / 1.3 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/1.082, allocations: 9.391 kB / 1.3 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.082, allocations: 0.75 kB / 1.3 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008227/1.083, allocations: 0.7092 MB / 1.301 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/1.085, allocations: 1.287 MB / 1.302 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/1.085, allocations: 3 kB / 1.302 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/1.086, allocations: 122.3 kB / 1.302 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/1.086, allocations: 2.375 kB / 1.302 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/1.086, allocations: 14.81 kB / 1.302 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003293/1.086, allocations: 0.5892 MB / 1.302 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.086, allocations: 2.625 kB / 1.302 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/1.087, allocations: 0.8049 MB / 1.303 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/1.088, allocations: 186.1 kB / 1.303 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/1.088, allocations: 12.92 kB / 1.303 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/1.088, allocations: 20.33 kB / 1.303 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.282e-05/1.088, allocations: 31.73 kB / 1.304 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.331e-05/1.088, allocations: 16.25 kB / 1.304 GB, free: 11.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000411/1.089, allocations: 358.5 kB / 1.304 GB, free: 11.68 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.3e-07/1.089, allocations: 1.531 kB / 1.304 GB, free: 11.68 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001107/1.09, allocations: 362.2 kB / 1.304 GB, free: 11.63 MB / 1.029 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.001816/1.092, allocations: 1.454 MB / 1.306 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001482/1.093, allocations: 0.6703 MB / 1.306 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.093, allocations: 1.156 kB / 1.306 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004133/1.094, allocations: 223 kB / 1.307 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.095, allocations: 361 kB / 1.307 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007554/1.103, allocations: 5.039 MB / 1.312 GB, free: 8.848 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005304/1.104, allocations: 0.9476 MB / 1.313 GB, free: 8.141 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0008131/1.104, allocations: 208 kB / 1.313 GB, free: 8.102 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/1.105, allocations: 231.1 kB / 1.313 GB, free: 8.09 MB / 1.029 GB Notification: Performance of SimCode: time 8.42e-07/1.105, allocations: 3.094 kB / 1.313 GB, free: 8.09 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04063/1.145, allocations: 17.86 MB / 1.331 GB, free: 6.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.74, allocations: 5.344 kB / 1.331 GB, free: 6.613 MB / 1.029 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_9_Buildings_Fluid_Sensors_Examples_Density.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches