Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SeriesParallelDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_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_9_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.001156/0.001156, allocations: 99.27 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.00158/0.00158, allocations: 180.1 kB / 16.92 MB, free: 6.918 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.352/1.352, allocations: 223.3 MB / 241 MB, free: 5.34 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.432/2.432, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.000379, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6885/0.6889, allocations: 142.4 MB / 0.9557 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised): time 0.179/0.868, allocations: 163.4 MB / 1.115 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.006345/0.8744, allocations: 4.035 MB / 1.119 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000618/0.875, allocations: 11.94 kB / 1.119 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009629/0.876, allocations: 206.9 kB / 1.119 GB, free: 7.195 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.878, allocations: 0.6349 MB / 1.12 GB, free: 6.559 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.8795, allocations: 437.2 kB / 1.12 GB, free: 6.137 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004309/0.8838, allocations: 3.814 MB / 1.124 GB, free: 2.312 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003152/0.887, allocations: 2.359 MB / 1.126 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00254/0.8896, allocations: 1.12 MB / 1.128 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.8912, allocations: 0.8674 MB / 1.128 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000314/0.8915, allocations: 44 kB / 1.128 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002138/0.8937, allocations: 0.8964 MB / 1.129 GB, free: 13 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0005901/0.8943, allocations: 330.7 kB / 1.13 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.8956, allocations: 0.5962 MB / 1.13 GB, free: 12.07 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001748/0.8973, allocations: 1.165 MB / 1.131 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.8974, allocations: 0 / 1.131 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.325e-06/0.8974, allocations: 0 / 1.131 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.435e-05/0.8974, allocations: 0 / 1.131 GB, free: 10.91 MB / 0.8887 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.00306/0.9005, allocations: 1.475 MB / 1.133 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.9006, allocations: 12.03 kB / 1.133 GB, free: 9.359 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009714/0.9015, allocations: 202.3 kB / 1.133 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.9031, allocations: 0.885 MB / 1.134 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.9032, allocations: 49.31 kB / 1.134 GB, free: 8.172 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.9034, allocations: 64 kB / 1.134 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.9051, allocations: 0.9909 MB / 1.135 GB, free: 7.039 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.9051, allocations: 0 / 1.135 GB, free: 7.039 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.9052, allocations: 24 kB / 1.135 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.9052, allocations: 16 kB / 1.135 GB, free: 7 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.9066, allocations: 0.8077 MB / 1.136 GB, free: 6.195 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 preOpt removeSimpleEquations (simulation): time 0.005587/0.9122, allocations: 4.804 MB / 1.14 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002811/0.9151, allocations: 4.026 MB / 1.144 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005747/0.9157, allocations: 353.2 kB / 1.145 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003396/0.916, allocations: 194.5 kB / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006065/0.9167, allocations: 340.9 kB / 1.145 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000432/0.9171, allocations: 27.69 kB / 1.145 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=35): time 3.136e-06/0.9171, allocations: 4 kB / 1.145 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of matching and sorting (n=35): time 0.005612/0.9227, allocations: 1.771 MB / 1.147 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.9228, allocations: 85.11 kB / 1.147 GB, free: 9.328 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.9248, allocations: 1.185 MB / 1.148 GB, free: 8.129 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.873e-05/0.9249, allocations: 37.69 kB / 1.148 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005095/0.9255, allocations: 0.5121 MB / 1.149 GB, free: 7.57 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.9256, allocations: 118.3 kB / 1.149 GB, free: 7.453 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.493e-05/0.9257, allocations: 49.69 kB / 1.149 GB, free: 7.398 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.9259, allocations: 329.9 kB / 1.149 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/0.9263, allocations: 236.9 kB / 1.149 GB, free: 6.84 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007258/0.9271, allocations: 0.5602 MB / 1.15 GB, free: 6.137 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.9282, allocations: 0.701 MB / 1.151 GB, free: 5.355 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.9282, allocations: 4 kB / 1.151 GB, free: 5.352 MB / 0.9044 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002705/0.9309, allocations: 1.142 MB / 1.152 GB, free: 4.191 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.9311, allocations: 281.1 kB / 1.152 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.9312, allocations: 4 kB / 1.152 GB, free: 3.832 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.9326, allocations: 400.2 kB / 1.152 GB, free: 3.438 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.933, allocations: 75.88 kB / 1.153 GB, free: 3.363 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.9342, allocations: 1.053 MB / 1.154 GB, free: 2.285 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.9353, allocations: 91.88 kB / 1.154 GB, free: 2.195 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-05/0.9354, allocations: 24 kB / 1.154 GB, free: 2.172 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.9354, allocations: 4 kB / 1.154 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001592/0.937, allocations: 0.8097 MB / 1.154 GB, free: 1.348 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.9371, allocations: 20.5 kB / 1.155 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000674/0.9377, allocations: 253.5 kB / 1.155 GB, free: 1.078 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.9381, allocations: 71.88 kB / 1.155 GB, free: 1.008 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/0.9422, allocations: 3.108 MB / 1.158 GB, free: 13.77 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.9434, allocations: 91.81 kB / 1.158 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.571e-05/0.9435, allocations: 24 kB / 1.158 GB, free: 13.66 MB / 0.92 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.0006713/0.9441, allocations: 485.7 kB / 1.158 GB, free: 13.17 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.9444, allocations: 106.7 kB / 1.159 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.9461, allocations: 0.8165 MB / 1.159 GB, free: 12.24 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.9461, allocations: 8 kB / 1.159 GB, free: 12.23 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.9461, allocations: 0 / 1.159 GB, free: 12.23 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.9461, allocations: 3.984 kB / 1.159 GB, free: 12.23 MB / 0.92 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.003487/0.9496, allocations: 2.161 MB / 1.161 GB, free: 9.926 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/0.9496, allocations: 4 kB / 1.161 GB, free: 9.922 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.9499, allocations: 51.89 kB / 1.161 GB, free: 9.871 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005086/0.9504, allocations: 216.8 kB / 1.162 GB, free: 9.656 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.9505, allocations: 11.94 kB / 1.162 GB, free: 9.645 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008778/0.9514, allocations: 0.8879 MB / 1.163 GB, free: 8.73 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.9514, allocations: 3.938 kB / 1.163 GB, free: 8.727 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.9529, allocations: 0.8828 MB / 1.163 GB, free: 7.805 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004632/0.9534, allocations: 239.7 kB / 1.164 GB, free: 7.551 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.9535, allocations: 8 kB / 1.164 GB, free: 7.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/0.9543, allocations: 75.75 kB / 1.164 GB, free: 7.469 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.153e-05/0.9544, allocations: 27.97 kB / 1.164 GB, free: 7.441 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.9544, allocations: 15.98 kB / 1.164 GB, free: 7.426 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001139/0.9556, allocations: 0.8329 MB / 1.165 GB, free: 6.586 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9556, allocations: 4 kB / 1.165 GB, free: 6.582 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001648/0.9572, allocations: 0.4993 MB / 1.165 GB, free: 6.082 MB / 0.92 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.0004967/0.9577, allocations: 178.6 kB / 1.165 GB, free: 5.906 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00245/0.9602, allocations: 1.173 MB / 1.166 GB, free: 4.699 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.9602, allocations: 4 kB / 1.166 GB, free: 4.695 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.9607, allocations: 251.7 kB / 1.167 GB, free: 4.449 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/0.9647, allocations: 0.6475 MB / 1.167 GB, free: 3.805 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.9682, allocations: 2.254 MB / 1.169 GB, free: 1.492 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008902/0.9692, allocations: 1.213 MB / 1.171 GB, free: 256 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.9694, allocations: 71.42 kB / 1.171 GB, free: 184 kB / 0.92 GB Notification: Performance of SimCode: time 5.91e-07/0.9694, allocations: 0 / 1.171 GB, free: 184 kB / 0.92 GB Notification: Performance of Templates: time 0.03517/1.005, allocations: 22.36 MB / 1.193 GB, free: 9.934 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches