Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 99.75 kB / 18.94 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 215.9 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.379/1.379, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.995/2.995, allocations: 0.49 GB / 0.7951 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.31 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3169, allocations: 176.1 MB / 1.326 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1761/0.493, allocations: 147.7 MB / 1.47 GB, free: 13.27 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.002731/0.4957, allocations: 1.493 MB / 1.472 GB, free: 11.78 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.496, allocations: 15.88 kB / 1.472 GB, free: 11.76 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.4964, allocations: 150.8 kB / 1.472 GB, free: 11.61 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.4981, allocations: 0.7079 MB / 1.472 GB, free: 10.9 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.4996, allocations: 0.6304 MB / 1.473 GB, free: 10.27 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0008491/0.5004, allocations: 0.7177 MB / 1.474 GB, free: 9.555 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.5008, allocations: 201 kB / 1.474 GB, free: 9.352 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009808/0.5018, allocations: 0.5216 MB / 1.474 GB, free: 8.828 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.5021, allocations: 235 kB / 1.475 GB, free: 8.598 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.5021, allocations: 24 kB / 1.475 GB, free: 8.574 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.5033, allocations: 0.7129 MB / 1.475 GB, free: 7.859 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.5034, allocations: 119.6 kB / 1.475 GB, free: 7.742 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.5036, allocations: 139.3 kB / 1.476 GB, free: 7.605 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0009679/0.5045, allocations: 0.7086 MB / 1.476 GB, free: 6.895 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.5045, allocations: 0 / 1.476 GB, free: 6.895 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5045, allocations: 0 / 1.476 GB, free: 6.895 MB / 1.17 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.5045, allocations: 0 / 1.476 GB, free: 6.895 MB / 1.17 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009611/0.5055, allocations: 0.6095 MB / 1.477 GB, free: 6.25 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.5055, allocations: 8.031 kB / 1.477 GB, free: 6.242 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.969e-05/0.5056, allocations: 58.53 kB / 1.477 GB, free: 6.176 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.5066, allocations: 163.5 kB / 1.477 GB, free: 6.016 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.5071, allocations: 268.5 kB / 1.477 GB, free: 5.73 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.5072, allocations: 16.44 kB / 1.477 GB, free: 5.715 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.5072, allocations: 24 kB / 1.477 GB, free: 5.691 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.5077, allocations: 285 kB / 1.478 GB, free: 5.391 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.5077, allocations: 0 / 1.478 GB, free: 5.391 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.5077, allocations: 12 kB / 1.478 GB, free: 5.379 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5077, allocations: 4 kB / 1.478 GB, free: 5.375 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004088/0.5081, allocations: 200.9 kB / 1.478 GB, free: 5.18 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.5095, allocations: 0.9986 MB / 1.479 GB, free: 4.121 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.5098, allocations: 134.5 kB / 1.479 GB, free: 3.98 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.5099, allocations: 96.8 kB / 1.479 GB, free: 3.883 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004409/0.5104, allocations: 71.92 kB / 1.479 GB, free: 3.812 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.5104, allocations: 38.5 kB / 1.479 GB, free: 3.766 MB / 1.17 GB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.5104, allocations: 4 kB / 1.479 GB, free: 3.762 MB / 1.17 GB Notification: Performance of matching and sorting (n=17): time 0.0007455/0.5112, allocations: 291.1 kB / 1.479 GB, free: 3.473 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.5112, allocations: 55.41 kB / 1.48 GB, free: 3.406 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.5115, allocations: 328.5 kB / 1.48 GB, free: 3.074 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.5115, allocations: 29.7 kB / 1.48 GB, free: 3.039 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.5117, allocations: 184.3 kB / 1.48 GB, free: 2.855 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 5.554e-05/0.5117, allocations: 63.42 kB / 1.48 GB, free: 2.793 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-05/0.5118, allocations: 49.7 kB / 1.48 GB, free: 2.738 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.512, allocations: 338.8 kB / 1.48 GB, free: 2.398 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.5121, allocations: 67.95 kB / 1.481 GB, free: 2.332 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.5124, allocations: 211.1 kB / 1.481 GB, free: 2.09 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.5127, allocations: 195.5 kB / 1.481 GB, free: 1.883 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5127, allocations: 7.938 kB / 1.481 GB, free: 1.875 MB / 1.17 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004641/0.5132, allocations: 257.2 kB / 1.481 GB, free: 1.617 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.5132, allocations: 8 kB / 1.481 GB, free: 1.609 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.5132, allocations: 0 / 1.481 GB, free: 1.609 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.5132, allocations: 4 kB / 1.481 GB, free: 1.605 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.5134, allocations: 39.92 kB / 1.481 GB, free: 1.566 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.5135, allocations: 11.97 kB / 1.481 GB, free: 1.555 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.5136, allocations: 31.78 kB / 1.481 GB, free: 1.523 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.5137, allocations: 15.98 kB / 1.481 GB, free: 1.508 MB / 1.17 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.5138, allocations: 157.8 kB / 1.481 GB, free: 1.344 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.434e-05/0.5139, allocations: 31.81 kB / 1.481 GB, free: 1.312 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.5143, allocations: 234.7 kB / 1.482 GB, free: 1.078 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5143, allocations: 0 / 1.482 GB, free: 1.078 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5143, allocations: 0 / 1.482 GB, free: 1.078 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.5143, allocations: 0 / 1.482 GB, free: 1.078 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.5154, allocations: 0.6591 MB / 1.482 GB, free: 356 kB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5154, allocations: 0 / 1.482 GB, free: 356 kB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.5156, allocations: 43.92 kB / 1.482 GB, free: 312 kB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.5156, allocations: 4 kB / 1.482 GB, free: 308 kB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.5156, allocations: 3.938 kB / 1.482 GB, free: 304 kB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5156, allocations: 4 kB / 1.482 GB, free: 300 kB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.5156, allocations: 4.219 kB / 1.482 GB, free: 296 kB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006625/0.5162, allocations: 453.1 kB / 1.483 GB, free: 15.81 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.5164, allocations: 51.72 kB / 1.483 GB, free: 15.76 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.5164, allocations: 3.938 kB / 1.483 GB, free: 15.75 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.5166, allocations: 15.98 kB / 1.483 GB, free: 15.74 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.5166, allocations: 19.92 kB / 1.483 GB, free: 15.72 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.5166, allocations: 4 kB / 1.483 GB, free: 15.71 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0002214/0.5168, allocations: 235.1 kB / 1.483 GB, free: 15.49 MB / 1.186 GB Notification: Performance of sort global known variables: time 8e-08/0.5168, allocations: 0 / 1.483 GB, free: 15.49 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.0003677/0.5172, allocations: 87.88 kB / 1.483 GB, free: 15.4 MB / 1.186 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.5183, allocations: 1.024 MB / 1.484 GB, free: 14.33 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0004155/0.5187, allocations: 181.4 kB / 1.484 GB, free: 14.15 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.5187, allocations: 3.938 kB / 1.484 GB, free: 14.15 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.5189, allocations: 87.88 kB / 1.484 GB, free: 14.06 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008414/0.5197, allocations: 168.3 kB / 1.485 GB, free: 13.9 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.5234, allocations: 3.013 MB / 1.488 GB, free: 10.75 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.5235, allocations: 175.8 kB / 1.488 GB, free: 10.55 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0001818/0.5237, allocations: 66.91 kB / 1.488 GB, free: 10.49 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.5239, allocations: 95.41 kB / 1.488 GB, free: 10.4 MB / 1.186 GB Notification: Performance of SimCode: time 4.01e-07/0.5239, allocations: 3.938 kB / 1.488 GB, free: 10.39 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04035/0.5642, allocations: 10.25 MB / 1.498 GB, free: 444 kB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.29, allocations: 3.75 kB / 1.498 GB, free: 444 kB / 1.186 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv --start-time 0 --stop-time 60 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_12_Buildings_Fluid_Sensors_Examples_Velocity.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable senDyn.port_a.m_flow in file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv. Warning: Get data of variable senDyn.port_a.m_flow from file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv failed! Error: Could not read variable senDyn.v in file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv. Warning: Get data of variable senDyn.v from file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv failed! Error: Could not read variable senSteSta.v in file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv. Warning: Get data of variable senSteSta.v from file Buildings_12_Buildings.Fluid.Sensors.Examples.Velocity_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.627267910022056]