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.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.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.008095/0.008095, allocations: 101.2 kB / 15.88 MB, free: 6.324 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.001838/0.001838, allocations: 193.5 kB / 16.79 MB, free: 6.254 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.394/1.394, allocations: 222.9 MB / 240.5 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.857/2.857, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 66.41 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3283, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Pressure): time 0.1891/0.5174, allocations: 167.2 MB / 1.216 GB, free: 428 kB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01023/0.5277, allocations: 7.336 MB / 1.223 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006593/0.5284, allocations: 15.81 kB / 1.223 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0009639/0.5294, allocations: 179 kB / 1.223 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001827/0.5313, allocations: 0.5447 MB / 1.224 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.5328, allocations: 372.2 kB / 1.224 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001653/0.5344, allocations: 1.044 MB / 1.225 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005042/0.5349, allocations: 222.3 kB / 1.226 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.536, allocations: 342.6 kB / 1.226 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005159/0.5365, allocations: 235 kB / 1.226 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.801e-05/0.5366, allocations: 12 kB / 1.226 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.5382, allocations: 0.7833 MB / 1.227 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.5384, allocations: 99.7 kB / 1.227 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002422/0.5386, allocations: 151.2 kB / 1.227 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008145/0.5395, allocations: 403.2 kB / 1.227 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.5395, allocations: 0 / 1.227 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5395, allocations: 0 / 1.227 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.5395, allocations: 0 / 1.227 GB, free: 4.703 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001126/0.5406, allocations: 0.6504 MB / 1.228 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.5407, allocations: 12.03 kB / 1.228 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004486/0.5411, allocations: 59.53 kB / 1.228 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005004/0.5417, allocations: 302.2 kB / 1.228 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.5417, allocations: 12.44 kB / 1.228 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.5417, allocations: 24 kB / 1.228 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.5423, allocations: 300.6 kB / 1.229 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.5423, allocations: 3.938 kB / 1.229 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.5423, allocations: 15.94 kB / 1.229 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.5424, allocations: 4 kB / 1.229 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.5428, allocations: 187.5 kB / 1.229 GB, free: 3.023 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.00193/0.5447, allocations: 1.69 MB / 1.231 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.545, allocations: 86.55 kB / 1.231 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.5452, allocations: 80.75 kB / 1.231 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002883/0.5455, allocations: 198.1 kB / 1.231 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.5455, allocations: 30.56 kB / 1.231 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.944e-06/0.5455, allocations: 4 kB / 1.231 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0007135/0.5462, allocations: 217.3 kB / 1.231 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.5463, allocations: 55.34 kB / 1.231 GB, free: 488 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.5466, allocations: 328.4 kB / 1.232 GB, free: 148 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.5467, allocations: 25.7 kB / 1.232 GB, free: 116 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.5468, allocations: 196 kB / 1.232 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.5469, allocations: 43.33 kB / 1.232 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.981e-05/0.547, allocations: 49.7 kB / 1.232 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5471, allocations: 338.8 kB / 1.232 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.5473, allocations: 60.81 kB / 1.232 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002625/0.5476, allocations: 193 kB / 1.232 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.5479, allocations: 237.4 kB / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.548, allocations: 0 / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005092/0.5485, allocations: 264.9 kB / 1.233 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.5485, allocations: 4 kB / 1.233 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.5485, allocations: 4 kB / 1.233 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.5485, allocations: 8 kB / 1.233 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.5487, allocations: 39.92 kB / 1.233 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.5487, allocations: 15.92 kB / 1.233 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.549, allocations: 40.11 kB / 1.233 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.5491, allocations: 12 kB / 1.233 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002423/0.5493, allocations: 168.1 kB / 1.233 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002403/0.5496, allocations: 198 kB / 1.233 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003636/0.5499, allocations: 237.4 kB / 1.234 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.55, allocations: 0 / 1.234 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004705/0.5504, allocations: 245 kB / 1.234 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.5505, allocations: 11.94 kB / 1.234 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.5505, allocations: 8 kB / 1.234 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/0.5505, allocations: 4 kB / 1.234 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.5507, allocations: 51.91 kB / 1.234 GB, free: 13.47 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.5507, allocations: 8.344 kB / 1.234 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.551, allocations: 39.81 kB / 1.234 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.551, allocations: 8 kB / 1.234 GB, free: 13.42 MB / 0.9981 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.0001409/0.5511, allocations: 200.1 kB / 1.234 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.977e-05/0.5512, allocations: 31.56 kB / 1.234 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004655/0.5517, allocations: 168.4 kB / 1.234 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.5517, allocations: 4 kB / 1.234 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5517, allocations: 0 / 1.234 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.5517, allocations: 0 / 1.234 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000965/0.5527, allocations: 0.6056 MB / 1.235 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5527, allocations: 3.938 kB / 1.235 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.5528, allocations: 23.98 kB / 1.235 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.5528, allocations: 4.031 kB / 1.235 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.5529, allocations: 8 kB / 1.235 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5529, allocations: 4 kB / 1.235 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5529, allocations: 4.156 kB / 1.235 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.5533, allocations: 309 kB / 1.235 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.5534, allocations: 116.7 kB / 1.235 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.5535, allocations: 8 kB / 1.235 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.5537, allocations: 11.98 kB / 1.235 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/0.5538, allocations: 23.86 kB / 1.235 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.5538, allocations: 4 kB / 1.235 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002422/0.554, allocations: 231 kB / 1.236 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.554, allocations: 0 / 1.236 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006068/0.5546, allocations: 131.8 kB / 1.236 GB, free: 11.41 MB / 0.9981 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.000462/0.5551, allocations: 159.2 kB / 1.236 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006014/0.5557, allocations: 247.5 kB / 1.236 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5557, allocations: 1.562 kB / 1.236 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.5559, allocations: 56.34 kB / 1.236 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009403/0.5568, allocations: 144.7 kB / 1.236 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009925/0.5578, allocations: 0.6224 MB / 1.237 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.5583, allocations: 0.7758 MB / 1.238 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.056e-05/0.5584, allocations: 31.42 kB / 1.238 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of SimCode: time 6.61e-07/0.5584, allocations: 0 / 1.238 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of Templates: time 0.009709/0.5681, allocations: 4.494 MB / 1.242 GB, free: 4.852 MB / 0.9981 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