Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009735/0.009735, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.381/1.381, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.42/2.42, allocations: 390.9 MB / 0.6663 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003334, allocations: 19.98 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.648/0.6483, allocations: 142.4 MB / 0.955 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised): time 0.1664/0.8148, allocations: 157.3 MB / 1.109 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004919/0.8197, allocations: 3.577 MB / 1.112 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.8201, allocations: 15.94 kB / 1.112 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0005404/0.8206, allocations: 139.2 kB / 1.112 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.822, allocations: 498 kB / 1.113 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.8232, allocations: 392 kB / 1.113 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003431/0.8266, allocations: 3.496 MB / 1.117 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.8277, allocations: 0.7465 MB / 1.117 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001691/0.8294, allocations: 0.9102 MB / 1.118 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009463/0.8304, allocations: 0.7194 MB / 1.119 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 8.941e-05/0.8305, allocations: 32 kB / 1.119 GB, free: 7.121 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.832, allocations: 0.799 MB / 1.12 GB, free: 6.32 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003147/0.8324, allocations: 286.9 kB / 1.12 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0006869/0.8331, allocations: 0.5262 MB / 1.12 GB, free: 5.504 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001583/0.8347, allocations: 1.37 MB / 1.122 GB, free: 4.129 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.8347, allocations: 0 / 1.122 GB, free: 4.129 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.496e-06/0.8347, allocations: 0 / 1.122 GB, free: 4.129 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.187e-05/0.8347, allocations: 3.938 kB / 1.122 GB, free: 4.125 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002073/0.8368, allocations: 1.264 MB / 1.123 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.8368, allocations: 8.031 kB / 1.123 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007504/0.8376, allocations: 190.4 kB / 1.123 GB, free: 2.605 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.8388, allocations: 0.8061 MB / 1.124 GB, free: 1.742 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.8388, allocations: 41 kB / 1.124 GB, free: 1.699 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.132e-05/0.8389, allocations: 60 kB / 1.124 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.8401, allocations: 0.7927 MB / 1.125 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.8402, allocations: 7.938 kB / 1.125 GB, free: 0.7656 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.8402, allocations: 27.94 kB / 1.125 GB, free: 0.7383 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.8403, allocations: 15.94 kB / 1.125 GB, free: 0.7227 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009366/0.8412, allocations: 0.5423 MB / 1.125 GB, free: 184 kB / 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.004154/0.8454, allocations: 4.599 MB / 1.13 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007355/0.8461, allocations: 422.3 kB / 1.13 GB, free: 10.78 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004021/0.8465, allocations: 252.6 kB / 1.131 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002974/0.8468, allocations: 198.2 kB / 1.131 GB, free: 10.3 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005148/0.8474, allocations: 301.6 kB / 1.131 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.285e-06/0.8474, allocations: 0 / 1.131 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.004021/0.8514, allocations: 1.351 MB / 1.132 GB, free: 8.605 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/0.8515, allocations: 81.11 kB / 1.132 GB, free: 8.508 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.8529, allocations: 1.122 MB / 1.134 GB, free: 7.367 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.8529, allocations: 33.7 kB / 1.134 GB, free: 7.328 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004583/0.8534, allocations: 492.2 kB / 1.134 GB, free: 6.84 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.8535, allocations: 114.4 kB / 1.134 GB, free: 6.727 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.8536, allocations: 41.69 kB / 1.134 GB, free: 6.68 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8537, allocations: 326 kB / 1.135 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/0.8541, allocations: 220.6 kB / 1.135 GB, free: 6.137 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.8547, allocations: 0.5177 MB / 1.135 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009379/0.8557, allocations: 0.6463 MB / 1.136 GB, free: 4.762 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.8557, allocations: 7.938 kB / 1.136 GB, free: 4.754 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00241/0.8581, allocations: 1.046 MB / 1.137 GB, free: 3.691 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002153/0.8584, allocations: 276.7 kB / 1.137 GB, free: 3.34 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.8584, allocations: 8 kB / 1.137 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.8598, allocations: 360.5 kB / 1.138 GB, free: 2.977 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.8601, allocations: 67.84 kB / 1.138 GB, free: 2.91 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.8612, allocations: 1.006 MB / 1.139 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000752/0.8619, allocations: 99.44 kB / 1.139 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.862, allocations: 27.98 kB / 1.139 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.862, allocations: 4 kB / 1.139 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001414/0.8634, allocations: 0.7322 MB / 1.139 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.8635, allocations: 4 kB / 1.139 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005437/0.864, allocations: 214.9 kB / 1.14 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.8642, allocations: 63.91 kB / 1.14 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003747/0.868, allocations: 3.079 MB / 1.143 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/0.8688, allocations: 91.62 kB / 1.143 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.8689, allocations: 23.94 kB / 1.143 GB, free: 13.38 MB / 0.9044 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 (34): * Single equations (assignments): 32 * 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.0005529/0.8694, allocations: 472.7 kB / 1.143 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.8696, allocations: 102.7 kB / 1.143 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.871, allocations: 0.714 MB / 1.144 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.871, allocations: 7.984 kB / 1.144 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.871, allocations: 3.938 kB / 1.144 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.871, allocations: 0 / 1.144 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/0.8736, allocations: 1.627 MB / 1.146 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.8736, allocations: 4 kB / 1.146 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.8737, allocations: 23.98 kB / 1.146 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004966/0.8742, allocations: 222.6 kB / 1.146 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.8743, allocations: 8 kB / 1.146 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009952/0.8753, allocations: 0.9854 MB / 1.147 GB, free: 9.098 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8753, allocations: 3.938 kB / 1.147 GB, free: 9.094 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.8767, allocations: 0.8383 MB / 1.148 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004016/0.8771, allocations: 223.8 kB / 1.148 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.831e-05/0.8772, allocations: 8 kB / 1.148 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005027/0.8777, allocations: 47.89 kB / 1.148 GB, free: 7.922 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.8778, allocations: 43.83 kB / 1.148 GB, free: 7.879 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.8779, allocations: 8 kB / 1.148 GB, free: 7.871 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001045/0.8789, allocations: 0.7955 MB / 1.149 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8789, allocations: 0 / 1.149 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001401/0.8803, allocations: 435.4 kB / 1.149 GB, free: 6.641 MB / 0.9044 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 (12): * Single equations (assignments): 9 * 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004602/0.8808, allocations: 194 kB / 1.149 GB, free: 6.453 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00199/0.8828, allocations: 1.082 MB / 1.15 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.8828, allocations: 0 / 1.15 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005173/0.8834, allocations: 235 kB / 1.151 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.8859, allocations: 459.9 kB / 1.151 GB, free: 4.66 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.8889, allocations: 2.056 MB / 1.153 GB, free: 2.547 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/0.8896, allocations: 1.189 MB / 1.154 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000907/0.8906, allocations: 307.8 kB / 1.155 GB, free: 1.023 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.8907, allocations: 63.38 kB / 1.155 GB, free: 0.9609 MB / 0.9044 GB Notification: Performance of SimCode: time 6.72e-07/0.8907, allocations: 0 / 1.155 GB, free: 0.9609 MB / 0.9044 GB Notification: Performance of Templates: time 0.03121/0.9219, allocations: 18.81 MB / 1.173 GB, free: 14.38 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches