Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 102.2 kB / 16.4 MB, free: 6.461 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.001695/0.001695, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.307/2.307, allocations: 390.3 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.91 kB / 0.9516 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9084/0.9097, allocations: 140.4 MB / 1.089 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised): time 0.2097/1.119, allocations: 161.6 MB / 1.246 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006096/1.126, allocations: 3.617 MB / 1.25 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006447/1.126, allocations: 19.88 kB / 1.25 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007417/1.127, allocations: 162.9 kB / 1.25 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001776/1.129, allocations: 0.525 MB / 1.251 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001557/1.13, allocations: 445 kB / 1.251 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003017/1.134, allocations: 2.539 MB / 1.254 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/1.135, allocations: 0.941 MB / 1.254 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/1.137, allocations: 1.039 MB / 1.256 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/1.138, allocations: 0.7117 MB / 1.256 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002356/1.139, allocations: 52 kB / 1.256 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/1.141, allocations: 0.7445 MB / 1.257 GB, free: 1.352 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004508/1.141, allocations: 302.9 kB / 1.257 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00101/1.142, allocations: 0.544 MB / 1.258 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002156/1.144, allocations: 1.4 MB / 1.259 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/1.144, allocations: 4 kB / 1.259 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.245e-06/1.144, allocations: 3.938 kB / 1.259 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.207e-05/1.144, allocations: 0 / 1.259 GB, free: 15.1 MB / 0.9981 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.002865/1.147, allocations: 1.451 MB / 1.261 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/1.147, allocations: 8.031 kB / 1.261 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008808/1.148, allocations: 186.5 kB / 1.261 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/1.15, allocations: 0.8452 MB / 1.262 GB, free: 12.49 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/1.15, allocations: 49 kB / 1.262 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.682e-05/1.15, allocations: 56 kB / 1.262 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/1.151, allocations: 0.7888 MB / 1.262 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/1.151, allocations: 11.92 kB / 1.262 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.205e-05/1.151, allocations: 16 kB / 1.262 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/1.151, allocations: 16 kB / 1.263 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009415/1.152, allocations: 0.5422 MB / 1.263 GB, free: 10.94 MB / 0.9981 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.004247/1.156, allocations: 4.587 MB / 1.268 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/1.157, allocations: 422.7 kB / 1.268 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/1.157, allocations: 251.1 kB / 1.268 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002892/1.158, allocations: 194.2 kB / 1.268 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004983/1.158, allocations: 289.6 kB / 1.269 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 2.415e-06/1.158, allocations: 4 kB / 1.269 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.003778/1.162, allocations: 1.318 MB / 1.27 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/1.162, allocations: 81.11 kB / 1.27 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/1.164, allocations: 1.122 MB / 1.271 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/1.164, allocations: 37.7 kB / 1.271 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/1.164, allocations: 492.2 kB / 1.272 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.85e-05/1.164, allocations: 110.5 kB / 1.272 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/1.164, allocations: 109.9 kB / 1.272 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001148/1.164, allocations: 330 kB / 1.272 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/1.165, allocations: 214.4 kB / 1.272 GB, free: 0.8906 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/1.165, allocations: 0.5213 MB / 1.273 GB, free: 236 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008822/1.166, allocations: 0.6267 MB / 1.273 GB, free: 15.52 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/1.166, allocations: 4 kB / 1.273 GB, free: 15.52 MB / 1.014 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00227/1.169, allocations: 1.033 MB / 1.274 GB, free: 14.47 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/1.169, allocations: 33.7 kB / 1.274 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/1.169, allocations: 4.625 kB / 1.274 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/1.17, allocations: 356.5 kB / 1.275 GB, free: 14.07 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/1.17, allocations: 55.91 kB / 1.275 GB, free: 14.02 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/1.171, allocations: 1.013 MB / 1.276 GB, free: 12.98 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006998/1.172, allocations: 91.39 kB / 1.276 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.764e-05/1.172, allocations: 24.22 kB / 1.276 GB, free: 12.87 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00069/1.173, allocations: 0.4928 MB / 1.276 GB, free: 12.38 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005282/1.173, allocations: 0.49 MB / 1.277 GB, free: 11.75 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007517/1.174, allocations: 0.5609 MB / 1.277 GB, free: 11.11 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.757e-06/1.174, allocations: 0 / 1.277 GB, free: 11.11 MB / 1.014 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001511/1.176, allocations: 0.826 MB / 1.278 GB, free: 10.27 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/1.176, allocations: 40.97 kB / 1.278 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/1.176, allocations: 4 kB / 1.278 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/1.176, allocations: 208.6 kB / 1.279 GB, free: 10.02 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/1.176, allocations: 63.84 kB / 1.279 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003715/1.18, allocations: 3.341 MB / 1.282 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/1.181, allocations: 67.97 kB / 1.282 GB, free: 6.383 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/1.181, allocations: 20 kB / 1.282 GB, free: 6.363 MB / 1.014 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 (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002216/1.181, allocations: 227.9 kB / 1.282 GB, free: 6.133 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/1.181, allocations: 98.78 kB / 1.282 GB, free: 6.035 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/1.183, allocations: 0.7101 MB / 1.283 GB, free: 5.316 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/1.183, allocations: 8 kB / 1.283 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/1.183, allocations: 0 / 1.283 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.183, allocations: 4 kB / 1.283 GB, free: 5.305 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/1.185, allocations: 1.604 MB / 1.285 GB, free: 3.621 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/1.185, allocations: 0 / 1.285 GB, free: 3.621 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/1.185, allocations: 19.98 kB / 1.285 GB, free: 3.602 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/1.186, allocations: 220.6 kB / 1.285 GB, free: 3.383 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/1.186, allocations: 8 kB / 1.285 GB, free: 3.375 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009122/1.187, allocations: 0.9854 MB / 1.286 GB, free: 2.363 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/1.187, allocations: 0 / 1.286 GB, free: 2.363 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/1.188, allocations: 0.8312 MB / 1.287 GB, free: 1.492 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/1.188, allocations: 223.8 kB / 1.287 GB, free: 1.254 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/1.189, allocations: 8 kB / 1.287 GB, free: 1.246 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/1.189, allocations: 27.91 kB / 1.287 GB, free: 1.219 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.55e-05/1.189, allocations: 23.97 kB / 1.287 GB, free: 1.195 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/1.189, allocations: 12 kB / 1.287 GB, free: 1.184 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001111/1.19, allocations: 0.7955 MB / 1.288 GB, free: 388 kB / 1.014 GB Notification: Performance of sort global known variables: time 2.2e-07/1.19, allocations: 0 / 1.288 GB, free: 388 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.001378/1.192, allocations: 435.5 kB / 1.288 GB, free: 15.95 MB / 1.029 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 (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004948/1.192, allocations: 190.3 kB / 1.288 GB, free: 15.77 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002037/1.194, allocations: 1.066 MB / 1.289 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.194, allocations: 0 / 1.289 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004766/1.195, allocations: 231 kB / 1.289 GB, free: 14.45 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/1.197, allocations: 458.5 kB / 1.29 GB, free: 14 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/1.2, allocations: 1.803 MB / 1.292 GB, free: 12.13 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/1.2, allocations: 1.181 MB / 1.293 GB, free: 10.92 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/1.2, allocations: 67.42 kB / 1.293 GB, free: 10.85 MB / 1.029 GB Notification: Performance of SimCode: time 7.31e-07/1.2, allocations: 0 / 1.293 GB, free: 10.85 MB / 1.029 GB Notification: Performance of Templates: time 0.02586/1.226, allocations: 20.42 MB / 1.313 GB, free: 6.527 MB / 1.045 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches