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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_latest_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.009209/0.009209, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001727/0.001727, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.659/2.659, allocations: 469.4 MB / 0.7421 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 63.91 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8329/0.8343, allocations: 159.1 MB / 1.22 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2037/1.038, allocations: 185.1 MB / 1.4 GB, free: 8.551 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.01011/1.048, allocations: 6.98 MB / 1.407 GB, free: 1.551 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/1.049, allocations: 31.88 kB / 1.407 GB, free: 1.52 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001321/1.051, allocations: 405.5 kB / 1.408 GB, free: 1.121 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.004124/1.055, allocations: 1.516 MB / 1.409 GB, free: 15.6 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.003301/1.058, allocations: 1.179 MB / 1.41 GB, free: 14.43 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.002722/1.061, allocations: 1.948 MB / 1.412 GB, free: 12.47 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/1.062, allocations: 0.6531 MB / 1.413 GB, free: 11.8 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/1.064, allocations: 0.8551 MB / 1.414 GB, free: 10.95 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/1.066, allocations: 0.6032 MB / 1.414 GB, free: 10.34 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0002003/1.066, allocations: 68 kB / 1.414 GB, free: 10.28 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/1.07, allocations: 1.941 MB / 1.416 GB, free: 8.332 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004096/1.07, allocations: 287.1 kB / 1.417 GB, free: 8.051 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0007003/1.071, allocations: 434.1 kB / 1.417 GB, free: 7.625 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.003429/1.074, allocations: 1.761 MB / 1.419 GB, free: 5.859 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/1.074, allocations: 4 kB / 1.419 GB, free: 5.855 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.813e-06/1.074, allocations: 0 / 1.419 GB, free: 5.855 MB / 1.139 GB Notification: Performance of Transformations before backend: time 3.239e-05/1.075, allocations: 0 / 1.419 GB, free: 5.855 MB / 1.139 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.002207/1.077, allocations: 1.194 MB / 1.42 GB, free: 4.609 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/1.077, allocations: 12.62 kB / 1.42 GB, free: 4.598 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/1.077, allocations: 90.52 kB / 1.42 GB, free: 4.5 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/1.079, allocations: 271.2 kB / 1.42 GB, free: 4.234 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/1.08, allocations: 0.6226 MB / 1.421 GB, free: 3.57 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/1.08, allocations: 45.31 kB / 1.421 GB, free: 3.527 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/1.08, allocations: 52 kB / 1.421 GB, free: 3.477 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/1.081, allocations: 0.6362 MB / 1.422 GB, free: 2.824 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/1.082, allocations: 0 / 1.422 GB, free: 2.824 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/1.082, allocations: 27.94 kB / 1.422 GB, free: 2.797 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.714e-05/1.082, allocations: 17.31 kB / 1.422 GB, free: 2.781 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009615/1.083, allocations: 0.5204 MB / 1.422 GB, free: 2.262 MB / 1.139 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.003375/1.086, allocations: 2.457 MB / 1.424 GB, free: 15.59 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/1.087, allocations: 365.7 kB / 1.425 GB, free: 15.23 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/1.087, allocations: 235.4 kB / 1.425 GB, free: 15 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005726/1.088, allocations: 315.5 kB / 1.425 GB, free: 14.63 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/1.088, allocations: 34.89 kB / 1.425 GB, free: 14.59 MB / 1.154 GB Notification: Performance of pre-optimization done (n=39): time 2.455e-06/1.088, allocations: 0 / 1.425 GB, free: 14.59 MB / 1.154 GB Notification: Performance of matching and sorting (n=39): time 0.001458/1.089, allocations: 0.6228 MB / 1.426 GB, free: 13.96 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/1.089, allocations: 59.41 kB / 1.426 GB, free: 13.89 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/1.09, allocations: 0.4989 MB / 1.427 GB, free: 13.38 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/1.09, allocations: 33.7 kB / 1.427 GB, free: 13.34 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/1.09, allocations: 336.9 kB / 1.427 GB, free: 13.01 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/1.09, allocations: 142.8 kB / 1.427 GB, free: 12.87 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/1.09, allocations: 90.08 kB / 1.427 GB, free: 12.77 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001565/1.091, allocations: 366.7 kB / 1.427 GB, free: 12.41 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/1.091, allocations: 182.5 kB / 1.428 GB, free: 12.23 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004195/1.091, allocations: 271.4 kB / 1.428 GB, free: 11.92 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/1.092, allocations: 464.1 kB / 1.428 GB, free: 11.44 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.092, allocations: 0 / 1.428 GB, free: 11.44 MB / 1.154 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009654/1.093, allocations: 0.5245 MB / 1.429 GB, free: 10.91 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/1.093, allocations: 8 kB / 1.429 GB, free: 10.9 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/1.093, allocations: 4 kB / 1.429 GB, free: 10.89 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/1.093, allocations: 4 kB / 1.429 GB, free: 10.89 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/1.094, allocations: 131.8 kB / 1.429 GB, free: 10.76 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000395/1.094, allocations: 0.5938 MB / 1.43 GB, free: 10.14 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/1.095, allocations: 55.64 kB / 1.43 GB, free: 10.09 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/1.095, allocations: 20 kB / 1.43 GB, free: 10.07 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005534/1.096, allocations: 348.9 kB / 1.43 GB, free: 9.727 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004228/1.096, allocations: 287.4 kB / 1.43 GB, free: 9.406 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007225/1.097, allocations: 452.4 kB / 1.431 GB, free: 8.934 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.539e-06/1.097, allocations: 4 kB / 1.431 GB, free: 8.93 MB / 1.154 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009719/1.098, allocations: 0.5282 MB / 1.431 GB, free: 8.395 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/1.098, allocations: 6.031 kB / 1.431 GB, free: 8.391 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/1.098, allocations: 7.938 kB / 1.431 GB, free: 8.383 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.094e-06/1.098, allocations: 4 kB / 1.431 GB, free: 8.379 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/1.098, allocations: 128.2 kB / 1.431 GB, free: 8.254 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/1.098, allocations: 4 kB / 1.431 GB, free: 8.25 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/1.099, allocations: 43.75 kB / 1.431 GB, free: 8.207 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/1.099, allocations: 19.94 kB / 1.431 GB, free: 8.188 MB / 1.154 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.0001911/1.099, allocations: 215.6 kB / 1.432 GB, free: 7.973 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/1.099, allocations: 67.52 kB / 1.432 GB, free: 7.906 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000946/1.1, allocations: 484 kB / 1.432 GB, free: 7.426 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/1.1, allocations: 4 kB / 1.432 GB, free: 7.422 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.1, allocations: 0 / 1.432 GB, free: 7.422 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008445/1.101, allocations: 0.7107 MB / 1.433 GB, free: 6.625 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/1.103, allocations: 1.277 MB / 1.434 GB, free: 5.27 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/1.103, allocations: 0 / 1.434 GB, free: 5.27 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006554/1.104, allocations: 128.1 kB / 1.434 GB, free: 5.145 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/1.104, allocations: 4 kB / 1.434 GB, free: 5.141 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/1.104, allocations: 11.98 kB / 1.434 GB, free: 5.129 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000355/1.104, allocations: 0.5976 MB / 1.435 GB, free: 4.508 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/1.105, allocations: 4 kB / 1.435 GB, free: 4.504 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/1.106, allocations: 0.7942 MB / 1.436 GB, free: 3.668 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/1.106, allocations: 192.6 kB / 1.436 GB, free: 3.461 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/1.106, allocations: 11.94 kB / 1.436 GB, free: 3.449 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/1.107, allocations: 19.98 kB / 1.436 GB, free: 3.43 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/1.107, allocations: 31.89 kB / 1.436 GB, free: 3.398 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/1.107, allocations: 16 kB / 1.436 GB, free: 3.383 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0004059/1.107, allocations: 354.8 kB / 1.436 GB, free: 3.039 MB / 1.154 GB Notification: Performance of sort global known variables: time 2.7e-07/1.107, allocations: 0 / 1.436 GB, free: 3.039 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.001045/1.108, allocations: 363.3 kB / 1.437 GB, free: 2.684 MB / 1.154 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.001863/1.11, allocations: 1.442 MB / 1.438 GB, free: 1.203 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001576/1.112, allocations: 0.6643 MB / 1.439 GB, free: 0.5391 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.112, allocations: 8 kB / 1.439 GB, free: 0.5312 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0004327/1.112, allocations: 219.9 kB / 1.439 GB, free: 324 kB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/1.114, allocations: 366.1 kB / 1.439 GB, free: 15.96 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007765/1.122, allocations: 5.043 MB / 1.444 GB, free: 10.75 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006383/1.122, allocations: 0.9457 MB / 1.445 GB, free: 9.773 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.0007233/1.123, allocations: 204.9 kB / 1.445 GB, free: 9.574 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/1.124, allocations: 227.4 kB / 1.445 GB, free: 9.352 MB / 1.17 GB Notification: Performance of SimCode: time 1.333e-06/1.124, allocations: 0 / 1.445 GB, free: 9.352 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0462/1.17, allocations: 17.86 MB / 1.463 GB, free: 7.781 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/13.58, allocations: 7.844 kB / 1.463 GB, free: 7.777 MB / 1.186 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Sensors_Examples_Density.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.csv","/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