Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.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.Velocity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity",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.006587/0.006587, allocations: 97.38 kB / 15.73 MB, free: 6.062 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.001947/0.001947, allocations: 202.3 kB / 16.68 MB, free: 5.977 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.317/2.317, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.88 kB / 0.9504 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2433, allocations: 140.4 MB / 1.087 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1672/0.4105, allocations: 167.4 MB / 1.251 GB, free: 10.07 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002894/0.4135, allocations: 1.564 MB / 1.252 GB, free: 8.508 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003342/0.4138, allocations: 11.94 kB / 1.253 GB, free: 8.496 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0004863/0.4143, allocations: 150.9 kB / 1.253 GB, free: 8.348 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.416, allocations: 0.7351 MB / 1.253 GB, free: 7.609 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.4175, allocations: 0.6097 MB / 1.254 GB, free: 7 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0009102/0.4184, allocations: 0.7177 MB / 1.255 GB, free: 6.281 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004266/0.4189, allocations: 233.1 kB / 1.255 GB, free: 6.051 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006752/0.4196, allocations: 354.7 kB / 1.255 GB, free: 5.703 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.4199, allocations: 231 kB / 1.255 GB, free: 5.477 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.243e-05/0.4199, allocations: 24 kB / 1.255 GB, free: 5.453 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001653/0.4216, allocations: 0.8767 MB / 1.256 GB, free: 4.574 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.4217, allocations: 107.6 kB / 1.256 GB, free: 4.469 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.422, allocations: 175.1 kB / 1.257 GB, free: 4.297 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.4233, allocations: 0.732 MB / 1.257 GB, free: 3.562 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.4233, allocations: 8 kB / 1.257 GB, free: 3.555 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.883e-06/0.4233, allocations: 4 kB / 1.257 GB, free: 3.551 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.4233, allocations: 0 / 1.257 GB, free: 3.551 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000964/0.4243, allocations: 0.6693 MB / 1.258 GB, free: 2.832 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4243, allocations: 15.97 kB / 1.258 GB, free: 2.816 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.791e-05/0.4244, allocations: 58.55 kB / 1.258 GB, free: 2.75 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.4256, allocations: 159.6 kB / 1.258 GB, free: 2.594 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.4261, allocations: 326.9 kB / 1.259 GB, free: 2.234 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.4262, allocations: 24.5 kB / 1.259 GB, free: 2.207 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.4262, allocations: 24 kB / 1.259 GB, free: 2.184 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.4268, allocations: 285.8 kB / 1.259 GB, free: 1.887 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4268, allocations: 0 / 1.259 GB, free: 1.887 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.4268, allocations: 12 kB / 1.259 GB, free: 1.875 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.4268, allocations: 4 kB / 1.259 GB, free: 1.871 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.4273, allocations: 204.7 kB / 1.259 GB, free: 1.672 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.001508/0.4288, allocations: 1.231 MB / 1.26 GB, free: 344 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.4291, allocations: 142.5 kB / 1.26 GB, free: 192 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.4293, allocations: 100.8 kB / 1.26 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.504/0.9333, allocations: 296.5 kB / 1.261 GB, free: 176.7 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.9334, allocations: 35.58 kB / 1.261 GB, free: 176.7 MB / 1.014 GB Notification: Performance of pre-optimization done (n=17): time 3.357e-06/0.9334, allocations: 4.438 kB / 1.261 GB, free: 176.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=17): time 0.001001/0.9344, allocations: 288.5 kB / 1.261 GB, free: 176.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.9345, allocations: 62.31 kB / 1.261 GB, free: 176.6 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004027/0.9349, allocations: 329 kB / 1.261 GB, free: 176.5 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.9349, allocations: 26.48 kB / 1.261 GB, free: 176.4 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.935, allocations: 187.7 kB / 1.262 GB, free: 176.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.9351, allocations: 62 kB / 1.262 GB, free: 176.3 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.098e-05/0.9352, allocations: 45.88 kB / 1.262 GB, free: 176.3 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 6.665e-05/0.9352, allocations: 341.3 kB / 1.262 GB, free: 176 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.9354, allocations: 68.52 kB / 1.262 GB, free: 176 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.9357, allocations: 129.7 kB / 1.262 GB, free: 176 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.936, allocations: 195.8 kB / 1.262 GB, free: 175.9 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.936, allocations: 2.703 kB / 1.262 GB, free: 175.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004823/0.9365, allocations: 254.9 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.9365, allocations: 6.406 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.9366, allocations: 0.9375 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.9366, allocations: 2.812 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.9368, allocations: 52.88 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.9368, allocations: 2.641 kB / 1.263 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.937, allocations: 36.56 kB / 1.263 GB, free: 175.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.9371, allocations: 8.156 kB / 1.263 GB, free: 175.8 MB / 1.014 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.0001292/0.9372, allocations: 151.8 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.9373, allocations: 35.03 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005083/0.9378, allocations: 234.4 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.9378, allocations: 2.656 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.9378, allocations: 0.8125 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.9378, allocations: 0.6094 kB / 1.263 GB, free: 175.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.9389, allocations: 0.7119 MB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.939, allocations: 2.484 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.9392, allocations: 36.39 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.9392, allocations: 3.219 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.9392, allocations: 7.016 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.9392, allocations: 12.31 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.9392, allocations: 1.969 kB / 1.264 GB, free: 175.3 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.9399, allocations: 449.5 kB / 1.264 GB, free: 175.1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.94, allocations: 128.2 kB / 1.265 GB, free: 175 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.9401, allocations: 13.03 kB / 1.265 GB, free: 175 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.9403, allocations: 11.61 kB / 1.265 GB, free: 175 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.9403, allocations: 14.88 kB / 1.265 GB, free: 175 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.9403, allocations: 6.609 kB / 1.265 GB, free: 175 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002409/0.9406, allocations: 237.3 kB / 1.265 GB, free: 174.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9406, allocations: 0.875 kB / 1.265 GB, free: 174.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00042/0.941, allocations: 81.61 kB / 1.265 GB, free: 174.8 MB / 1.014 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.001101/0.9421, allocations: 1.047 MB / 1.266 GB, free: 174 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000473/0.9426, allocations: 182.3 kB / 1.266 GB, free: 174 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.9426, allocations: 2.531 kB / 1.266 GB, free: 174 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.9429, allocations: 95.17 kB / 1.266 GB, free: 173.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009094/0.9438, allocations: 171.8 kB / 1.266 GB, free: 173.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.9475, allocations: 3.004 MB / 1.269 GB, free: 171.9 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.9478, allocations: 0.781 MB / 1.27 GB, free: 171.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002681/0.9481, allocations: 67.48 kB / 1.27 GB, free: 171.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.9482, allocations: 93.23 kB / 1.27 GB, free: 171.1 MB / 1.014 GB Notification: Performance of SimCode: time 4.91e-07/0.9482, allocations: 0 / 1.27 GB, free: 171.1 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03216/0.9804, allocations: 9.021 MB / 1.279 GB, free: 170.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.219/9.199, allocations: 7.062 kB / 1.279 GB, free: 170.3 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_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_Velocity.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches