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.0009596/0.0009599, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005747/0.005747, allocations: 171 kB / 16.26 MB, free: 6.613 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.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.36/2.36, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003828, allocations: 12 kB / 0.816 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7818/0.7822, allocations: 142.4 MB / 0.955 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1919/0.9741, allocations: 157.3 MB / 1.109 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003298/0.9775, allocations: 1.75 MB / 1.11 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004568/0.978, allocations: 15.88 kB / 1.11 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006202/0.9786, allocations: 131.2 kB / 1.11 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.9803, allocations: 0.498 MB / 1.111 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.9815, allocations: 345.9 kB / 1.111 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003833/0.9854, allocations: 3.484 MB / 1.115 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.9867, allocations: 0.7504 MB / 1.115 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001887/0.9886, allocations: 0.8986 MB / 1.116 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.9897, allocations: 0.7194 MB / 1.117 GB, free: 8.918 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.9899, allocations: 32 kB / 1.117 GB, free: 8.887 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.9916, allocations: 0.799 MB / 1.118 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004038/0.992, allocations: 278.9 kB / 1.118 GB, free: 7.812 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0009094/0.9929, allocations: 0.53 MB / 1.119 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001847/0.9947, allocations: 1.363 MB / 1.12 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.9948, allocations: 0 / 1.12 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.764e-06/0.9948, allocations: 0 / 1.12 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.991e-05/0.9948, allocations: 4 kB / 1.12 GB, free: 5.902 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.002344/0.9972, allocations: 1.261 MB / 1.121 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.9972, allocations: 12.03 kB / 1.121 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008978/0.9981, allocations: 190.5 kB / 1.121 GB, free: 4.383 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.9995, allocations: 0.8021 MB / 1.122 GB, free: 3.523 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.9996, allocations: 45 kB / 1.122 GB, free: 3.477 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.9997, allocations: 56 kB / 1.122 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/1.001, allocations: 0.7941 MB / 1.123 GB, free: 2.555 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/1.001, allocations: 7.938 kB / 1.123 GB, free: 2.547 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/1.001, allocations: 20 kB / 1.123 GB, free: 2.527 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/1.001, allocations: 16 kB / 1.123 GB, free: 2.512 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009773/1.002, allocations: 0.5462 MB / 1.124 GB, free: 1.965 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.004238/1.006, allocations: 4.595 MB / 1.128 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007275/1.007, allocations: 438.2 kB / 1.129 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/1.007, allocations: 248.7 kB / 1.129 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002814/1.008, allocations: 194.2 kB / 1.129 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005112/1.008, allocations: 301.6 kB / 1.129 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/1.008, allocations: 0 / 1.129 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001415/1.01, allocations: 0.6523 MB / 1.13 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/1.01, allocations: 81.11 kB / 1.13 GB, free: 11.01 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/1.011, allocations: 1.114 MB / 1.131 GB, free: 9.879 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/1.011, allocations: 37.7 kB / 1.131 GB, free: 9.836 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/1.012, allocations: 496.1 kB / 1.132 GB, free: 9.344 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.143e-05/1.012, allocations: 102.5 kB / 1.132 GB, free: 9.242 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-05/1.012, allocations: 45.7 kB / 1.132 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.012, allocations: 333.9 kB / 1.132 GB, free: 8.859 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/1.012, allocations: 212.7 kB / 1.132 GB, free: 8.648 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006071/1.013, allocations: 0.529 MB / 1.133 GB, free: 7.988 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009097/1.014, allocations: 0.651 MB / 1.133 GB, free: 7.258 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.014, allocations: 0 / 1.133 GB, free: 7.258 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001244/1.015, allocations: 0.722 MB / 1.134 GB, free: 6.523 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001831/1.015, allocations: 275.2 kB / 1.134 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.015, allocations: 4 kB / 1.134 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/1.015, allocations: 16.2 kB / 1.134 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004456/1.016, allocations: 111.8 kB / 1.134 GB, free: 6.043 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/1.016, allocations: 11.94 kB / 1.134 GB, free: 6.031 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007381/1.017, allocations: 103.5 kB / 1.135 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/1.017, allocations: 28 kB / 1.135 GB, free: 5.902 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/1.017, allocations: 4 kB / 1.135 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008801/1.018, allocations: 0.5399 MB / 1.135 GB, free: 5.352 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/1.018, allocations: 4 kB / 1.135 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/1.018, allocations: 8 kB / 1.135 GB, free: 5.34 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/1.018, allocations: 108.5 kB / 1.135 GB, free: 5.234 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/1.018, allocations: 11.94 kB / 1.135 GB, free: 5.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/1.019, allocations: 95.52 kB / 1.135 GB, free: 5.129 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/1.019, allocations: 20 kB / 1.135 GB, free: 5.109 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.0004873/1.019, allocations: 472.6 kB / 1.136 GB, free: 4.637 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/1.019, allocations: 98.89 kB / 1.136 GB, free: 4.539 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008884/1.02, allocations: 0.499 MB / 1.136 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/1.02, allocations: 4 kB / 1.136 GB, free: 4.027 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.02, allocations: 0 / 1.136 GB, free: 4.027 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.02, allocations: 3.984 kB / 1.136 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/1.022, allocations: 1.395 MB / 1.138 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/1.022, allocations: 4 kB / 1.138 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/1.022, allocations: 67.89 kB / 1.138 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/1.022, allocations: 7.938 kB / 1.138 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/1.022, allocations: 11.98 kB / 1.138 GB, free: 2.461 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/1.022, allocations: 4 kB / 1.138 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.022, allocations: 4.156 kB / 1.138 GB, free: 2.453 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/1.023, allocations: 0.6099 MB / 1.138 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/1.024, allocations: 223.7 kB / 1.139 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.905e-05/1.024, allocations: 11.98 kB / 1.139 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/1.024, allocations: 47.95 kB / 1.139 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-05/1.024, allocations: 27.91 kB / 1.139 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/1.024, allocations: 8 kB / 1.139 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009269/1.025, allocations: 0.7992 MB / 1.14 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/1.025, allocations: 0 / 1.14 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001061/1.026, allocations: 407.4 kB / 1.14 GB, free: 272 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.0003887/1.027, allocations: 174 kB / 1.14 GB, free: 100 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001352/1.028, allocations: 0.8378 MB / 1.141 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.028, allocations: 3.938 kB / 1.141 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003742/1.028, allocations: 203.7 kB / 1.141 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/1.031, allocations: 460.2 kB / 1.142 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/1.033, allocations: 2.05 MB / 1.144 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000672/1.034, allocations: 1.181 MB / 1.145 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001072/1.035, allocations: 427.6 kB / 1.145 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/1.035, allocations: 75.42 kB / 1.145 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of SimCode: time 5.71e-07/1.035, allocations: 0 / 1.145 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of Templates: time 0.02811/1.063, allocations: 16.41 MB / 1.161 GB, free: 10.57 MB / 0.92 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