Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.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.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1") translateModel(Buildings.Fluid.Examples.Performance.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008119/0.000812, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008678/0.0008677, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.3 MB / 240 MB, free: 5.438 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.41/2.41, allocations: 390.9 MB / 0.666 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004009/0.000401, allocations: 8 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7335/0.7339, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example1v1): time 0.06283/0.7968, allocations: 66.61 MB / 1.019 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02569/0.8225, allocations: 15.93 MB / 1.035 GB, free: 12.81 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004344/0.8269, allocations: 75.5 kB / 1.035 GB, free: 12.73 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.8301, allocations: 0.6637 MB / 1.036 GB, free: 12.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007032/0.8371, allocations: 1.94 MB / 1.038 GB, free: 10.12 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.006004/0.8431, allocations: 1.571 MB / 1.039 GB, free: 8.562 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01468/0.8578, allocations: 9.066 MB / 1.048 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0106/0.8685, allocations: 5.324 MB / 1.053 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008264/0.8768, allocations: 2.699 MB / 1.056 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005875/0.8827, allocations: 2.318 MB / 1.058 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001378/0.8842, allocations: 132 kB / 1.058 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004774/0.889, allocations: 1.01 MB / 1.059 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.00172/0.8907, allocations: 0.6105 MB / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.002248/0.893, allocations: 0.6522 MB / 1.06 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.006274/0.8993, allocations: 3.491 MB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.8993, allocations: 8 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8993, allocations: 0 / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0002277/0.8995, allocations: 0 / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.01028/0.9098, allocations: 3.874 MB / 1.068 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.9099, allocations: 8.031 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003359/0.9133, allocations: 0.6593 MB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007242/0.9205, allocations: 2.533 MB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.9208, allocations: 135.8 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007366/0.9215, allocations: 188 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005988/0.9275, allocations: 2.448 MB / 1.074 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/0.9276, allocations: 7.938 kB / 1.074 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001939/0.9278, allocations: 68 kB / 1.074 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.9278, allocations: 40 kB / 1.074 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004257/0.9321, allocations: 2.126 MB / 1.076 GB, free: 2.777 MB / 0.8262 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.02099/0.9531, allocations: 12.23 MB / 1.088 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/0.9564, allocations: 1.573 MB / 1.089 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.9583, allocations: 1.121 MB / 1.09 GB, free: 3.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007602/0.9659, allocations: 4.127 MB / 1.094 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001704/0.9676, allocations: 0.9184 MB / 1.095 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001974/0.9696, allocations: 458.5 kB / 1.096 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=96): time 5.45e-06/0.9696, allocations: 0 / 1.096 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=96): time 0.01583/0.9855, allocations: 5.291 MB / 1.101 GB, free: 8.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.9856, allocations: 60.41 kB / 1.101 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005666/0.9912, allocations: 3.02 MB / 1.104 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002836/0.9915, allocations: 61.69 kB / 1.104 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.9931, allocations: 1.424 MB / 1.105 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004475/0.9935, allocations: 351.1 kB / 1.106 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.9937, allocations: 28 kB / 1.106 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.9938, allocations: 361.9 kB / 1.106 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.9954, allocations: 0.7261 MB / 1.107 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.9977, allocations: 1.525 MB / 1.108 GB, free: 184 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.9996, allocations: 0.9339 MB / 1.109 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/0.9996, allocations: 4 kB / 1.109 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.007847/1.007, allocations: 3.011 MB / 1.112 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004607/1.008, allocations: 0.5379 MB / 1.113 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/1.008, allocations: 16 kB / 1.113 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/1.011, allocations: 0.7777 MB / 1.113 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/1.012, allocations: 313.3 kB / 1.114 GB, free: 10.35 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/1.015, allocations: 2.178 MB / 1.116 GB, free: 8.121 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/1.018, allocations: 260.6 kB / 1.116 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/1.018, allocations: 75.97 kB / 1.116 GB, free: 7.793 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/1.018, allocations: 7.938 kB / 1.116 GB, free: 7.785 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004789/1.023, allocations: 2.364 MB / 1.118 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.525e-05/1.023, allocations: 12 kB / 1.118 GB, free: 5.391 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/1.025, allocations: 0.5952 MB / 1.119 GB, free: 4.789 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/1.026, allocations: 285.4 kB / 1.119 GB, free: 4.508 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008429/1.034, allocations: 6.506 MB / 1.126 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003069/1.037, allocations: 252.6 kB / 1.126 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000307/1.038, allocations: 67.98 kB / 1.126 GB, free: 13.41 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 129 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 40,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002003/1.04, allocations: 0.821 MB / 1.127 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009727/1.041, allocations: 296.2 kB / 1.127 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005805/1.046, allocations: 2.554 MB / 1.129 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/1.047, allocations: 19.92 kB / 1.129 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/1.047, allocations: 0 / 1.129 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003972/1.051, allocations: 2.252 MB / 1.132 GB, free: 7.367 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 postOpt removeSimpleEquations (simulation): time 0.009989/1.061, allocations: 4.804 MB / 1.136 GB, free: 2.469 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/1.061, allocations: 4.062 kB / 1.136 GB, free: 2.465 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008638/1.061, allocations: 165.7 kB / 1.137 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/1.063, allocations: 0.5479 MB / 1.137 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.794e-05/1.063, allocations: 23.98 kB / 1.137 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/1.065, allocations: 2.088 MB / 1.139 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.065, allocations: 0 / 1.139 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006463/1.071, allocations: 3.443 MB / 1.143 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/1.073, allocations: 0.5673 MB / 1.143 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008329/1.074, allocations: 20 kB / 1.143 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/1.077, allocations: 215.6 kB / 1.143 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.077, allocations: 72.88 kB / 1.143 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/1.077, allocations: 35.98 kB / 1.143 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.004405/1.081, allocations: 2.064 MB / 1.145 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of sort global known variables: time 6.52e-07/1.081, allocations: 0 / 1.145 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.006224/1.087, allocations: 1.486 MB / 1.147 GB, free: 7.641 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.vol.dynBal.U,hea.outCon.T) * 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 (58): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 5,1 40} Notification: Performance of Backend phase and start with SimCode phase: time 0.001444/1.089, allocations: 455 kB / 1.147 GB, free: 7.195 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006951/1.096, allocations: 3.348 MB / 1.151 GB, free: 3.801 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.096, allocations: 0 / 1.151 GB, free: 3.801 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001816/1.098, allocations: 0.8552 MB / 1.151 GB, free: 2.949 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008505/1.106, allocations: 1.54 MB / 1.153 GB, free: 1.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/1.118, allocations: 6.004 MB / 1.159 GB, free: 11.38 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/1.12, allocations: 2.037 MB / 1.161 GB, free: 9.312 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.003665/1.124, allocations: 0.6796 MB / 1.161 GB, free: 8.629 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008681/1.125, allocations: 203.4 kB / 1.162 GB, free: 8.43 MB / 0.92 GB Notification: Performance of SimCode: time 1.302e-06/1.125, allocations: 0 / 1.162 GB, free: 8.43 MB / 0.92 GB Notification: Performance of Templates: time 0.0975/1.222, allocations: 57.41 MB / 1.218 GB, free: 15.74 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example1v1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches