Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity") translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001906/0.001906, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.54/1.54, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.741/2.741, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.02 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3281, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.2026/0.5307, allocations: 165.2 MB / 1.213 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003134/0.5339, allocations: 1.576 MB / 1.215 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005593/0.5345, allocations: 11.94 kB / 1.215 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006455/0.5352, allocations: 115.2 kB / 1.215 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.5374, allocations: 0.6691 MB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.5392, allocations: 0.5485 MB / 1.216 GB, free: 180 kB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001338/0.5406, allocations: 0.9906 MB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004939/0.5411, allocations: 201.2 kB / 1.217 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007434/0.5418, allocations: 314.7 kB / 1.218 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.5422, allocations: 247 kB / 1.218 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.5422, allocations: 16 kB / 1.218 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.544, allocations: 1.005 MB / 1.219 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.5442, allocations: 99.7 kB / 1.219 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.5444, allocations: 171.1 kB / 1.219 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.5455, allocations: 0.7751 MB / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5455, allocations: 0 / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5455, allocations: 0 / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.5455, allocations: 0 / 1.22 GB, free: 12.37 MB / 0.9825 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.001073/0.5466, allocations: 0.6623 MB / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.5466, allocations: 8.031 kB / 1.221 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001265/0.5479, allocations: 159.3 kB / 1.221 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.5484, allocations: 318.6 kB / 1.221 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.5484, allocations: 16.56 kB / 1.221 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.5485, allocations: 27.88 kB / 1.221 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005299/0.549, allocations: 289.8 kB / 1.221 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.5491, allocations: 0 / 1.221 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.5491, allocations: 12 kB / 1.221 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.5491, allocations: 4 kB / 1.221 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.5496, allocations: 200.9 kB / 1.222 GB, free: 10.59 MB / 0.9825 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.00149/0.5511, allocations: 1.223 MB / 1.223 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.5514, allocations: 150.4 kB / 1.223 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.5516, allocations: 100.8 kB / 1.223 GB, free: 9 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006895/0.5523, allocations: 299.2 kB / 1.223 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.279e-05/0.5524, allocations: 30.56 kB / 1.223 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.5525, allocations: 4 kB / 1.223 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of matching and sorting (n=17): time 0.0008378/0.5533, allocations: 294.4 kB / 1.224 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.5533, allocations: 51.41 kB / 1.224 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.5537, allocations: 328.5 kB / 1.224 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.5537, allocations: 33.7 kB / 1.224 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.5539, allocations: 188.1 kB / 1.224 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.554, allocations: 59.19 kB / 1.224 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.038e-05/0.5541, allocations: 49.61 kB / 1.224 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5542, allocations: 338.8 kB / 1.225 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.5544, allocations: 71.94 kB / 1.225 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.5546, allocations: 128.1 kB / 1.225 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.555, allocations: 199.5 kB / 1.225 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.555, allocations: 3.938 kB / 1.225 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004975/0.5555, allocations: 253.2 kB / 1.225 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.5556, allocations: 4 kB / 1.225 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.5556, allocations: 4 kB / 1.225 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.5556, allocations: 0 / 1.225 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.5558, allocations: 39.98 kB / 1.225 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.5558, allocations: 3.938 kB / 1.225 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.5561, allocations: 51.69 kB / 1.225 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.5561, allocations: 12 kB / 1.225 GB, free: 6.449 MB / 0.9825 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.0001572/0.5563, allocations: 147.3 kB / 1.225 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.5564, allocations: 31.62 kB / 1.226 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000519/0.5569, allocations: 234.8 kB / 1.226 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5569, allocations: 4 kB / 1.226 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5569, allocations: 0 / 1.226 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.5569, allocations: 3.984 kB / 1.226 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.558, allocations: 0.7106 MB / 1.226 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.558, allocations: 4 kB / 1.226 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.5582, allocations: 27.98 kB / 1.226 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.5582, allocations: 4 kB / 1.226 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.5582, allocations: 8 kB / 1.226 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.5583, allocations: 15.86 kB / 1.227 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5583, allocations: 0 / 1.227 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006672/0.5589, allocations: 453.1 kB / 1.227 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.5591, allocations: 124.7 kB / 1.227 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.811e-05/0.5591, allocations: 8 kB / 1.227 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.5593, allocations: 15.92 kB / 1.227 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.5594, allocations: 19.97 kB / 1.227 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.5594, allocations: 8.062 kB / 1.227 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.00024/0.5597, allocations: 235 kB / 1.227 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5597, allocations: 0 / 1.227 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000437/0.5601, allocations: 75.94 kB / 1.227 GB, free: 4.203 MB / 0.9825 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.0004364/0.5606, allocations: 165.5 kB / 1.228 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004605/0.561, allocations: 186.8 kB / 1.228 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.561, allocations: 0 / 1.228 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.5613, allocations: 99.84 kB / 1.228 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009166/0.5622, allocations: 157.8 kB / 1.228 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.5632, allocations: 0.7136 MB / 1.229 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.5636, allocations: 0.7876 MB / 1.229 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002232/0.5638, allocations: 70.92 kB / 1.23 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.5639, allocations: 23.44 kB / 1.23 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.5639, allocations: 0 / 1.23 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of Templates: time 0.01089/0.5748, allocations: 5.541 MB / 1.235 GB, free: 12.48 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches