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.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.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.001071/0.001071, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009304/0.009304, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.427/1.427, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.721/2.721, allocations: 462.7 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 11 kB / 0.9028 GB, free: 36.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3091, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1725/0.4816, allocations: 157.3 MB / 1.212 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00304/0.4847, allocations: 1.746 MB / 1.214 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/0.485, allocations: 7.938 kB / 1.214 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005239/0.4856, allocations: 135.2 kB / 1.214 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.4869, allocations: 0.498 MB / 1.215 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.488, allocations: 361.7 kB / 1.215 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003489/0.4915, allocations: 3.467 MB / 1.218 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.4926, allocations: 0.7543 MB / 1.219 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001659/0.4943, allocations: 0.8946 MB / 1.22 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.4955, allocations: 0.7194 MB / 1.221 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.4956, allocations: 36 kB / 1.221 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.4971, allocations: 0.799 MB / 1.221 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003325/0.4975, allocations: 282.9 kB / 1.222 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007278/0.4982, allocations: 0.5301 MB / 1.222 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.4997, allocations: 1.362 MB / 1.224 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4997, allocations: 4 kB / 1.224 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4997, allocations: 0 / 1.224 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.4997, allocations: 0 / 1.224 GB, free: 11.96 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.001933/0.5017, allocations: 1.26 MB / 1.225 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.5017, allocations: 8.031 kB / 1.225 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007147/0.5024, allocations: 190.4 kB / 1.225 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.5036, allocations: 0.7945 MB / 1.226 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.5036, allocations: 41 kB / 1.226 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.17e-05/0.5037, allocations: 64 kB / 1.226 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.5049, allocations: 0.8003 MB / 1.227 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.5049, allocations: 0 / 1.227 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.026e-05/0.505, allocations: 20 kB / 1.227 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.505, allocations: 12 kB / 1.227 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009256/0.5059, allocations: 0.5501 MB / 1.227 GB, free: 8.031 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.003781/0.5097, allocations: 4.607 MB / 1.232 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.5104, allocations: 430.2 kB / 1.232 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003924/0.5109, allocations: 248.7 kB / 1.232 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002727/0.5111, allocations: 198.2 kB / 1.233 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004924/0.5116, allocations: 293 kB / 1.233 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 3.276e-06/0.5117, allocations: 3.984 kB / 1.233 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001324/0.513, allocations: 0.646 MB / 1.233 GB, free: 1.172 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.513, allocations: 93.03 kB / 1.234 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.5143, allocations: 1.114 MB / 1.235 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.5143, allocations: 33.7 kB / 1.235 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003733/0.5147, allocations: 492 kB / 1.235 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.605e-05/0.5148, allocations: 114.5 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.211e-05/0.5149, allocations: 41.7 kB / 1.235 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5151, allocations: 329.9 kB / 1.236 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.5154, allocations: 212.7 kB / 1.236 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.5161, allocations: 0.5213 MB / 1.236 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008673/0.517, allocations: 0.6345 MB / 1.237 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.517, allocations: 4 kB / 1.237 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001125/0.5181, allocations: 0.7302 MB / 1.238 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001925/0.5183, allocations: 283 kB / 1.238 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.5183, allocations: 4 kB / 1.238 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.5184, allocations: 12.16 kB / 1.238 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.5188, allocations: 111.8 kB / 1.238 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.5188, allocations: 11.94 kB / 1.238 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007045/0.5195, allocations: 99.47 kB / 1.238 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.572e-05/0.5196, allocations: 27.98 kB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.5196, allocations: 5.406 kB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009204/0.5206, allocations: 0.5437 MB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.5206, allocations: 4 kB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.5206, allocations: 8 kB / 1.239 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.521, allocations: 112.4 kB / 1.239 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.521, allocations: 8 kB / 1.239 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.5216, allocations: 91.47 kB / 1.239 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.5217, allocations: 27.98 kB / 1.239 GB, free: 11.16 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.0005259/0.5222, allocations: 464.7 kB / 1.239 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.5223, allocations: 94.78 kB / 1.24 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008988/0.5232, allocations: 0.499 MB / 1.24 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.5233, allocations: 4.375 kB / 1.24 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5233, allocations: 0 / 1.24 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5233, allocations: 4 kB / 1.24 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.5252, allocations: 1.399 MB / 1.241 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5253, allocations: 0 / 1.241 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.5255, allocations: 71.89 kB / 1.241 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/0.5255, allocations: 11.92 kB / 1.241 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.5256, allocations: 11.98 kB / 1.241 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5256, allocations: 3.938 kB / 1.241 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5256, allocations: 4 kB / 1.241 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007952/0.5264, allocations: 0.6186 MB / 1.242 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.5267, allocations: 223.7 kB / 1.242 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.5268, allocations: 11.98 kB / 1.242 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004616/0.5272, allocations: 47.86 kB / 1.242 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.5273, allocations: 27.97 kB / 1.242 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.5274, allocations: 12 kB / 1.242 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001015/0.5284, allocations: 0.7875 MB / 1.243 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5284, allocations: 4 kB / 1.243 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001125/0.5295, allocations: 407.5 kB / 1.244 GB, free: 6.324 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.0004319/0.53, allocations: 176.8 kB / 1.244 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001421/0.5314, allocations: 0.8289 MB / 1.245 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5314, allocations: 0 / 1.245 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.5318, allocations: 203 kB / 1.245 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.5341, allocations: 469.1 kB / 1.245 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.5369, allocations: 2.058 MB / 1.247 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007056/0.5376, allocations: 1.181 MB / 1.248 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001034/0.5386, allocations: 419.6 kB / 1.249 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.5388, allocations: 75.42 kB / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.5388, allocations: 0 / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of Templates: time 0.6187/1.158, allocations: 16.39 MB / 1.265 GB, free: 31.12 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