Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 108 kB / 15.6 MB, free: 132 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.00153/0.00153, allocations: 195 kB / 16.53 MB, free: 6.391 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: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.782/2.782, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 66.77 kB / 0.9121 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3607, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.03195/0.3927, allocations: 30.06 MB / 1.098 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01703/0.4098, allocations: 11.73 MB / 1.109 GB, free: 484 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.4118, allocations: 47.75 kB / 1.109 GB, free: 436 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.007725/0.4196, allocations: 3.917 MB / 1.113 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004218/0.4238, allocations: 1.528 MB / 1.114 GB, free: 10.97 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.4272, allocations: 1.404 MB / 1.116 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.008693/0.4359, allocations: 6.608 MB / 1.122 GB, free: 2.949 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002314/0.4382, allocations: 1.377 MB / 1.124 GB, free: 1.539 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003492/0.4417, allocations: 1.446 MB / 1.125 GB, free: 92 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.4437, allocations: 1.081 MB / 1.126 GB, free: 15 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004593/0.4441, allocations: 124 kB / 1.126 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.4472, allocations: 1.295 MB / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0007373/0.4479, allocations: 0.5178 MB / 1.128 GB, free: 13.07 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.4496, allocations: 0.9599 MB / 1.129 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.4536, allocations: 2.972 MB / 1.132 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4536, allocations: 0 / 1.132 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4537, allocations: 0 / 1.132 GB, free: 9.121 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.02e-05/0.4537, allocations: 4 kB / 1.132 GB, free: 9.117 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003466/0.4571, allocations: 2.344 MB / 1.134 GB, free: 6.703 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.4572, allocations: 16.03 kB / 1.134 GB, free: 6.688 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.459, allocations: 377.2 kB / 1.134 GB, free: 6.316 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/0.4623, allocations: 2.301 MB / 1.137 GB, free: 3.969 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-05/0.4624, allocations: 66.23 kB / 1.137 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.4626, allocations: 84 kB / 1.137 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.4643, allocations: 1.021 MB / 1.138 GB, free: 2.742 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.4643, allocations: 0 / 1.138 GB, free: 2.742 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.378e-05/0.4644, allocations: 32 kB / 1.138 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.4644, allocations: 20 kB / 1.138 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.4661, allocations: 0.761 MB / 1.139 GB, free: 1.93 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.005965/0.472, allocations: 5.267 MB / 1.144 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.4734, allocations: 0.5665 MB / 1.144 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006898/0.4741, allocations: 324.7 kB / 1.145 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002227/0.4763, allocations: 1.643 MB / 1.146 GB, free: 9.641 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007209/0.477, allocations: 334.8 kB / 1.147 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002815/0.4773, allocations: 63.28 kB / 1.147 GB, free: 9.238 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=42): time 2.054e-06/0.4773, allocations: 0 / 1.147 GB, free: 9.238 MB / 0.9044 GB Notification: Performance of matching and sorting (n=42): time 0.003241/0.4806, allocations: 1.238 MB / 1.148 GB, free: 7.969 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.4806, allocations: 55.41 kB / 1.148 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.4828, allocations: 1.857 MB / 1.15 GB, free: 6 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.4829, allocations: 37.7 kB / 1.15 GB, free: 5.957 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006546/0.4835, allocations: 0.7869 MB / 1.15 GB, free: 5.16 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.4837, allocations: 153.9 kB / 1.151 GB, free: 5.008 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.484, allocations: 266.3 kB / 1.151 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4841, allocations: 357.9 kB / 1.151 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008216/0.485, allocations: 460.9 kB / 1.152 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.4861, allocations: 0.8369 MB / 1.152 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00172/0.4878, allocations: 1.173 MB / 1.154 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.4878, allocations: 7.938 kB / 1.154 GB, free: 1.633 MB / 0.9044 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002956/0.4908, allocations: 1.596 MB / 1.155 GB, free: 24 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.4908, allocations: 37.69 kB / 1.155 GB, free: 15.98 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.4909, allocations: 11.94 kB / 1.155 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000648/0.4915, allocations: 185.3 kB / 1.155 GB, free: 15.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006908/0.4922, allocations: 195.7 kB / 1.156 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006786/0.4929, allocations: 0.7823 MB / 1.156 GB, free: 14.79 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4939, allocations: 64.89 kB / 1.156 GB, free: 14.72 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.494, allocations: 47.98 kB / 1.156 GB, free: 14.68 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001358/0.4954, allocations: 0.8652 MB / 1.157 GB, free: 13.81 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000978/0.4964, allocations: 0.8149 MB / 1.158 GB, free: 12.83 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001515/0.4979, allocations: 1.133 MB / 1.159 GB, free: 11.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.21e-06/0.4979, allocations: 4 kB / 1.159 GB, free: 11.57 MB / 0.92 GB Notification: Performance of matching and sorting (n=150) (initialization_lambda0): time 0.002541/0.5005, allocations: 1.588 MB / 1.161 GB, free: 9.945 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.5005, allocations: 41.7 kB / 1.161 GB, free: 9.898 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.5005, allocations: 8 kB / 1.161 GB, free: 9.891 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.5007, allocations: 112.8 kB / 1.161 GB, free: 9.777 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006464/0.5014, allocations: 191.8 kB / 1.161 GB, free: 9.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.5035, allocations: 2.356 MB / 1.163 GB, free: 7.078 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.5045, allocations: 77.92 kB / 1.163 GB, free: 7.004 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/0.5046, allocations: 47.94 kB / 1.164 GB, free: 6.957 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 101 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002654/0.5049, allocations: 246.8 kB / 1.164 GB, free: 6.711 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.5051, allocations: 161.8 kB / 1.164 GB, free: 6.551 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.5072, allocations: 0.916 MB / 1.165 GB, free: 5.621 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.5072, allocations: 4 kB / 1.165 GB, free: 5.617 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.5072, allocations: 0 / 1.165 GB, free: 5.617 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001495/0.5087, allocations: 0.9037 MB / 1.166 GB, free: 4.641 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.5119, allocations: 1.987 MB / 1.168 GB, free: 2.582 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.5119, allocations: 4.062 kB / 1.168 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.5124, allocations: 83.86 kB / 1.168 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002679/0.5126, allocations: 124.7 kB / 1.168 GB, free: 2.371 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.5127, allocations: 15.98 kB / 1.168 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005422/0.5132, allocations: 0.7511 MB / 1.169 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5132, allocations: 0 / 1.169 GB, free: 1.578 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.5155, allocations: 1.253 MB / 1.17 GB, free: 300 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.5159, allocations: 311 kB / 1.17 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.5161, allocations: 8 kB / 1.17 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/0.5168, allocations: 43.95 kB / 1.17 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.106e-05/0.5169, allocations: 40 kB / 1.17 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.5169, allocations: 19.98 kB / 1.17 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001505/0.5184, allocations: 1.258 MB / 1.171 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5184, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001958/0.5204, allocations: 0.8034 MB / 1.172 GB, free: 13.77 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000966/0.5214, allocations: 0.5146 MB / 1.173 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003397/0.5248, allocations: 1.925 MB / 1.175 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.5248, allocations: 4 kB / 1.175 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007734/0.5256, allocations: 333.2 kB / 1.175 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/0.5284, allocations: 0.804 MB / 1.176 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/0.5335, allocations: 3.04 MB / 1.179 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009083/0.5345, allocations: 1.44 MB / 1.18 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00143/0.5359, allocations: 441.1 kB / 1.181 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.5362, allocations: 135.4 kB / 1.181 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of SimCode: time 3.6e-07/0.5362, allocations: 0 / 1.181 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of Templates: time 0.05356/0.5898, allocations: 33.32 MB / 1.213 GB, free: 4.156 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches