Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example3.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.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 110.6 kB / 16.41 MB, free: 6.496 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.001411/0.001411, allocations: 187 kB / 17.34 MB, free: 5.762 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.251/2.251, allocations: 390.3 MB / 0.6655 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 59.91 kB / 0.9515 GB, free: 7.742 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8335/0.8349, allocations: 140.4 MB / 1.089 GB, free: 5.574 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example3): time 0.03601/0.8709, allocations: 32.76 MB / 1.121 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01764/0.8886, allocations: 10.48 MB / 1.131 GB, free: 6.715 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002687/0.8914, allocations: 49.31 kB / 1.131 GB, free: 6.699 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.8944, allocations: 0.7327 MB / 1.132 GB, free: 6.293 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005718/0.9001, allocations: 1.573 MB / 1.133 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004649/0.9048, allocations: 1.412 MB / 1.135 GB, free: 4.668 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008237/0.913, allocations: 4.888 MB / 1.139 GB, free: 2.418 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003885/0.917, allocations: 2.066 MB / 1.141 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005462/0.9225, allocations: 1.941 MB / 1.143 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003268/0.9258, allocations: 1.36 MB / 1.145 GB, free: 88 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000806/0.9266, allocations: 140.9 kB / 1.145 GB, free: 88 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004335/0.9309, allocations: 1.173 MB / 1.146 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001238/0.9322, allocations: 479.1 kB / 1.146 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.003129/0.9354, allocations: 1.004 MB / 1.147 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.007843/0.9432, allocations: 2.947 MB / 1.15 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.9433, allocations: 0 / 1.15 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9433, allocations: 0 / 1.15 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001316/0.9434, allocations: 1.375 kB / 1.15 GB, free: 13.79 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.008602/0.952, allocations: 2.379 MB / 1.152 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.9521, allocations: 10.03 kB / 1.152 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002715/0.9548, allocations: 384.9 kB / 1.153 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005317/0.9602, allocations: 1.731 MB / 1.155 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.9604, allocations: 81.47 kB / 1.155 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004628/0.9609, allocations: 105.2 kB / 1.155 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003721/0.9646, allocations: 1.315 MB / 1.156 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-05/0.9647, allocations: 5.5 kB / 1.156 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/0.9649, allocations: 39.64 kB / 1.156 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-05/0.9649, allocations: 23.97 kB / 1.156 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002605/0.9675, allocations: 1.027 MB / 1.157 GB, free: 10.17 MB / 0.9044 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.01031/0.9778, allocations: 6.545 MB / 1.163 GB, free: 4.832 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.9795, allocations: 0.6362 MB / 1.164 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008143/0.9803, allocations: 411.2 kB / 1.164 GB, free: 4.305 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003551/0.9839, allocations: 1.712 MB / 1.166 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000903/0.9848, allocations: 385.8 kB / 1.166 GB, free: 2.559 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008479/0.9857, allocations: 74.69 kB / 1.167 GB, free: 2.512 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 5.48e-06/0.9857, allocations: 0 / 1.167 GB, free: 2.512 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.004098/0.9898, allocations: 1.377 MB / 1.168 GB, free: 1.75 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.9899, allocations: 60.16 kB / 1.168 GB, free: 1.684 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.9936, allocations: 1.795 MB / 1.17 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.9938, allocations: 44.2 kB / 1.17 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009516/0.9947, allocations: 0.8512 MB / 1.171 GB, free: 15.91 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.995, allocations: 156 kB / 1.171 GB, free: 15.78 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003719/0.9954, allocations: 186.8 kB / 1.171 GB, free: 15.67 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.9955, allocations: 342.2 kB / 1.171 GB, free: 15.34 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007986/0.9963, allocations: 341.5 kB / 1.172 GB, free: 15.17 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.9975, allocations: 0.7637 MB / 1.172 GB, free: 14.42 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.9993, allocations: 1.031 MB / 1.173 GB, free: 13.62 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/0.9993, allocations: 3.812 kB / 1.173 GB, free: 13.62 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003354/1.003, allocations: 1.35 MB / 1.175 GB, free: 12.9 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/1.003, allocations: 39.88 kB / 1.175 GB, free: 12.87 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/1.003, allocations: 10.53 kB / 1.175 GB, free: 12.87 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006832/1.003, allocations: 186.3 kB / 1.175 GB, free: 12.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007171/1.004, allocations: 177.2 kB / 1.175 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007293/1.005, allocations: 0.757 MB / 1.176 GB, free: 12.1 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/1.006, allocations: 65.97 kB / 1.176 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/1.007, allocations: 51.28 kB / 1.176 GB, free: 12.05 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001592/1.008, allocations: 0.7358 MB / 1.177 GB, free: 11.63 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009387/1.009, allocations: 0.7223 MB / 1.177 GB, free: 10.9 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001538/1.011, allocations: 0.9697 MB / 1.178 GB, free: 10.13 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.181e-05/1.011, allocations: 3.844 kB / 1.178 GB, free: 10.13 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.002743/1.013, allocations: 1.309 MB / 1.18 GB, free: 9.391 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/1.014, allocations: 40.98 kB / 1.18 GB, free: 9.355 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/1.014, allocations: 9.719 kB / 1.18 GB, free: 9.355 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002469/1.014, allocations: 123.2 kB / 1.18 GB, free: 9.305 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006389/1.014, allocations: 175.6 kB / 1.18 GB, free: 9.258 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/1.017, allocations: 2.321 MB / 1.182 GB, free: 7.215 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/1.018, allocations: 72.69 kB / 1.182 GB, free: 7.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/1.018, allocations: 42.36 kB / 1.182 GB, free: 7.172 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 1 * 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003922/1.019, allocations: 244.3 kB / 1.182 GB, free: 6.945 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006085/1.019, allocations: 183.4 kB / 1.183 GB, free: 6.844 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/1.022, allocations: 1.036 MB / 1.184 GB, free: 6.273 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/1.022, allocations: 4.562 kB / 1.184 GB, free: 6.273 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/1.022, allocations: 1 kB / 1.184 GB, free: 6.273 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001706/1.024, allocations: 0.9896 MB / 1.185 GB, free: 5.57 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004857/1.029, allocations: 2.157 MB / 1.187 GB, free: 4.152 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/1.029, allocations: 1.219 kB / 1.187 GB, free: 4.152 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005089/1.029, allocations: 96.7 kB / 1.187 GB, free: 4.121 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/1.03, allocations: 130.1 kB / 1.187 GB, free: 4.055 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/1.03, allocations: 16.92 kB / 1.187 GB, free: 4.043 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005847/1.03, allocations: 0.7358 MB / 1.188 GB, free: 3.406 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.03, allocations: 1.406 kB / 1.188 GB, free: 3.406 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002991/1.033, allocations: 1.415 MB / 1.189 GB, free: 2.582 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/1.034, allocations: 294.7 kB / 1.189 GB, free: 2.336 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005305/1.035, allocations: 15.61 kB / 1.189 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/1.036, allocations: 39.69 kB / 1.189 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/1.036, allocations: 46.81 kB / 1.189 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-05/1.036, allocations: 26.52 kB / 1.189 GB, free: 2.266 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002604/1.039, allocations: 1.244 MB / 1.191 GB, free: 1.578 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/1.039, allocations: 0 / 1.191 GB, free: 1.578 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003858/1.043, allocations: 0.7836 MB / 1.191 GB, free: 1.43 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.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 (39): * Single equations (assignments): 33 * 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 {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001474/1.044, allocations: 397.8 kB / 1.192 GB, free: 1.203 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003745/1.048, allocations: 1.525 MB / 1.193 GB, free: 364 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/1.048, allocations: 4.312 kB / 1.193 GB, free: 360 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0008989/1.049, allocations: 354.3 kB / 1.194 GB, free: 196 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00454/1.053, allocations: 0.7682 MB / 1.194 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00603/1.059, allocations: 2.941 MB / 1.197 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/1.061, allocations: 1.487 MB / 1.199 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/1.061, allocations: 139.4 kB / 1.199 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of SimCode: time 8.22e-07/1.061, allocations: 0 / 1.199 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of Templates: time 0.04922/1.11, allocations: 37.6 MB / 1.236 GB, free: 5.711 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches