Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.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.SeriesParallelDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 98.48 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.00121/0.00121, allocations: 188.2 kB / 16.92 MB, free: 6.75 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.36/1.36, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.679/2.679, allocations: 462.6 MB / 0.737 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003441, allocations: 12.06 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3226, allocations: 159.6 MB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised): time 0.1775/0.5001, allocations: 163.4 MB / 1.219 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00642/0.5066, allocations: 4.035 MB / 1.223 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000683/0.5073, allocations: 15.88 kB / 1.223 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008567/0.5082, allocations: 206.9 kB / 1.223 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.5103, allocations: 0.6445 MB / 1.224 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.5118, allocations: 425.3 kB / 1.224 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004011/0.5158, allocations: 3.803 MB / 1.228 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003088/0.5189, allocations: 2.36 MB / 1.23 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002552/0.5215, allocations: 1.12 MB / 1.231 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001541/0.523, allocations: 0.8596 MB / 1.232 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.5233, allocations: 51.94 kB / 1.232 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.5253, allocations: 0.9042 MB / 1.233 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005453/0.5258, allocations: 326.8 kB / 1.233 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.527, allocations: 0.5962 MB / 1.234 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001611/0.5286, allocations: 1.169 MB / 1.235 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5286, allocations: 0 / 1.235 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5286, allocations: 0 / 1.235 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.979e-05/0.5287, allocations: 0 / 1.235 GB, free: 0.5039 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003077/0.5318, allocations: 1.476 MB / 1.236 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5318, allocations: 15.91 kB / 1.236 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.5328, allocations: 198.4 kB / 1.237 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.5345, allocations: 0.8812 MB / 1.237 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.346e-05/0.5345, allocations: 45.31 kB / 1.238 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.5347, allocations: 64 kB / 1.238 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.5364, allocations: 0.9987 MB / 1.239 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.5364, allocations: 3.938 kB / 1.239 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.152e-05/0.5365, allocations: 24 kB / 1.239 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.5365, allocations: 12 kB / 1.239 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.5379, allocations: 0.8077 MB / 1.239 GB, free: 11.78 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.005342/0.5432, allocations: 4.808 MB / 1.244 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.5458, allocations: 4.016 MB / 1.248 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005271/0.5464, allocations: 358.9 kB / 1.248 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003052/0.5467, allocations: 194.5 kB / 1.249 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005554/0.5473, allocations: 336.9 kB / 1.249 GB, free: 0.8633 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000418/0.5477, allocations: 35.67 kB / 1.249 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=35): time 3.627e-06/0.5477, allocations: 0 / 1.249 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of matching and sorting (n=35): time 0.6032/1.151, allocations: 1.764 MB / 1.251 GB, free: 193 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/1.151, allocations: 84.62 kB / 1.251 GB, free: 192.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00231/1.153, allocations: 1.19 MB / 1.252 GB, free: 192.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.613e-05/1.153, allocations: 39.02 kB / 1.252 GB, free: 192.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/1.154, allocations: 0.5105 MB / 1.252 GB, free: 192.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/1.154, allocations: 122.7 kB / 1.252 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.184e-05/1.154, allocations: 50.47 kB / 1.253 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.321e-05/1.154, allocations: 326.4 kB / 1.253 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005014/1.155, allocations: 235.4 kB / 1.253 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006749/1.155, allocations: 0.5607 MB / 1.254 GB, free: 191.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009943/1.156, allocations: 0.6886 MB / 1.254 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/1.156, allocations: 4.688 kB / 1.254 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002355/1.159, allocations: 1.156 MB / 1.255 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.159, allocations: 267.3 kB / 1.256 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.159, allocations: 8.125 kB / 1.256 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/1.16, allocations: 401.8 kB / 1.256 GB, free: 191.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/1.161, allocations: 71.2 kB / 1.256 GB, free: 191.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009223/1.161, allocations: 1.052 MB / 1.257 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/1.163, allocations: 92.56 kB / 1.257 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/1.163, allocations: 25.28 kB / 1.257 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.715e-06/1.163, allocations: 4.812 kB / 1.257 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001438/1.164, allocations: 0.8139 MB / 1.258 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/1.164, allocations: 6.281 kB / 1.258 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006213/1.165, allocations: 259.4 kB / 1.258 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/1.165, allocations: 73.44 kB / 1.258 GB, free: 190.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/1.169, allocations: 3.105 MB / 1.261 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/1.17, allocations: 93.39 kB / 1.262 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.017e-05/1.17, allocations: 24 kB / 1.262 GB, free: 189.1 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 (35): * Single equations (assignments): 33 * 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,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0006097/1.17, allocations: 478.7 kB / 1.262 GB, free: 188.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/1.171, allocations: 114.9 kB / 1.262 GB, free: 188.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/1.172, allocations: 0.8235 MB / 1.263 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/1.172, allocations: 10.03 kB / 1.263 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/1.172, allocations: 0 / 1.263 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/1.172, allocations: 1.266 kB / 1.263 GB, free: 188.7 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.003198/1.175, allocations: 2.169 MB / 1.265 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/1.175, allocations: 0 / 1.265 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/1.176, allocations: 52.8 kB / 1.265 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005302/1.176, allocations: 210.6 kB / 1.265 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/1.176, allocations: 10.09 kB / 1.265 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007952/1.177, allocations: 0.8817 MB / 1.266 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.177, allocations: 2.234 kB / 1.266 GB, free: 187.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/1.179, allocations: 0.8847 MB / 1.267 GB, free: 187 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005287/1.179, allocations: 243.3 kB / 1.267 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/1.179, allocations: 8.906 kB / 1.267 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008195/1.18, allocations: 67.53 kB / 1.267 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/1.18, allocations: 36 kB / 1.267 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/1.18, allocations: 14.39 kB / 1.267 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001626/1.182, allocations: 0.8339 MB / 1.268 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.182, allocations: 4 kB / 1.268 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001964/1.184, allocations: 0.504 MB / 1.269 GB, free: 186.7 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 (22): * Single equations (assignments): 19 * 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,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005389/1.185, allocations: 179.2 kB / 1.269 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002352/1.187, allocations: 1.176 MB / 1.27 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.187, allocations: 0 / 1.27 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005474/1.188, allocations: 257.8 kB / 1.27 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/1.192, allocations: 0.6454 MB / 1.271 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/1.197, allocations: 2.243 MB / 1.273 GB, free: 185.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009495/1.198, allocations: 1.214 MB / 1.274 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/1.198, allocations: 76.78 kB / 1.274 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of SimCode: time 6.12e-07/1.198, allocations: 0 / 1.274 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.03493/1.233, allocations: 22.36 MB / 1.296 GB, free: 174.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches