Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001304/0.001304, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 239.9 MB, free: 5.316 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.416/2.416, allocations: 390.2 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003199, allocations: 12 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7208/0.7211, allocations: 142.3 MB / 0.9535 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised): time 0.1721/0.8932, allocations: 140.5 MB / 1.091 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004085/0.8974, allocations: 2.16 MB / 1.093 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005362/0.8979, allocations: 11.94 kB / 1.093 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009523/0.8989, allocations: 230.9 kB / 1.093 GB, free: 0.9336 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002211/0.9011, allocations: 0.705 MB / 1.094 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.9025, allocations: 445.3 kB / 1.094 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002282/0.9048, allocations: 1.641 MB / 1.096 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002901/0.9077, allocations: 2.309 MB / 1.098 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001758/0.9095, allocations: 0.8488 MB / 1.099 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.9106, allocations: 0.6109 MB / 1.099 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002148/0.9108, allocations: 48 kB / 1.099 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.9123, allocations: 0.624 MB / 1.1 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004274/0.9127, allocations: 303 kB / 1.1 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004377/0.9132, allocations: 249.1 kB / 1.101 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.9146, allocations: 1.165 MB / 1.102 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.9146, allocations: 3.938 kB / 1.102 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.336e-06/0.9146, allocations: 4 kB / 1.102 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.949e-05/0.9147, allocations: 0 / 1.102 GB, free: 7.969 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.003309/0.918, allocations: 1.518 MB / 1.103 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.9181, allocations: 8.031 kB / 1.103 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.9191, allocations: 202.3 kB / 1.103 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.9212, allocations: 0.8717 MB / 1.104 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.214e-05/0.9213, allocations: 49.3 kB / 1.104 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.9214, allocations: 68 kB / 1.104 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.9229, allocations: 0.9831 MB / 1.105 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.923, allocations: 3.938 kB / 1.105 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.923, allocations: 24 kB / 1.105 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.9231, allocations: 19.95 kB / 1.105 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.9244, allocations: 0.8116 MB / 1.106 GB, free: 3.227 MB / 0.8575 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.004959/0.9294, allocations: 4.805 MB / 1.111 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.932, allocations: 4.034 MB / 1.115 GB, free: 9.215 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.609e-05/0.9321, allocations: 12.27 kB / 1.115 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005448/0.9326, allocations: 342.8 kB / 1.115 GB, free: 8.848 MB / 0.8731 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003522/0.933, allocations: 31.69 kB / 1.115 GB, free: 8.816 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=35): time 3.156e-06/0.933, allocations: 0 / 1.115 GB, free: 8.816 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.004717/0.9377, allocations: 1.593 MB / 1.117 GB, free: 7.195 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.9378, allocations: 110.8 kB / 1.117 GB, free: 7.062 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.9395, allocations: 1.177 MB / 1.118 GB, free: 5.871 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.471e-05/0.9395, allocations: 37.7 kB / 1.118 GB, free: 5.828 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004955/0.94, allocations: 0.5122 MB / 1.119 GB, free: 5.312 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.9402, allocations: 122.2 kB / 1.119 GB, free: 5.191 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.9402, allocations: 16 kB / 1.119 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.9404, allocations: 326 kB / 1.119 GB, free: 4.852 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003862/0.9407, allocations: 209 kB / 1.119 GB, free: 4.645 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00074/0.9415, allocations: 0.5407 MB / 1.12 GB, free: 3.969 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.942, allocations: 313.4 kB / 1.12 GB, free: 3.656 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.942, allocations: 0 / 1.12 GB, free: 3.656 MB / 0.8731 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002253/0.9443, allocations: 1.049 MB / 1.121 GB, free: 2.59 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008924/0.9452, allocations: 2.134 MB / 1.123 GB, free: 304 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.9452, allocations: 8 kB / 1.123 GB, free: 296 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.9465, allocations: 345.7 kB / 1.123 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003929/0.9469, allocations: 99.86 kB / 1.124 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009465/0.9479, allocations: 0.9995 MB / 1.125 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.9489, allocations: 108.1 kB / 1.125 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.365e-05/0.949, allocations: 27.98 kB / 1.125 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.949, allocations: 5.562 kB / 1.125 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001439/0.9504, allocations: 0.7941 MB / 1.125 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.9504, allocations: 4 kB / 1.125 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000545/0.951, allocations: 237.2 kB / 1.126 GB, free: 13.65 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.9514, allocations: 95.86 kB / 1.126 GB, free: 13.55 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0035/0.9549, allocations: 2.99 MB / 1.129 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.9561, allocations: 103.9 kB / 1.129 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.9562, allocations: 20 kB / 1.129 GB, free: 10.31 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 ($whenCondition1,$PRE.pulse_m_flow.T_start,pulse_m_flow.T_start,$PRE.pulse_m_flow.count,pulse_m_flow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006777/0.9569, allocations: 476.7 kB / 1.129 GB, free: 9.832 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.9571, allocations: 110.7 kB / 1.129 GB, free: 9.723 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.9586, allocations: 0.763 MB / 1.13 GB, free: 8.949 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.9586, allocations: 4 kB / 1.13 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.9586, allocations: 4 kB / 1.13 GB, free: 8.941 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.9586, allocations: 7.922 kB / 1.13 GB, free: 8.934 MB / 0.8887 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 postOpt removeSimpleEquations (simulation): time 0.00318/0.9618, allocations: 2.202 MB / 1.132 GB, free: 6.59 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.9618, allocations: 7.984 kB / 1.132 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.9622, allocations: 75.92 kB / 1.132 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.9626, allocations: 176.7 kB / 1.133 GB, free: 6.332 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.9626, allocations: 15.98 kB / 1.133 GB, free: 6.316 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006489/0.9632, allocations: 0.8566 MB / 1.133 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.9633, allocations: 0 / 1.133 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.9645, allocations: 0.9472 MB / 1.134 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004559/0.9649, allocations: 235.7 kB / 1.135 GB, free: 4.16 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.9651, allocations: 12 kB / 1.135 GB, free: 4.148 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007601/0.9659, allocations: 71.77 kB / 1.135 GB, free: 4.078 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.966, allocations: 39.84 kB / 1.135 GB, free: 4.039 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.966, allocations: 15.98 kB / 1.135 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001048/0.9671, allocations: 0.8249 MB / 1.135 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9671, allocations: 0 / 1.135 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00149/0.9686, allocations: 0.511 MB / 1.136 GB, free: 2.68 MB / 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_m_flow.T_start,pulse_m_flow.count) * Number of discrete states: 1 (pulse_m_flow.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004878/0.9691, allocations: 188.8 kB / 1.136 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002119/0.9712, allocations: 1.129 MB / 1.137 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.9712, allocations: 0 / 1.137 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004448/0.9717, allocations: 244.2 kB / 1.137 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.9749, allocations: 0.6513 MB / 1.138 GB, free: 456 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.978, allocations: 2.108 MB / 1.14 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008072/0.9788, allocations: 1.229 MB / 1.141 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001109/0.98, allocations: 364.4 kB / 1.142 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.9802, allocations: 67.44 kB / 1.142 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of SimCode: time 1.172e-06/0.9802, allocations: 0 / 1.142 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of Templates: time 0.03432/1.014, allocations: 20.83 MB / 1.162 GB, free: 8.031 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised.csv","../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches