Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.SeriesParallelFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_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_latest_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.001003/0.001003, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 186.8 kB / 16.92 MB, free: 6.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.322/1.322, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.6/2.6, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003462, allocations: 8.562 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3252, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised): time 0.1738/0.499, allocations: 163.4 MB / 1.219 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003975/0.503, allocations: 2.21 MB / 1.221 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004333/0.5035, allocations: 15.88 kB / 1.221 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007259/0.5043, allocations: 198.9 kB / 1.221 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.506, allocations: 0.6381 MB / 1.222 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.5073, allocations: 374 kB / 1.222 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003707/0.511, allocations: 3.803 MB / 1.226 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002812/0.5138, allocations: 2.356 MB / 1.228 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.5163, allocations: 1.113 MB / 1.229 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.5176, allocations: 0.8674 MB / 1.23 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.5178, allocations: 48 kB / 1.23 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.5196, allocations: 0.8925 MB / 1.231 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004326/0.5201, allocations: 334.7 kB / 1.231 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007592/0.5208, allocations: 0.6079 MB / 1.232 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.5221, allocations: 1.157 MB / 1.233 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5221, allocations: 0 / 1.233 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5222, allocations: 0 / 1.233 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.5222, allocations: 0 / 1.233 GB, free: 2.336 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: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.002525/0.5247, allocations: 1.471 MB / 1.235 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5248, allocations: 15.97 kB / 1.235 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008548/0.5256, allocations: 198.4 kB / 1.235 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/0.5269, allocations: 0.8772 MB / 1.236 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.625e-05/0.527, allocations: 53.3 kB / 1.236 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.5271, allocations: 67.94 kB / 1.236 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.5286, allocations: 0.9909 MB / 1.237 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.5286, allocations: 3.938 kB / 1.237 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.5287, allocations: 28 kB / 1.237 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.5287, allocations: 12 kB / 1.237 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.53, allocations: 0.8038 MB / 1.238 GB, free: 13.62 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.004639/0.5346, allocations: 4.812 MB / 1.242 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.5374, allocations: 4.019 MB / 1.246 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.538, allocations: 353.2 kB / 1.246 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003058/0.5383, allocations: 198.4 kB / 1.247 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005509/0.5388, allocations: 333 kB / 1.247 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003814/0.5392, allocations: 27.69 kB / 1.247 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=35): time 2.264e-06/0.5392, allocations: 0 / 1.247 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of matching and sorting (n=35): time 0.004712/0.544, allocations: 1.622 MB / 1.249 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.544, allocations: 85.11 kB / 1.249 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.6628/1.207, allocations: 1.172 MB / 1.25 GB, free: 27.82 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001245/1.207, allocations: 37.73 kB / 1.25 GB, free: 27.79 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/1.208, allocations: 0.5111 MB / 1.25 GB, free: 27.71 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/1.208, allocations: 122.5 kB / 1.25 GB, free: 27.71 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.066e-05/1.208, allocations: 45.8 kB / 1.251 GB, free: 27.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.454e-05/1.208, allocations: 327.4 kB / 1.251 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004873/1.208, allocations: 233.8 kB / 1.251 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/1.209, allocations: 0.57 MB / 1.252 GB, free: 27.03 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009465/1.21, allocations: 0.6946 MB / 1.252 GB, free: 26.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/1.21, allocations: 1.516 kB / 1.252 GB, free: 26.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002516/1.212, allocations: 1.11 MB / 1.253 GB, free: 26.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000157/1.213, allocations: 271 kB / 1.254 GB, free: 26.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/1.213, allocations: 9.281 kB / 1.254 GB, free: 26.37 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/1.214, allocations: 360.1 kB / 1.254 GB, free: 26.35 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004206/1.214, allocations: 107.5 kB / 1.254 GB, free: 26.35 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000881/1.215, allocations: 1.007 MB / 1.255 GB, free: 25.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/1.216, allocations: 96.06 kB / 1.255 GB, free: 25.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/1.216, allocations: 25.69 kB / 1.255 GB, free: 25.82 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/1.216, allocations: 2.938 kB / 1.255 GB, free: 25.82 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001298/1.218, allocations: 0.7904 MB / 1.256 GB, free: 25.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/1.218, allocations: 9.344 kB / 1.256 GB, free: 25.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004955/1.218, allocations: 218.6 kB / 1.256 GB, free: 25.74 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003791/1.219, allocations: 109.5 kB / 1.256 GB, free: 25.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/1.222, allocations: 2.912 MB / 1.259 GB, free: 24.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/1.223, allocations: 94.3 kB / 1.259 GB, free: 24.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.071e-05/1.223, allocations: 23.81 kB / 1.259 GB, free: 24.36 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_m_flow.count,$PRE.pulse_m_flow.count,pulse_m_flow.T_start,$PRE.pulse_m_flow.T_start,$whenCondition1) * 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 (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.0006347/1.224, allocations: 476.1 kB / 1.26 GB, free: 24.16 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/1.224, allocations: 109.1 kB / 1.26 GB, free: 24.11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/1.225, allocations: 0.7916 MB / 1.261 GB, free: 24 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.225, allocations: 10.03 kB / 1.261 GB, free: 24 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.225, allocations: 3.938 kB / 1.261 GB, free: 23.99 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/1.225, allocations: 1.828 kB / 1.261 GB, free: 23.99 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 postOpt removeSimpleEquations (simulation): time 0.002858/1.228, allocations: 2.13 MB / 1.263 GB, free: 23.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/1.228, allocations: 2.844 kB / 1.263 GB, free: 23.19 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/1.228, allocations: 80.55 kB / 1.263 GB, free: 23.19 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003978/1.229, allocations: 173.9 kB / 1.263 GB, free: 23.17 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/1.229, allocations: 10.97 kB / 1.263 GB, free: 23.17 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007145/1.23, allocations: 0.8593 MB / 1.264 GB, free: 22.65 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.23, allocations: 2.688 kB / 1.264 GB, free: 22.65 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/1.231, allocations: 0.8551 MB / 1.265 GB, free: 22.36 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003852/1.231, allocations: 235 kB / 1.265 GB, free: 22.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/1.231, allocations: 14.5 kB / 1.265 GB, free: 22.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006625/1.232, allocations: 73.47 kB / 1.265 GB, free: 22.19 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.232, allocations: 27.97 kB / 1.265 GB, free: 22.19 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/1.232, allocations: 16.64 kB / 1.265 GB, free: 22.19 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001084/1.233, allocations: 0.828 MB / 1.266 GB, free: 22.08 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.81e-07/1.233, allocations: 0 / 1.266 GB, free: 22.08 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001574/1.235, allocations: 0.4996 MB / 1.266 GB, free: 22.05 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_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 (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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004725/1.235, allocations: 192.2 kB / 1.266 GB, free: 21.95 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002486/1.238, allocations: 1.159 MB / 1.268 GB, free: 21.68 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.238, allocations: 5.594 kB / 1.268 GB, free: 21.67 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000543/1.238, allocations: 245.3 kB / 1.268 GB, free: 21.67 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003795/1.242, allocations: 0.6473 MB / 1.268 GB, free: 21.61 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/1.246, allocations: 2.251 MB / 1.271 GB, free: 20.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/1.247, allocations: 1.212 MB / 1.272 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/1.247, allocations: 70.27 kB / 1.272 GB, free: 19.83 MB / 0.9981 GB Notification: Performance of SimCode: time 1.513e-06/1.247, allocations: 4 kB / 1.272 GB, free: 19.82 MB / 0.9981 GB Notification: Performance of Templates: time 0.03939/1.287, allocations: 22.46 MB / 1.294 GB, free: 18.11 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches