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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: 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.008282/0.008282, allocations: 101.4 kB / 15.88 MB, free: 5.863 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.001746/0.001746, allocations: 191.3 kB / 16.79 MB, free: 5.805 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.536/1.536, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.811/2.811, allocations: 461.9 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 68.34 kB / 0.899 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4166, allocations: 157.4 MB / 1.053 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1845/0.6011, allocations: 165.2 MB / 1.214 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0031/0.6043, allocations: 1.572 MB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005474/0.6048, allocations: 11.88 kB / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005801/0.6054, allocations: 115.2 kB / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002005/0.6075, allocations: 0.673 MB / 1.216 GB, free: 196 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001715/0.6092, allocations: 0.5441 MB / 1.217 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001229/0.6105, allocations: 0.9906 MB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000458/0.611, allocations: 201.2 kB / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008481/0.6118, allocations: 310.7 kB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.6122, allocations: 247 kB / 1.219 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.541e-05/0.6123, allocations: 16 kB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.6141, allocations: 1.013 MB / 1.22 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.6143, allocations: 99.7 kB / 1.22 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002434/0.6145, allocations: 171.1 kB / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008703/0.6154, allocations: 0.4951 MB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.6154, allocations: 0 / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.614e-06/0.6154, allocations: 4 kB / 1.22 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.27e-05/0.6155, allocations: 0 / 1.22 GB, free: 12.11 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.001144/0.6166, allocations: 0.6599 MB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.6167, allocations: 8.031 kB / 1.221 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.6179, allocations: 167.3 kB / 1.221 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.6184, allocations: 314.6 kB / 1.221 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.6185, allocations: 20.56 kB / 1.221 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/0.6185, allocations: 27.94 kB / 1.221 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005126/0.619, allocations: 281.8 kB / 1.222 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.6191, allocations: 0 / 1.222 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.6191, allocations: 12 kB / 1.222 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.6191, allocations: 8 kB / 1.222 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004293/0.6195, allocations: 208.9 kB / 1.222 GB, free: 10.32 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.001487/0.621, allocations: 1.219 MB / 1.223 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.6213, allocations: 150.3 kB / 1.223 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.6215, allocations: 96.8 kB / 1.223 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006663/0.6222, allocations: 307.2 kB / 1.224 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.6223, allocations: 30.56 kB / 1.224 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.6223, allocations: 0 / 1.224 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=17): time 0.000812/0.6231, allocations: 299 kB / 1.224 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.6231, allocations: 55.41 kB / 1.224 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003277/0.6235, allocations: 324.5 kB / 1.224 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.6235, allocations: 29.7 kB / 1.224 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.6236, allocations: 184.1 kB / 1.225 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.065e-05/0.6237, allocations: 55.2 kB / 1.225 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.731e-05/0.6238, allocations: 45.61 kB / 1.225 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.6239, allocations: 350.8 kB / 1.225 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.6241, allocations: 63.95 kB / 1.225 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.6243, allocations: 125 kB / 1.225 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.6247, allocations: 206.4 kB / 1.225 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.6247, allocations: 3.938 kB / 1.225 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004767/0.6252, allocations: 245.2 kB / 1.226 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.6252, allocations: 8.094 kB / 1.226 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.6252, allocations: 4 kB / 1.226 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6252, allocations: 0 / 1.226 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.6255, allocations: 43.97 kB / 1.226 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.6255, allocations: 7.938 kB / 1.226 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.6257, allocations: 35.67 kB / 1.226 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.6257, allocations: 12 kB / 1.226 GB, free: 6.199 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.0001459/0.6259, allocations: 153.8 kB / 1.226 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.626, allocations: 31.62 kB / 1.226 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004966/0.6265, allocations: 234 kB / 1.226 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.6265, allocations: 0 / 1.226 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6265, allocations: 4 kB / 1.226 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.6265, allocations: 4 kB / 1.226 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.6276, allocations: 0.7029 MB / 1.227 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.6276, allocations: 4.219 kB / 1.227 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.6278, allocations: 35.97 kB / 1.227 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.6278, allocations: 4 kB / 1.227 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.6278, allocations: 8 kB / 1.227 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.6278, allocations: 15.81 kB / 1.227 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6278, allocations: 0 / 1.227 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006698/0.6285, allocations: 446.8 kB / 1.227 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.6286, allocations: 128.7 kB / 1.227 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.6287, allocations: 12.06 kB / 1.227 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.6289, allocations: 15.92 kB / 1.227 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.6289, allocations: 15.98 kB / 1.227 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.629, allocations: 4 kB / 1.227 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002256/0.6292, allocations: 235 kB / 1.228 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6292, allocations: 0 / 1.228 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004083/0.6296, allocations: 83.94 kB / 1.228 GB, free: 3.945 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.0004082/0.63, allocations: 168.9 kB / 1.228 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000453/0.6305, allocations: 183.8 kB / 1.228 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.6305, allocations: 0 / 1.228 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.6307, allocations: 91.83 kB / 1.228 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.6316, allocations: 166.7 kB / 1.228 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.6328, allocations: 0.7524 MB / 1.229 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.6331, allocations: 0.7838 MB / 1.23 GB, free: 1.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.994e-05/0.6332, allocations: 27.44 kB / 1.23 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.6332, allocations: 3.938 kB / 1.23 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of Templates: time 0.00874/0.6419, allocations: 4.922 MB / 1.235 GB, free: 12.84 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches