Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_9_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.0009674/0.0009674, allocations: 98.03 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.007649/0.007649, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.234/1.234, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.102/2.102, allocations: 390.9 MB / 0.6664 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004294, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.639/0.6394, allocations: 142.4 MB / 0.9552 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1824/0.8218, allocations: 157.3 MB / 1.109 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002971/0.8248, allocations: 1.757 MB / 1.11 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.8252, allocations: 7.938 kB / 1.111 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0004866/0.8257, allocations: 135.2 kB / 1.111 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.8269, allocations: 498 kB / 1.111 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.8279, allocations: 360.5 kB / 1.111 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003329/0.8312, allocations: 3.475 MB / 1.115 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.8324, allocations: 0.7543 MB / 1.116 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.834, allocations: 0.8986 MB / 1.116 GB, free: 9.547 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.835, allocations: 0.7194 MB / 1.117 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.8351, allocations: 32 kB / 1.117 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.8365, allocations: 0.8029 MB / 1.118 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.8368, allocations: 278.9 kB / 1.118 GB, free: 7.715 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006485/0.8375, allocations: 0.53 MB / 1.119 GB, free: 7.176 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.839, allocations: 1.366 MB / 1.12 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.839, allocations: 0 / 1.12 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.843e-06/0.839, allocations: 0 / 1.12 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.806e-05/0.839, allocations: 0 / 1.12 GB, free: 5.805 MB / 0.8731 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.002163/0.8412, allocations: 1.256 MB / 1.121 GB, free: 4.488 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.8413, allocations: 12.03 kB / 1.121 GB, free: 4.477 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/0.8414, allocations: 94.52 kB / 1.121 GB, free: 4.375 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000812/0.8422, allocations: 182.5 kB / 1.122 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.8435, allocations: 0.8138 MB / 1.122 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.071e-05/0.8435, allocations: 41 kB / 1.122 GB, free: 3.281 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.545e-05/0.8436, allocations: 56 kB / 1.122 GB, free: 3.227 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.8448, allocations: 0.8005 MB / 1.123 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.8448, allocations: 0 / 1.123 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.397e-05/0.8449, allocations: 24 kB / 1.123 GB, free: 2.328 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.8449, allocations: 12 kB / 1.123 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009681/0.8459, allocations: 0.554 MB / 1.124 GB, free: 1.762 MB / 0.8731 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.004105/0.85, allocations: 4.595 MB / 1.128 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007364/0.8507, allocations: 434.2 kB / 1.129 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/0.8511, allocations: 248.7 kB / 1.129 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003026/0.8515, allocations: 194.2 kB / 1.129 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005089/0.852, allocations: 301.6 kB / 1.129 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.852, allocations: 0 / 1.129 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001373/0.8534, allocations: 0.6349 MB / 1.13 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.8534, allocations: 89.03 kB / 1.13 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.8547, allocations: 1.118 MB / 1.131 GB, free: 9.684 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.8548, allocations: 41.7 kB / 1.131 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004002/0.8552, allocations: 496 kB / 1.132 GB, free: 9.145 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.8553, allocations: 106.5 kB / 1.132 GB, free: 9.039 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.8554, allocations: 45.7 kB / 1.132 GB, free: 8.988 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.8555, allocations: 326 kB / 1.132 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003752/0.8559, allocations: 204.7 kB / 1.132 GB, free: 8.461 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005973/0.8565, allocations: 0.5369 MB / 1.133 GB, free: 7.793 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009774/0.8575, allocations: 0.6426 MB / 1.134 GB, free: 7.07 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.8575, allocations: 4 kB / 1.134 GB, free: 7.066 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001171/0.8587, allocations: 0.7301 MB / 1.134 GB, free: 6.324 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001907/0.8589, allocations: 274.7 kB / 1.135 GB, free: 5.973 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.8589, allocations: 8 kB / 1.135 GB, free: 5.965 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.8589, allocations: 11.94 kB / 1.135 GB, free: 5.953 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.8593, allocations: 111.8 kB / 1.135 GB, free: 5.844 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.8594, allocations: 8 kB / 1.135 GB, free: 5.836 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006856/0.86, allocations: 96.59 kB / 1.135 GB, free: 5.742 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.8601, allocations: 27.98 kB / 1.135 GB, free: 5.715 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.8601, allocations: 5.719 kB / 1.135 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009175/0.861, allocations: 0.544 MB / 1.135 GB, free: 5.16 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.8611, allocations: 8 kB / 1.135 GB, free: 5.152 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.594e-06/0.8611, allocations: 8 kB / 1.135 GB, free: 5.145 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003692/0.8615, allocations: 103.8 kB / 1.135 GB, free: 5.043 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/0.8615, allocations: 8.406 kB / 1.135 GB, free: 5.035 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005997/0.8621, allocations: 99.58 kB / 1.136 GB, free: 4.938 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.8621, allocations: 31.92 kB / 1.136 GB, free: 4.906 MB / 0.8887 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.0004678/0.8626, allocations: 464.7 kB / 1.136 GB, free: 4.441 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.8628, allocations: 98.78 kB / 1.136 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009109/0.8637, allocations: 0.4951 MB / 1.137 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8637, allocations: 4 kB / 1.137 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.8637, allocations: 0 / 1.137 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.8637, allocations: 0 / 1.137 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.8658, allocations: 1.401 MB / 1.138 GB, free: 2.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.8658, allocations: 4.219 kB / 1.138 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.8661, allocations: 75.83 kB / 1.138 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.8661, allocations: 0 / 1.138 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.8661, allocations: 8 kB / 1.138 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.8661, allocations: 11.92 kB / 1.138 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8661, allocations: 4 kB / 1.138 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008373/0.867, allocations: 0.606 MB / 1.139 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002732/0.8672, allocations: 227.7 kB / 1.139 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.8674, allocations: 12 kB / 1.139 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.8678, allocations: 43.95 kB / 1.139 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.8679, allocations: 31.95 kB / 1.139 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.868, allocations: 8 kB / 1.139 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009377/0.8689, allocations: 0.7914 MB / 1.14 GB, free: 488 kB / 0.8887 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8689, allocations: 0 / 1.14 GB, free: 488 kB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001028/0.8699, allocations: 411.4 kB / 1.14 GB, free: 76 kB / 0.8887 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.001366/0.8713, allocations: 1.231 MB / 1.141 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.8727, allocations: 0.8282 MB / 1.142 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.8727, allocations: 0 / 1.142 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.8731, allocations: 205 kB / 1.142 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002321/0.8754, allocations: 459.2 kB / 1.143 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/0.8947, allocations: 8.829 MB / 1.151 GB, free: 4.051 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007102/0.8954, allocations: 1.181 MB / 1.153 GB, free: 2.84 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001255/0.8967, allocations: 419.6 kB / 1.153 GB, free: 2.426 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.8971, allocations: 319.3 kB / 1.153 GB, free: 2.113 MB / 0.9044 GB Notification: Performance of SimCode: time 3.026e-06/0.8971, allocations: 0 / 1.153 GB, free: 2.113 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1649/1.062, allocations: 24.95 MB / 1.178 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/1.062, allocations: 276.6 kB / 1.178 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/3.435, allocations: 0 / 1.178 GB, free: 9.188 MB / 0.9356 GB (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches