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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.006963/0.006963, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.001611/0.001611, allocations: 191.9 kB / 16.67 MB, free: 5.938 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.541/2.541, allocations: 472.6 MB / 0.7453 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.91 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.842/0.8432, allocations: 159.9 MB / 1.226 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1717/1.015, allocations: 161.6 MB / 1.383 GB, free: 11.34 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.003026/1.018, allocations: 1.759 MB / 1.385 GB, free: 9.574 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000283/1.018, allocations: 11.94 kB / 1.385 GB, free: 9.562 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0005612/1.019, allocations: 166.9 kB / 1.385 GB, free: 9.398 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.001171/1.02, allocations: 0.525 MB / 1.386 GB, free: 8.871 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.001042/1.021, allocations: 394 kB / 1.386 GB, free: 8.488 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002693/1.024, allocations: 2.528 MB / 1.389 GB, free: 5.953 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/1.025, allocations: 0.942 MB / 1.39 GB, free: 5.004 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/1.027, allocations: 1.024 MB / 1.391 GB, free: 3.977 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008123/1.027, allocations: 0.7078 MB / 1.391 GB, free: 3.266 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001097/1.027, allocations: 56 kB / 1.391 GB, free: 3.211 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/1.029, allocations: 0.7367 MB / 1.392 GB, free: 2.473 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0002869/1.029, allocations: 310.9 kB / 1.392 GB, free: 2.168 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0005613/1.03, allocations: 0.544 MB / 1.393 GB, free: 1.621 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001494/1.031, allocations: 1.404 MB / 1.394 GB, free: 220 kB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.031, allocations: 0 / 1.394 GB, free: 220 kB / 1.107 GB Notification: Performance of FrontEnd: time 2.134e-06/1.031, allocations: 0 / 1.394 GB, free: 220 kB / 1.107 GB Notification: Performance of Transformations before backend: time 1.963e-05/1.031, allocations: 0 / 1.394 GB, free: 220 kB / 1.107 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.002153/1.033, allocations: 1.485 MB / 1.396 GB, free: 14.66 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/1.033, allocations: 8.031 kB / 1.396 GB, free: 14.65 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007394/1.034, allocations: 191.1 kB / 1.396 GB, free: 14.46 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/1.035, allocations: 0.8617 MB / 1.397 GB, free: 13.55 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/1.035, allocations: 41 kB / 1.397 GB, free: 13.51 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.929e-05/1.036, allocations: 63.94 kB / 1.397 GB, free: 13.45 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/1.037, allocations: 0.7926 MB / 1.398 GB, free: 12.58 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/1.037, allocations: 3.938 kB / 1.398 GB, free: 12.57 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/1.037, allocations: 27.98 kB / 1.398 GB, free: 12.55 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/1.037, allocations: 15.94 kB / 1.398 GB, free: 12.53 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000878/1.038, allocations: 0.5345 MB / 1.398 GB, free: 12 MB / 1.123 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.003654/1.041, allocations: 4.603 MB / 1.403 GB, free: 7.008 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007055/1.042, allocations: 410.3 kB / 1.403 GB, free: 6.598 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/1.042, allocations: 252 kB / 1.403 GB, free: 6.352 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002725/1.043, allocations: 186.2 kB / 1.403 GB, free: 6.133 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004719/1.043, allocations: 301 kB / 1.404 GB, free: 5.82 MB / 1.123 GB Notification: Performance of pre-optimization done (n=31): time 1.694e-06/1.043, allocations: 0 / 1.404 GB, free: 5.82 MB / 1.123 GB Notification: Performance of matching and sorting (n=31): time 0.001275/1.044, allocations: 0.6306 MB / 1.404 GB, free: 5.184 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/1.045, allocations: 89.09 kB / 1.404 GB, free: 5.078 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/1.046, allocations: 1.11 MB / 1.406 GB, free: 3.949 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/1.046, allocations: 41.7 kB / 1.406 GB, free: 3.902 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.000377/1.046, allocations: 492.9 kB / 1.406 GB, free: 3.414 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/1.046, allocations: 115 kB / 1.406 GB, free: 3.301 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/1.046, allocations: 110.1 kB / 1.406 GB, free: 3.188 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001073/1.047, allocations: 329.9 kB / 1.407 GB, free: 2.859 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/1.047, allocations: 214.4 kB / 1.407 GB, free: 2.645 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005958/1.048, allocations: 0.5174 MB / 1.407 GB, free: 1.992 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008576/1.048, allocations: 0.6348 MB / 1.408 GB, free: 1.277 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/1.048, allocations: 4 kB / 1.408 GB, free: 1.273 MB / 1.123 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001155/1.05, allocations: 0.7286 MB / 1.409 GB, free: 0.5312 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/1.05, allocations: 37.7 kB / 1.409 GB, free: 500 kB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/1.05, allocations: 11.98 kB / 1.409 GB, free: 488 kB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/1.05, allocations: 8 kB / 1.409 GB, free: 480 kB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/1.05, allocations: 95.88 kB / 1.409 GB, free: 384 kB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/1.05, allocations: 16.33 kB / 1.409 GB, free: 368 kB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/1.051, allocations: 75.64 kB / 1.409 GB, free: 292 kB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.834e-05/1.051, allocations: 27.98 kB / 1.409 GB, free: 264 kB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006429/1.051, allocations: 0.4966 MB / 1.409 GB, free: 15.75 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000526/1.052, allocations: 493.9 kB / 1.41 GB, free: 15.14 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007104/1.053, allocations: 0.5528 MB / 1.41 GB, free: 14.51 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.069e-06/1.053, allocations: 4.203 kB / 1.41 GB, free: 14.5 MB / 1.139 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.0009996/1.054, allocations: 0.6624 MB / 1.411 GB, free: 13.83 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/1.054, allocations: 37.64 kB / 1.411 GB, free: 13.79 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.054, allocations: 4 kB / 1.411 GB, free: 13.78 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.655e-06/1.054, allocations: 8 kB / 1.411 GB, free: 13.77 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/1.054, allocations: 99.88 kB / 1.411 GB, free: 13.68 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/1.054, allocations: 15.88 kB / 1.411 GB, free: 13.66 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005528/1.055, allocations: 80.14 kB / 1.411 GB, free: 13.58 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/1.055, allocations: 20 kB / 1.411 GB, free: 13.56 MB / 1.139 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.0002096/1.055, allocations: 216.1 kB / 1.412 GB, free: 13.34 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/1.055, allocations: 99.34 kB / 1.412 GB, free: 13.25 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008667/1.056, allocations: 499 kB / 1.412 GB, free: 12.75 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.056, allocations: 4 kB / 1.412 GB, free: 12.75 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/1.056, allocations: 4 kB / 1.412 GB, free: 12.75 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/1.056, allocations: 0 / 1.412 GB, free: 12.75 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/1.058, allocations: 1.386 MB / 1.413 GB, free: 11.29 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/1.058, allocations: 0 / 1.413 GB, free: 11.29 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/1.058, allocations: 67.89 kB / 1.414 GB, free: 11.22 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/1.058, allocations: 7.938 kB / 1.414 GB, free: 11.21 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/1.058, allocations: 8 kB / 1.414 GB, free: 11.2 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/1.058, allocations: 4 kB / 1.414 GB, free: 11.2 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.058, allocations: 3.984 kB / 1.414 GB, free: 11.2 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008078/1.059, allocations: 0.6147 MB / 1.414 GB, free: 10.54 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/1.059, allocations: 216.6 kB / 1.414 GB, free: 10.31 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/1.059, allocations: 8 kB / 1.414 GB, free: 10.3 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003818/1.06, allocations: 23.97 kB / 1.414 GB, free: 10.28 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/1.06, allocations: 39.75 kB / 1.414 GB, free: 10.24 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/1.06, allocations: 8 kB / 1.414 GB, free: 10.23 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0009137/1.061, allocations: 0.7914 MB / 1.415 GB, free: 9.434 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.8e-07/1.061, allocations: 8 kB / 1.415 GB, free: 9.426 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0009982/1.062, allocations: 407.5 kB / 1.416 GB, free: 9.027 MB / 1.139 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.0003911/1.062, allocations: 176.3 kB / 1.416 GB, free: 8.859 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.001289/1.063, allocations: 0.8131 MB / 1.417 GB, free: 8.023 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.063, allocations: 0 / 1.417 GB, free: 8.023 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0003455/1.064, allocations: 200.2 kB / 1.417 GB, free: 7.828 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/1.066, allocations: 467.6 kB / 1.417 GB, free: 7.367 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/1.068, allocations: 1.753 MB / 1.419 GB, free: 5.555 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007299/1.069, allocations: 1.18 MB / 1.42 GB, free: 4.344 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0008399/1.07, allocations: 407.7 kB / 1.42 GB, free: 3.941 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/1.07, allocations: 71.42 kB / 1.42 GB, free: 3.871 MB / 1.139 GB Notification: Performance of SimCode: time 5.61e-07/1.07, allocations: 4 kB / 1.421 GB, free: 3.867 MB / 1.139 GB Notification: Performance of Templates: time 0.02575/1.096, allocations: 17.18 MB / 1.437 GB, free: 2.879 MB / 1.154 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