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.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.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_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_9_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.0063/0.0063, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001478/0.001479, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.182/2.182, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 59.91 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8452/0.8467, allocations: 140.4 MB / 1.088 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1945/1.041, allocations: 161.6 MB / 1.246 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003108/1.044, allocations: 1.758 MB / 1.247 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000299/1.045, allocations: 11.38 kB / 1.247 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005923/1.045, allocations: 165.3 kB / 1.248 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001348/1.047, allocations: 0.5535 MB / 1.248 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001115/1.048, allocations: 395.1 kB / 1.249 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002561/1.05, allocations: 2.539 MB / 1.251 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/1.052, allocations: 0.9294 MB / 1.252 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/1.053, allocations: 1.043 MB / 1.253 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007931/1.054, allocations: 0.7039 MB / 1.254 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.62e-05/1.054, allocations: 56 kB / 1.254 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/1.056, allocations: 0.7406 MB / 1.254 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003226/1.056, allocations: 314.8 kB / 1.255 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006745/1.057, allocations: 0.5362 MB / 1.255 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001756/1.058, allocations: 1.402 MB / 1.257 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.058, allocations: 3.984 kB / 1.257 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.714e-06/1.058, allocations: 0 / 1.257 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.401e-05/1.058, allocations: 0 / 1.257 GB, free: 1.109 MB / 0.9825 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.002543/1.061, allocations: 1.443 MB / 1.258 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/1.061, allocations: 12.03 kB / 1.258 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007379/1.062, allocations: 186.5 kB / 1.258 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/1.063, allocations: 0.8528 MB / 1.259 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/1.063, allocations: 48.94 kB / 1.259 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.606e-05/1.063, allocations: 60 kB / 1.259 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/1.064, allocations: 0.7926 MB / 1.26 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/1.064, allocations: 4 kB / 1.26 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.046e-05/1.064, allocations: 16 kB / 1.26 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/1.064, allocations: 16 kB / 1.26 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008934/1.065, allocations: 0.5344 MB / 1.26 GB, free: 12.95 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.004754/1.07, allocations: 4.595 MB / 1.265 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000775/1.071, allocations: 419.7 kB / 1.265 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004035/1.071, allocations: 244.7 kB / 1.266 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003672/1.072, allocations: 194.2 kB / 1.266 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005209/1.072, allocations: 289.6 kB / 1.266 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 2.785e-06/1.072, allocations: 0 / 1.266 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001404/1.074, allocations: 0.6381 MB / 1.267 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.074, allocations: 81.11 kB / 1.267 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/1.075, allocations: 1.114 MB / 1.268 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/1.075, allocations: 33.7 kB / 1.268 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/1.075, allocations: 0.4886 MB / 1.268 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.96e-05/1.076, allocations: 110.5 kB / 1.268 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/1.076, allocations: 110 kB / 1.269 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001557/1.076, allocations: 333.9 kB / 1.269 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/1.076, allocations: 214.4 kB / 1.269 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006253/1.077, allocations: 0.5135 MB / 1.27 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008792/1.078, allocations: 0.6385 MB / 1.27 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.078, allocations: 4 kB / 1.27 GB, free: 2.234 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001192/1.079, allocations: 0.7176 MB / 1.271 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/1.079, allocations: 37.64 kB / 1.271 GB, free: 1.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.079, allocations: 8.031 kB / 1.271 GB, free: 1.453 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/1.079, allocations: 8 kB / 1.271 GB, free: 1.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004199/1.08, allocations: 107.9 kB / 1.271 GB, free: 1.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/1.08, allocations: 11.94 kB / 1.271 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006221/1.08, allocations: 71.48 kB / 1.271 GB, free: 1.258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.024e-05/1.08, allocations: 28 kB / 1.271 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006835/1.081, allocations: 0.4981 MB / 1.272 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005226/1.082, allocations: 497.8 kB / 1.272 GB, free: 116 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007686/1.082, allocations: 0.5567 MB / 1.273 GB, free: 15.48 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/1.082, allocations: 4 kB / 1.273 GB, free: 15.47 MB / 1.014 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.0009577/1.083, allocations: 0.6419 MB / 1.273 GB, free: 14.82 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/1.083, allocations: 33.7 kB / 1.273 GB, free: 14.78 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/1.083, allocations: 11.94 kB / 1.273 GB, free: 14.77 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/1.083, allocations: 12.59 kB / 1.273 GB, free: 14.75 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003363/1.084, allocations: 103.9 kB / 1.273 GB, free: 14.65 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/1.084, allocations: 15.92 kB / 1.274 GB, free: 14.64 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/1.084, allocations: 56.12 kB / 1.274 GB, free: 14.58 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/1.084, allocations: 28 kB / 1.274 GB, free: 14.55 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 (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.0001852/1.085, allocations: 223.9 kB / 1.274 GB, free: 14.33 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/1.085, allocations: 102.8 kB / 1.274 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008644/1.086, allocations: 0.4911 MB / 1.274 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/1.086, allocations: 0 / 1.274 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/1.086, allocations: 4 kB / 1.274 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/1.086, allocations: 3.984 kB / 1.274 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/1.088, allocations: 1.373 MB / 1.276 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/1.088, allocations: 4 kB / 1.276 GB, free: 12.26 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/1.088, allocations: 68.11 kB / 1.276 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/1.088, allocations: 3.938 kB / 1.276 GB, free: 12.19 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/1.088, allocations: 19.92 kB / 1.276 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.088, allocations: 0 / 1.276 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.929e-05/1.088, allocations: 4.188 kB / 1.276 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008402/1.089, allocations: 0.6022 MB / 1.276 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/1.089, allocations: 219.7 kB / 1.277 GB, free: 11.29 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.936e-05/1.089, allocations: 8 kB / 1.277 GB, free: 11.29 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/1.089, allocations: 27.97 kB / 1.277 GB, free: 11.26 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/1.09, allocations: 27.97 kB / 1.277 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/1.09, allocations: 12 kB / 1.277 GB, free: 11.22 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001024/1.091, allocations: 0.7914 MB / 1.277 GB, free: 10.42 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/1.091, allocations: 0 / 1.277 GB, free: 10.42 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001108/1.092, allocations: 407.4 kB / 1.278 GB, free: 10.02 MB / 1.014 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.0004722/1.092, allocations: 173.7 kB / 1.278 GB, free: 9.848 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0013/1.094, allocations: 0.8208 MB / 1.279 GB, free: 9.008 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/1.094, allocations: 0 / 1.279 GB, free: 9.008 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003589/1.094, allocations: 203.7 kB / 1.279 GB, free: 8.809 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/1.096, allocations: 463.3 kB / 1.279 GB, free: 8.359 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/1.098, allocations: 1.724 MB / 1.281 GB, free: 6.582 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007842/1.099, allocations: 1.176 MB / 1.282 GB, free: 5.375 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009402/1.1, allocations: 407.7 kB / 1.283 GB, free: 4.973 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/1.1, allocations: 83.36 kB / 1.283 GB, free: 4.891 MB / 1.014 GB Notification: Performance of SimCode: time 8.72e-07/1.1, allocations: 0 / 1.283 GB, free: 4.891 MB / 1.014 GB Notification: Performance of Templates: time 0.03291/1.133, allocations: 17.18 MB / 1.3 GB, free: 3.93 MB / 1.029 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (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 & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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