Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.008259/0.008259, allocations: 170 kB / 16.27 MB, free: 6.652 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.376/1.376, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003961, allocations: 8 kB / 0.9027 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2806, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1689/0.4496, allocations: 157.3 MB / 1.212 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003639/0.4533, allocations: 1.741 MB / 1.214 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002631/0.4536, allocations: 15.88 kB / 1.214 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005429/0.4541, allocations: 139.2 kB / 1.214 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.4555, allocations: 0.493 MB / 1.215 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.4565, allocations: 346.2 kB / 1.215 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003421/0.4599, allocations: 3.483 MB / 1.218 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.461, allocations: 0.7465 MB / 1.219 GB, free: 112 kB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.4627, allocations: 0.8908 MB / 1.22 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000925/0.4637, allocations: 0.7233 MB / 1.221 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.579e-05/0.4638, allocations: 32 kB / 1.221 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.4653, allocations: 0.799 MB / 1.221 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002983/0.4656, allocations: 286.8 kB / 1.222 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006647/0.4662, allocations: 0.5301 MB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.4678, allocations: 1.366 MB / 1.224 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.4678, allocations: 4 kB / 1.224 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4678, allocations: 0 / 1.224 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.4678, allocations: 0 / 1.224 GB, free: 11.46 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002057/0.4699, allocations: 1.256 MB / 1.225 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4699, allocations: 15.97 kB / 1.225 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007325/0.4707, allocations: 190.4 kB / 1.225 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.4718, allocations: 0.7906 MB / 1.226 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.4719, allocations: 45 kB / 1.226 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.472, allocations: 60 kB / 1.226 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.4732, allocations: 0.8004 MB / 1.227 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4732, allocations: 3.938 kB / 1.227 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.4733, allocations: 24 kB / 1.227 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.4733, allocations: 16 kB / 1.227 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.4742, allocations: 0.55 MB / 1.227 GB, free: 7.516 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.004079/0.4783, allocations: 4.602 MB / 1.232 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007315/0.4791, allocations: 422.2 kB / 1.232 GB, free: 2.105 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003997/0.4795, allocations: 254.2 kB / 1.232 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002975/0.4798, allocations: 194.2 kB / 1.233 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.4803, allocations: 289.6 kB / 1.233 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.4803, allocations: 0 / 1.233 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001371/0.4817, allocations: 0.6583 MB / 1.233 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.4817, allocations: 81.11 kB / 1.234 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.4831, allocations: 1.114 MB / 1.235 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.4831, allocations: 33.7 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000409/0.4835, allocations: 0.4921 MB / 1.235 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-05/0.4836, allocations: 110.5 kB / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.4837, allocations: 41.69 kB / 1.235 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4838, allocations: 333.9 kB / 1.236 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.4842, allocations: 212.7 kB / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006181/0.4849, allocations: 0.5175 MB / 1.236 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008971/0.4858, allocations: 0.6384 MB / 1.237 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.4858, allocations: 0 / 1.237 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001184/0.487, allocations: 0.7281 MB / 1.238 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.4872, allocations: 275.3 kB / 1.238 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4872, allocations: 11.94 kB / 1.238 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.4872, allocations: 11.94 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/0.4877, allocations: 115.8 kB / 1.238 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.4877, allocations: 11.94 kB / 1.238 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006983/0.4884, allocations: 98.62 kB / 1.238 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.251e-05/0.4885, allocations: 24 kB / 1.238 GB, free: 11.47 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.724e-06/0.4885, allocations: 4 kB / 1.238 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008887/0.4894, allocations: 0.5476 MB / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.4894, allocations: 8.656 kB / 1.239 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.4894, allocations: 8 kB / 1.239 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003573/0.4898, allocations: 111.8 kB / 1.239 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.4898, allocations: 8 kB / 1.239 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005914/0.4904, allocations: 91.53 kB / 1.239 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.4904, allocations: 20 kB / 1.239 GB, free: 10.67 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * 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.0005075/0.491, allocations: 476.6 kB / 1.239 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.4911, allocations: 102.8 kB / 1.239 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009304/0.492, allocations: 499 kB / 1.24 GB, free: 9.598 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.492, allocations: 7.984 kB / 1.24 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4921, allocations: 0 / 1.24 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.4921, allocations: 8 kB / 1.24 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.4941, allocations: 1.4 MB / 1.241 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4941, allocations: 4 kB / 1.241 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.4943, allocations: 67.89 kB / 1.241 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.4944, allocations: 7.938 kB / 1.241 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.4944, allocations: 8 kB / 1.241 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.4944, allocations: 8.219 kB / 1.241 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4944, allocations: 7.938 kB / 1.241 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.4952, allocations: 0.6023 MB / 1.242 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003058/0.4956, allocations: 223.7 kB / 1.242 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.775e-05/0.4957, allocations: 8 kB / 1.242 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.4961, allocations: 51.86 kB / 1.242 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.4962, allocations: 31.91 kB / 1.242 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.4963, allocations: 11.98 kB / 1.242 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009843/0.4973, allocations: 0.7914 MB / 1.243 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4973, allocations: 0 / 1.243 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001114/0.4984, allocations: 407.5 kB / 1.243 GB, free: 5.824 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: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004203/0.4988, allocations: 172.9 kB / 1.244 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001376/0.5002, allocations: 0.833 MB / 1.244 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5002, allocations: 0 / 1.244 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003746/0.5006, allocations: 205.8 kB / 1.245 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/0.5029, allocations: 458.1 kB / 1.245 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.5061, allocations: 2.054 MB / 1.247 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008999/0.507, allocations: 1.173 MB / 1.248 GB, free: 0.8398 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001209/0.5082, allocations: 427.6 kB / 1.249 GB, free: 428 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.5084, allocations: 75.42 kB / 1.249 GB, free: 352 kB / 0.9981 GB Notification: Performance of SimCode: time 5.71e-07/0.5084, allocations: 0 / 1.249 GB, free: 352 kB / 0.9981 GB Notification: Performance of Templates: time 0.5736/1.082, allocations: 16.42 MB / 1.265 GB, free: 187.7 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches