Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007503/0.007503, allocations: 101 kB / 15.73 MB, free: 6.055 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.001876/0.001877, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.484/2.484, allocations: 437.1 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 67.89 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8003/0.8022, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1826/0.9848, allocations: 161.6 MB / 1.324 GB, free: 1.555 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00319/0.9881, allocations: 1.753 MB / 1.326 GB, free: 15.79 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.9884, allocations: 15.77 kB / 1.326 GB, free: 15.78 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.9891, allocations: 162.9 kB / 1.326 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001389/0.9905, allocations: 0.5211 MB / 1.326 GB, free: 15.1 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.9917, allocations: 404.3 kB / 1.327 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.002778/0.9945, allocations: 2.524 MB / 1.329 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.9958, allocations: 0.932 MB / 1.33 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.9976, allocations: 1.024 MB / 1.331 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.9986, allocations: 0.7117 MB / 1.332 GB, free: 9.492 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.9988, allocations: 56 kB / 1.332 GB, free: 9.438 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/1, allocations: 0.7367 MB / 1.333 GB, free: 8.699 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003385/1.001, allocations: 306.9 kB / 1.333 GB, free: 8.398 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0006838/1.001, allocations: 0.544 MB / 1.333 GB, free: 7.852 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001888/1.003, allocations: 1.406 MB / 1.335 GB, free: 6.441 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/1.003, allocations: 0 / 1.335 GB, free: 6.441 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/1.003, allocations: 4 kB / 1.335 GB, free: 6.438 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.74e-05/1.003, allocations: 0 / 1.335 GB, free: 6.438 MB / 1.061 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.002433/1.006, allocations: 1.485 MB / 1.336 GB, free: 4.887 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.006, allocations: 12.92 kB / 1.336 GB, free: 4.875 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/1.006, allocations: 94.52 kB / 1.336 GB, free: 4.773 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/1.007, allocations: 191.1 kB / 1.337 GB, free: 4.586 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/1.008, allocations: 0.8539 MB / 1.337 GB, free: 3.676 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/1.008, allocations: 52.94 kB / 1.337 GB, free: 3.625 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.517e-05/1.008, allocations: 56 kB / 1.337 GB, free: 3.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/1.009, allocations: 0.7926 MB / 1.338 GB, free: 2.703 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/1.009, allocations: 4 kB / 1.338 GB, free: 2.699 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/1.009, allocations: 20 kB / 1.338 GB, free: 2.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/1.009, allocations: 16 kB / 1.338 GB, free: 2.664 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009255/1.01, allocations: 0.5383 MB / 1.339 GB, free: 2.125 MB / 1.061 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.004253/1.015, allocations: 4.603 MB / 1.343 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000725/1.015, allocations: 410.9 kB / 1.344 GB, free: 12.73 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000396/1.016, allocations: 248.7 kB / 1.344 GB, free: 12.48 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/1.016, allocations: 198.2 kB / 1.344 GB, free: 12.25 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005114/1.017, allocations: 290.1 kB / 1.344 GB, free: 11.95 MB / 1.076 GB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/1.017, allocations: 0 / 1.344 GB, free: 11.95 MB / 1.076 GB Notification: Performance of matching and sorting (n=31): time 0.001404/1.018, allocations: 0.6377 MB / 1.345 GB, free: 11.31 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/1.018, allocations: 81.11 kB / 1.345 GB, free: 11.21 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/1.02, allocations: 1.118 MB / 1.346 GB, free: 10.07 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/1.02, allocations: 33.7 kB / 1.346 GB, free: 10.04 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004491/1.02, allocations: 496.8 kB / 1.347 GB, free: 9.543 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/1.02, allocations: 119 kB / 1.347 GB, free: 9.426 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/1.02, allocations: 106.1 kB / 1.347 GB, free: 9.316 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001428/1.02, allocations: 329.9 kB / 1.347 GB, free: 8.988 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/1.021, allocations: 218.3 kB / 1.347 GB, free: 8.77 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000643/1.022, allocations: 0.5291 MB / 1.348 GB, free: 8.109 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009045/1.022, allocations: 0.6277 MB / 1.349 GB, free: 7.402 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/1.022, allocations: 4 kB / 1.349 GB, free: 7.398 MB / 1.076 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001262/1.024, allocations: 0.7283 MB / 1.349 GB, free: 6.656 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/1.024, allocations: 34.36 kB / 1.349 GB, free: 6.617 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.024, allocations: 4.219 kB / 1.349 GB, free: 6.613 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.097e-05/1.024, allocations: 12 kB / 1.349 GB, free: 6.602 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/1.024, allocations: 115.7 kB / 1.349 GB, free: 6.488 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/1.024, allocations: 11.94 kB / 1.349 GB, free: 6.477 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/1.025, allocations: 71.62 kB / 1.35 GB, free: 6.406 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/1.025, allocations: 27.98 kB / 1.35 GB, free: 6.379 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007079/1.026, allocations: 0.5044 MB / 1.35 GB, free: 5.871 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006056/1.026, allocations: 493.9 kB / 1.351 GB, free: 5.254 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007823/1.027, allocations: 0.5488 MB / 1.351 GB, free: 4.625 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.599e-06/1.027, allocations: 4 kB / 1.351 GB, free: 4.621 MB / 1.076 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001101/1.028, allocations: 0.6464 MB / 1.352 GB, free: 3.961 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/1.028, allocations: 40.19 kB / 1.352 GB, free: 3.918 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/1.028, allocations: 11.94 kB / 1.352 GB, free: 3.906 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/1.028, allocations: 8.656 kB / 1.352 GB, free: 3.898 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/1.029, allocations: 111.8 kB / 1.352 GB, free: 3.789 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/1.029, allocations: 7.938 kB / 1.352 GB, free: 3.781 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/1.029, allocations: 68.06 kB / 1.352 GB, free: 3.715 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/1.029, allocations: 27.98 kB / 1.352 GB, free: 3.688 MB / 1.076 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.0002022/1.029, allocations: 220 kB / 1.352 GB, free: 3.465 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/1.03, allocations: 107.3 kB / 1.352 GB, free: 3.359 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009123/1.031, allocations: 487 kB / 1.353 GB, free: 2.875 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/1.031, allocations: 4 kB / 1.353 GB, free: 2.871 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/1.031, allocations: 4 kB / 1.353 GB, free: 2.867 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/1.031, allocations: 0 / 1.353 GB, free: 2.867 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/1.033, allocations: 1.385 MB / 1.354 GB, free: 1.406 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/1.033, allocations: 4 kB / 1.354 GB, free: 1.402 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/1.033, allocations: 72.05 kB / 1.354 GB, free: 1.332 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.033, allocations: 4 kB / 1.354 GB, free: 1.328 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/1.033, allocations: 8 kB / 1.354 GB, free: 1.32 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/1.033, allocations: 0 / 1.354 GB, free: 1.32 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.033, allocations: 4 kB / 1.354 GB, free: 1.316 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/1.034, allocations: 0.6074 MB / 1.355 GB, free: 0.6719 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/1.034, allocations: 228.2 kB / 1.355 GB, free: 440 kB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/1.034, allocations: 8 kB / 1.355 GB, free: 432 kB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/1.035, allocations: 19.98 kB / 1.355 GB, free: 412 kB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/1.035, allocations: 35.95 kB / 1.355 GB, free: 376 kB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/1.035, allocations: 12 kB / 1.355 GB, free: 364 kB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001016/1.036, allocations: 0.7876 MB / 1.356 GB, free: 15.55 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.6e-07/1.036, allocations: 3.938 kB / 1.356 GB, free: 15.55 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001068/1.037, allocations: 407.5 kB / 1.356 GB, free: 15.15 MB / 1.092 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.00154/1.038, allocations: 1.226 MB / 1.357 GB, free: 13.89 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001431/1.04, allocations: 0.8229 MB / 1.358 GB, free: 13.05 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/1.04, allocations: 0 / 1.358 GB, free: 13.05 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0003753/1.04, allocations: 205 kB / 1.358 GB, free: 12.85 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/1.042, allocations: 456 kB / 1.359 GB, free: 12.4 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/1.053, allocations: 8.184 MB / 1.367 GB, free: 3.895 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/1.054, allocations: 1.184 MB / 1.368 GB, free: 2.68 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001015/1.055, allocations: 407.7 kB / 1.368 GB, free: 2.277 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/1.056, allocations: 319.3 kB / 1.369 GB, free: 1.965 MB / 1.092 GB Notification: Performance of SimCode: time 9.12e-07/1.056, allocations: 0 / 1.369 GB, free: 1.965 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05794/1.114, allocations: 26.13 MB / 1.394 GB, free: 8.137 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.689/10.8, allocations: 19.75 kB / 1.394 GB, free: 8.121 MB / 1.123 GB (rm -f Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches