Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_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_latest_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.001371/0.001371, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001334/0.001334, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.7/2.7, allocations: 482.4 MB / 0.7553 GB, free: 7.012 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 69.44 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8037/0.8056, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.2105/1.016, allocations: 161.6 MB / 1.241 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003396/1.02, allocations: 1.757 MB / 1.242 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003551/1.02, allocations: 11.88 kB / 1.242 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005888/1.021, allocations: 166.9 kB / 1.243 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001393/1.022, allocations: 0.525 MB / 1.243 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/1.023, allocations: 386 kB / 1.244 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002953/1.026, allocations: 2.499 MB / 1.246 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/1.028, allocations: 0.9294 MB / 1.247 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/1.03, allocations: 1.152 MB / 1.248 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/1.031, allocations: 0.6844 MB / 1.249 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001221/1.031, allocations: 56 kB / 1.249 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/1.032, allocations: 0.7329 MB / 1.249 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000345/1.033, allocations: 306.9 kB / 1.25 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0007117/1.034, allocations: 0.5362 MB / 1.25 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00175/1.035, allocations: 1.39 MB / 1.252 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/1.035, allocations: 4 kB / 1.252 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.483e-06/1.035, allocations: 0 / 1.252 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.162e-05/1.035, allocations: 0 / 1.252 GB, free: 1.672 MB / 0.9669 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.002286/1.038, allocations: 1.439 MB / 1.253 GB, free: 176 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/1.038, allocations: 12.03 kB / 1.253 GB, free: 164 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007871/1.038, allocations: 182.7 kB / 1.253 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/1.04, allocations: 0.806 MB / 1.254 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.912e-05/1.04, allocations: 41 kB / 1.254 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.411e-05/1.04, allocations: 60 kB / 1.254 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/1.041, allocations: 0.7965 MB / 1.255 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/1.041, allocations: 0 / 1.255 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.922e-05/1.041, allocations: 27.98 kB / 1.255 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/1.041, allocations: 12 kB / 1.255 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/1.042, allocations: 0.5383 MB / 1.255 GB, free: 13.57 MB / 0.9825 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.004777/1.047, allocations: 4.606 MB / 1.26 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007697/1.048, allocations: 422.3 kB / 1.26 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/1.048, allocations: 240.7 kB / 1.261 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003199/1.049, allocations: 190.2 kB / 1.261 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005346/1.049, allocations: 301 kB / 1.261 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/1.049, allocations: 0 / 1.261 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001416/1.051, allocations: 0.6243 MB / 1.262 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/1.051, allocations: 89.05 kB / 1.262 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001446/1.052, allocations: 1.118 MB / 1.263 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/1.052, allocations: 37.7 kB / 1.263 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004489/1.053, allocations: 496.1 kB / 1.263 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.857e-05/1.053, allocations: 106.5 kB / 1.263 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/1.053, allocations: 110 kB / 1.264 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001511/1.053, allocations: 325.9 kB / 1.264 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/1.054, allocations: 218.4 kB / 1.264 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/1.054, allocations: 0.5157 MB / 1.265 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009641/1.055, allocations: 0.6326 MB / 1.265 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/1.055, allocations: 4 kB / 1.265 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001296/1.057, allocations: 0.7239 MB / 1.266 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.592e-05/1.057, allocations: 37.7 kB / 1.266 GB, free: 2.074 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.057, allocations: 4 kB / 1.266 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/1.057, allocations: 8 kB / 1.266 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004426/1.057, allocations: 112.4 kB / 1.266 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/1.057, allocations: 11.94 kB / 1.266 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/1.058, allocations: 71.48 kB / 1.266 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.128e-05/1.058, allocations: 27.94 kB / 1.266 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007521/1.059, allocations: 0.5006 MB / 1.267 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006196/1.059, allocations: 497.9 kB / 1.267 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008384/1.06, allocations: 0.5526 MB / 1.268 GB, free: 88 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.38e-06/1.06, allocations: 4 kB / 1.268 GB, free: 84 kB / 0.9825 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001164/1.061, allocations: 0.6422 MB / 1.268 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/1.061, allocations: 39.72 kB / 1.268 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/1.061, allocations: 4 kB / 1.268 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/1.061, allocations: 8.109 kB / 1.268 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/1.062, allocations: 115.7 kB / 1.268 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/1.062, allocations: 12.28 kB / 1.268 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005812/1.062, allocations: 68.12 kB / 1.269 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.257e-05/1.062, allocations: 27.98 kB / 1.269 GB, free: 15.15 MB / 0.9981 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.0002163/1.063, allocations: 216.9 kB / 1.269 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/1.063, allocations: 98.97 kB / 1.269 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009651/1.064, allocations: 495 kB / 1.269 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/1.064, allocations: 11.97 kB / 1.269 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.064, allocations: 0 / 1.269 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/1.064, allocations: 4 kB / 1.269 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/1.066, allocations: 1.379 MB / 1.271 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/1.066, allocations: 7.938 kB / 1.271 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/1.066, allocations: 59.95 kB / 1.271 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/1.066, allocations: 7.938 kB / 1.271 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/1.066, allocations: 12.22 kB / 1.271 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/1.066, allocations: 4 kB / 1.271 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.066, allocations: 4 kB / 1.271 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009123/1.067, allocations: 0.5983 MB / 1.271 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/1.067, allocations: 211.8 kB / 1.272 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/1.068, allocations: 11.98 kB / 1.272 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/1.068, allocations: 23.98 kB / 1.272 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/1.068, allocations: 31.95 kB / 1.272 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/1.068, allocations: 16 kB / 1.272 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001048/1.069, allocations: 0.7836 MB / 1.272 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.069, allocations: 0 / 1.272 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001105/1.07, allocations: 411.4 kB / 1.273 GB, free: 10.64 MB / 0.9981 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.0004363/1.071, allocations: 176.6 kB / 1.273 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001496/1.072, allocations: 0.8589 MB / 1.274 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.072, allocations: 4.062 kB / 1.274 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003608/1.073, allocations: 193.8 kB / 1.274 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/1.075, allocations: 450.8 kB / 1.274 GB, free: 8.957 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/1.077, allocations: 1.811 MB / 1.276 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008571/1.078, allocations: 1.18 MB / 1.277 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/1.079, allocations: 79.36 kB / 1.277 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of SimCode: time 4.2e-07/1.079, allocations: 0 / 1.277 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of Templates: time 0.02531/1.104, allocations: 15.85 MB / 1.293 GB, free: 6.059 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches