Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.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.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure") translateModel(Buildings.Fluid.Sensors.Examples.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 109.5 kB / 15.99 MB, free: 6.344 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.001615/0.001615, allocations: 199.5 kB / 16.91 MB, free: 6.184 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.479/1.479, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.529/2.529, allocations: 469.4 MB / 0.7423 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 61.84 kB / 0.9083 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3289, allocations: 159.1 MB / 1.064 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Pressure): time 0.7291/1.058, allocations: 167.2 MB / 1.227 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01019/1.068, allocations: 7.25 MB / 1.234 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008135/1.069, allocations: 10.34 kB / 1.234 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009843/1.07, allocations: 194.5 kB / 1.234 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001991/1.072, allocations: 0.5351 MB / 1.235 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001518/1.074, allocations: 387.1 kB / 1.235 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001562/1.075, allocations: 0.7104 MB / 1.236 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000572/1.076, allocations: 259 kB / 1.236 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/1.077, allocations: 378.5 kB / 1.236 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/1.077, allocations: 231 kB / 1.237 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/1.078, allocations: 20 kB / 1.237 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/1.079, allocations: 0.7131 MB / 1.237 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/1.079, allocations: 115.6 kB / 1.238 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002548/1.079, allocations: 155.2 kB / 1.238 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008563/1.08, allocations: 419.1 kB / 1.238 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/1.08, allocations: 0 / 1.238 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.532e-06/1.08, allocations: 4 kB / 1.238 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.524e-05/1.08, allocations: 0 / 1.238 GB, free: 7.176 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001116/1.082, allocations: 0.6355 MB / 1.239 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/1.082, allocations: 8.625 kB / 1.239 GB, free: 6.484 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004447/1.082, allocations: 67.53 kB / 1.239 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/1.083, allocations: 306.1 kB / 1.239 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/1.083, allocations: 20.44 kB / 1.239 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/1.083, allocations: 20 kB / 1.239 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005366/1.083, allocations: 304.5 kB / 1.239 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/1.083, allocations: 0 / 1.239 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/1.083, allocations: 15.94 kB / 1.239 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/1.083, allocations: 4 kB / 1.239 GB, free: 5.688 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/1.084, allocations: 183.5 kB / 1.24 GB, free: 5.508 MB / 0.9512 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.002047/1.086, allocations: 1.702 MB / 1.241 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/1.086, allocations: 84.64 kB / 1.241 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/1.086, allocations: 77.42 kB / 1.241 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003105/1.086, allocations: 190.1 kB / 1.242 GB, free: 3.297 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/1.087, allocations: 38.5 kB / 1.242 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/1.087, allocations: 0 / 1.242 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0007631/1.087, allocations: 221.2 kB / 1.242 GB, free: 3.027 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/1.087, allocations: 51.41 kB / 1.242 GB, free: 2.965 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/1.088, allocations: 332.4 kB / 1.242 GB, free: 2.629 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/1.088, allocations: 25.7 kB / 1.242 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/1.088, allocations: 195.8 kB / 1.242 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/1.088, allocations: 39.45 kB / 1.242 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.347e-05/1.088, allocations: 53.64 kB / 1.242 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.088, allocations: 334.8 kB / 1.243 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/1.088, allocations: 60.81 kB / 1.243 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/1.089, allocations: 197.1 kB / 1.243 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003714/1.089, allocations: 237.4 kB / 1.243 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.089, allocations: 4 kB / 1.243 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005002/1.09, allocations: 253.2 kB / 1.244 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/1.09, allocations: 8.031 kB / 1.244 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/1.09, allocations: 4 kB / 1.244 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/1.09, allocations: 8 kB / 1.244 GB, free: 1.098 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/1.09, allocations: 43.91 kB / 1.244 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/1.09, allocations: 8 kB / 1.244 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/1.09, allocations: 39.67 kB / 1.244 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/1.09, allocations: 15.98 kB / 1.244 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002397/1.091, allocations: 175.9 kB / 1.244 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003145/1.091, allocations: 198.8 kB / 1.244 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000357/1.091, allocations: 237.6 kB / 1.244 GB, free: 288 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.944e-06/1.091, allocations: 0 / 1.244 GB, free: 288 kB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004793/1.092, allocations: 249.3 kB / 1.244 GB, free: 32 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/1.092, allocations: 11.94 kB / 1.244 GB, free: 20 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/1.092, allocations: 0 / 1.244 GB, free: 20 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.995e-06/1.092, allocations: 11.94 kB / 1.244 GB, free: 8 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/1.092, allocations: 43.92 kB / 1.245 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/1.092, allocations: 11.98 kB / 1.245 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/1.092, allocations: 31.83 kB / 1.245 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/1.092, allocations: 8 kB / 1.245 GB, free: 15.91 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (23): * Single equations (assignments): 23 * 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.000136/1.092, allocations: 200.3 kB / 1.245 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.808e-05/1.092, allocations: 31.56 kB / 1.245 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003997/1.093, allocations: 168.3 kB / 1.245 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/1.093, allocations: 0 / 1.245 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.093, allocations: 4 kB / 1.245 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/1.093, allocations: 0 / 1.245 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009585/1.094, allocations: 0.6017 MB / 1.246 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.094, allocations: 8.031 kB / 1.246 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/1.094, allocations: 31.92 kB / 1.246 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/1.094, allocations: 3.984 kB / 1.246 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/1.094, allocations: 4 kB / 1.246 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/1.094, allocations: 7.938 kB / 1.246 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.094, allocations: 0 / 1.246 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004986/1.095, allocations: 301.5 kB / 1.246 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/1.095, allocations: 116.9 kB / 1.246 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/1.095, allocations: 10.23 kB / 1.246 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/1.095, allocations: 19.92 kB / 1.246 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/1.095, allocations: 19.91 kB / 1.246 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/1.095, allocations: 4 kB / 1.246 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002243/1.095, allocations: 227 kB / 1.246 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.482e-06/1.095, allocations: 0 / 1.246 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0006213/1.096, allocations: 135.8 kB / 1.246 GB, free: 13.9 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 simulation (11): * Single equations (assignments): 11 * 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.0004518/1.096, allocations: 163.6 kB / 1.247 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006074/1.097, allocations: 252.8 kB / 1.247 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.097, allocations: 0 / 1.247 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/1.097, allocations: 63.89 kB / 1.247 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/1.098, allocations: 123.3 kB / 1.247 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/1.1, allocations: 0.618 MB / 1.248 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/1.1, allocations: 0.7795 MB / 1.248 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.215e-05/1.1, allocations: 23.44 kB / 1.248 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of SimCode: time 6.02e-07/1.1, allocations: 0 / 1.248 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of Templates: time 0.01035/1.111, allocations: 4.453 MB / 1.253 GB, free: 7.406 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Pressure.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Pressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches