Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.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: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised,fileNamePrefix="Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_ParallelDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised,fileNamePrefix="Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_ParallelDpOptimised",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.004688/0.004688, allocations: 95.39 kB / 15.73 MB, free: 6.039 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.001294/0.001294, allocations: 199 kB / 16.68 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2915, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised): time 0.7042/0.9957, allocations: 161.6 MB / 1.399 GB, free: 13.27 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.005025/1.001, allocations: 3.632 MB / 1.403 GB, free: 10.33 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/1.001, allocations: 11.81 kB / 1.403 GB, free: 10.32 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0005336/1.002, allocations: 163.4 kB / 1.403 GB, free: 10.19 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.001264/1.003, allocations: 0.5235 MB / 1.404 GB, free: 9.789 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.00114/1.004, allocations: 439.3 kB / 1.404 GB, free: 9.484 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.002732/1.007, allocations: 2.544 MB / 1.406 GB, free: 8.066 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002957/1.01, allocations: 2.412 MB / 1.409 GB, free: 6.594 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/1.012, allocations: 1.177 MB / 1.41 GB, free: 5.945 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008712/1.013, allocations: 0.6935 MB / 1.411 GB, free: 5.547 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001226/1.013, allocations: 58.34 kB / 1.411 GB, free: 5.547 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/1.015, allocations: 0.7372 MB / 1.411 GB, free: 5.156 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0003498/1.015, allocations: 313 kB / 1.412 GB, free: 4.945 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006878/1.016, allocations: 0.5498 MB / 1.412 GB, free: 4.609 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001704/1.017, allocations: 1.419 MB / 1.414 GB, free: 3.762 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/1.017, allocations: 1.062 kB / 1.414 GB, free: 3.762 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.192e-06/1.017, allocations: 0 / 1.414 GB, free: 3.762 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.478e-05/1.017, allocations: 0 / 1.414 GB, free: 3.762 MB / 1.107 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002334/1.02, allocations: 1.496 MB / 1.415 GB, free: 2.602 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/1.02, allocations: 10.81 kB / 1.415 GB, free: 2.602 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/1.02, allocations: 94.58 kB / 1.415 GB, free: 2.52 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007569/1.021, allocations: 200.4 kB / 1.415 GB, free: 2.418 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/1.022, allocations: 0.8667 MB / 1.416 GB, free: 1.781 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/1.022, allocations: 43.34 kB / 1.416 GB, free: 1.762 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/1.022, allocations: 56.91 kB / 1.416 GB, free: 1.746 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/1.023, allocations: 0.8169 MB / 1.417 GB, free: 1.164 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/1.023, allocations: 6.594 kB / 1.417 GB, free: 1.16 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/1.023, allocations: 21.31 kB / 1.417 GB, free: 1.145 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/1.023, allocations: 13.47 kB / 1.417 GB, free: 1.145 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009895/1.024, allocations: 0.5732 MB / 1.418 GB, free: 0.8594 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004058/1.029, allocations: 4.218 MB / 1.422 GB, free: 13.07 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007284/1.029, allocations: 433.1 kB / 1.422 GB, free: 12.86 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004793/1.03, allocations: 351.1 kB / 1.423 GB, free: 12.69 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003143/1.03, allocations: 200.6 kB / 1.423 GB, free: 12.48 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000515/1.031, allocations: 316.6 kB / 1.423 GB, free: 12.27 MB / 1.123 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001566/1.031, allocations: 34.62 kB / 1.423 GB, free: 12.25 MB / 1.123 GB Notification: Performance of pre-optimization done (n=33): time 1.894e-06/1.031, allocations: 0 / 1.423 GB, free: 12.25 MB / 1.123 GB Notification: Performance of matching and sorting (n=33): time 0.001415/1.032, allocations: 0.7059 MB / 1.424 GB, free: 11.89 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/1.032, allocations: 81.83 kB / 1.424 GB, free: 11.8 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/1.034, allocations: 1.155 MB / 1.425 GB, free: 11.18 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/1.034, allocations: 42.48 kB / 1.425 GB, free: 11.14 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004426/1.034, allocations: 490.9 kB / 1.426 GB, free: 10.72 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.034, allocations: 119.5 kB / 1.426 GB, free: 10.62 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/1.034, allocations: 119.8 kB / 1.426 GB, free: 10.55 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001372/1.035, allocations: 324.7 kB / 1.426 GB, free: 10.23 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/1.035, allocations: 245.9 kB / 1.426 GB, free: 10.04 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007191/1.036, allocations: 0.5381 MB / 1.427 GB, free: 9.375 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/1.037, allocations: 0.6744 MB / 1.427 GB, free: 8.621 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.037, allocations: 4 kB / 1.427 GB, free: 8.617 MB / 1.123 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001361/1.038, allocations: 0.7691 MB / 1.428 GB, free: 7.836 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/1.038, allocations: 37.69 kB / 1.428 GB, free: 7.793 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.038, allocations: 8.062 kB / 1.428 GB, free: 7.785 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/1.038, allocations: 8 kB / 1.428 GB, free: 7.777 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/1.039, allocations: 120.4 kB / 1.428 GB, free: 7.66 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.039, allocations: 8 kB / 1.428 GB, free: 7.652 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007281/1.04, allocations: 59.92 kB / 1.428 GB, free: 7.594 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/1.04, allocations: 31.92 kB / 1.428 GB, free: 7.562 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007504/1.04, allocations: 0.5166 MB / 1.429 GB, free: 7.039 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006499/1.041, allocations: 0.5069 MB / 1.429 GB, free: 6.398 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008979/1.042, allocations: 0.5999 MB / 1.43 GB, free: 5.719 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.425e-06/1.042, allocations: 0 / 1.43 GB, free: 5.719 MB / 1.123 GB Notification: Performance of matching and sorting (n=56) (initialization_lambda0): time 0.001179/1.043, allocations: 0.6933 MB / 1.431 GB, free: 5.012 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/1.043, allocations: 34.36 kB / 1.431 GB, free: 4.973 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.043, allocations: 12 kB / 1.431 GB, free: 4.961 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-06/1.043, allocations: 12 kB / 1.431 GB, free: 4.949 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/1.044, allocations: 107.8 kB / 1.431 GB, free: 4.844 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/1.044, allocations: 8 kB / 1.431 GB, free: 4.836 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007424/1.045, allocations: 76.23 kB / 1.431 GB, free: 4.762 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/1.045, allocations: 24 kB / 1.431 GB, free: 4.738 MB / 1.123 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 (55): * Single equations (assignments): 54 * 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.0001704/1.045, allocations: 217 kB / 1.431 GB, free: 4.52 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/1.045, allocations: 107.3 kB / 1.431 GB, free: 4.414 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/1.046, allocations: 0.5418 MB / 1.432 GB, free: 3.871 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/1.046, allocations: 4 kB / 1.432 GB, free: 3.867 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.046, allocations: 0 / 1.432 GB, free: 3.867 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/1.046, allocations: 7.984 kB / 1.432 GB, free: 3.859 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/1.048, allocations: 1.487 MB / 1.433 GB, free: 2.297 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/1.048, allocations: 3.938 kB / 1.433 GB, free: 2.293 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/1.049, allocations: 71.88 kB / 1.433 GB, free: 2.223 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/1.049, allocations: 0 / 1.433 GB, free: 2.223 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/1.049, allocations: 12 kB / 1.433 GB, free: 2.211 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/1.049, allocations: 3.984 kB / 1.433 GB, free: 2.207 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.049, allocations: 7.938 kB / 1.433 GB, free: 2.199 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009773/1.05, allocations: 0.6633 MB / 1.434 GB, free: 1.5 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/1.05, allocations: 228.3 kB / 1.434 GB, free: 1.258 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/1.05, allocations: 8 kB / 1.434 GB, free: 1.25 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/1.051, allocations: 39.94 kB / 1.434 GB, free: 1.211 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/1.051, allocations: 39.84 kB / 1.434 GB, free: 1.172 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/1.051, allocations: 15.98 kB / 1.434 GB, free: 1.156 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001053/1.052, allocations: 0.8198 MB / 1.435 GB, free: 336 kB / 1.123 GB Notification: Performance of sort global known variables: time 1.2e-07/1.052, allocations: 0 / 1.435 GB, free: 336 kB / 1.123 GB Notification: Performance of remove unused functions: time 0.001089/1.053, allocations: 427.6 kB / 1.436 GB, free: 15.91 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 (33): * Single equations (assignments): 31 * 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.00161/1.055, allocations: 1.299 MB / 1.437 GB, free: 14.57 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.001515/1.056, allocations: 0.896 MB / 1.438 GB, free: 13.65 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.056, allocations: 0 / 1.438 GB, free: 13.65 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0004312/1.057, allocations: 231.7 kB / 1.438 GB, free: 13.43 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/1.059, allocations: 0.4992 MB / 1.438 GB, free: 12.93 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/1.071, allocations: 8.548 MB / 1.447 GB, free: 4.051 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000814/1.071, allocations: 1.186 MB / 1.448 GB, free: 2.836 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001067/1.072, allocations: 428 kB / 1.448 GB, free: 2.414 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004894/1.073, allocations: 343.3 kB / 1.449 GB, free: 2.078 MB / 1.139 GB Notification: Performance of SimCode: time 5.01e-07/1.073, allocations: 0 / 1.449 GB, free: 2.078 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1791/1.252, allocations: 28.01 MB / 1.476 GB, free: 6.441 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.892/11.14, allocations: 11.95 kB / 1.476 GB, free: 6.43 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_ParallelDpOptimised.fmu > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_ParallelDpOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.ParallelDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches