Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 213.2 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.497/1.497, allocations: 230.6 MB / 256 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.214/3.214, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_MinimumFlow_Validation_Setpoint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_MinimumFlow_Validation_Setpoint",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 64.38 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3496, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint): time 0.002315/0.3519, allocations: 0.9542 MB / 1.364 GB, free: 13.13 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3538, allocations: 1.277 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.872e-05/0.3539, allocations: 4 kB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.3543, allocations: 111.5 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.3544, allocations: 59.8 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/0.3551, allocations: 174 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006875/0.3558, allocations: 0.55 MB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.3561, allocations: 120.2 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.3564, allocations: 227.5 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.3567, allocations: 199.4 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.3568, allocations: 40 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002031/0.357, allocations: 63.97 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0003613/0.3574, allocations: 251.4 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3576, allocations: 167.2 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008842/0.3585, allocations: 0.6699 MB / 1.368 GB, free: 9.23 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3585, allocations: 4 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3585, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.228e-06/0.3585, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001402/0.3599, allocations: 0.6534 MB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.36, allocations: 8.031 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.932e-05/0.36, allocations: 58.73 kB / 1.369 GB, free: 8.465 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3602, allocations: 48.66 kB / 1.369 GB, free: 8.418 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007564/0.3609, allocations: 382.7 kB / 1.369 GB, free: 8.023 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.361, allocations: 28.8 kB / 1.369 GB, free: 7.996 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3611, allocations: 32.38 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005575/0.3616, allocations: 303.7 kB / 1.37 GB, free: 7.664 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3616, allocations: 3.938 kB / 1.37 GB, free: 7.66 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.3617, allocations: 12 kB / 1.37 GB, free: 7.648 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3617, allocations: 4 kB / 1.37 GB, free: 7.645 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/0.3621, allocations: 253.6 kB / 1.37 GB, free: 7.395 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.3639, allocations: 0.8174 MB / 1.371 GB, free: 6.535 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006888/0.3646, allocations: 374.2 kB / 1.371 GB, free: 6.16 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.3648, allocations: 136.8 kB / 1.371 GB, free: 6.023 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3649, allocations: 0 / 1.371 GB, free: 6.023 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.3652, allocations: 231.1 kB / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.3653, allocations: 0 / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of matching and sorting (n=21): time 0.0008273/0.3661, allocations: 483 kB / 1.372 GB, free: 5.309 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.3661, allocations: 59.34 kB / 1.372 GB, free: 5.238 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005756/0.3667, allocations: 473.6 kB / 1.372 GB, free: 4.77 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.3668, allocations: 37.7 kB / 1.372 GB, free: 4.727 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.367, allocations: 189 kB / 1.373 GB, free: 4.535 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.042e-05/0.367, allocations: 55.55 kB / 1.373 GB, free: 4.48 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.3672, allocations: 109.6 kB / 1.373 GB, free: 4.367 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3674, allocations: 350.8 kB / 1.373 GB, free: 4.016 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3675, allocations: 99.88 kB / 1.373 GB, free: 3.918 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008425/0.3684, allocations: 0.9615 MB / 1.374 GB, free: 2.734 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.3687, allocations: 243.1 kB / 1.374 GB, free: 2.477 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3687, allocations: 0 / 1.374 GB, free: 2.477 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005271/0.3692, allocations: 315.2 kB / 1.375 GB, free: 2.164 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3693, allocations: 4 kB / 1.375 GB, free: 2.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3693, allocations: 8.188 kB / 1.375 GB, free: 2.152 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3693, allocations: 0 / 1.375 GB, free: 2.152 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.3694, allocations: 31.92 kB / 1.375 GB, free: 2.121 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3695, allocations: 4 kB / 1.375 GB, free: 2.117 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.3701, allocations: 75.75 kB / 1.375 GB, free: 2.043 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3701, allocations: 8 kB / 1.375 GB, free: 2.035 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,u1Equ.intTimTab.idx,$PRE.u1Equ.intTimTab.idx,u1Equ.intTimTab.y[2],$PRE.u1Equ.intTimTab.y[2],u1Equ.intTimTab.y[1],$PRE.u1Equ.intTimTab.y[1],u1Equ.y[2],u1Equ.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002556/0.3704, allocations: 225.6 kB / 1.375 GB, free: 1.805 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.204e-05/0.3704, allocations: 35.81 kB / 1.375 GB, free: 1.77 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.371, allocations: 382.3 kB / 1.375 GB, free: 1.395 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.371, allocations: 0 / 1.375 GB, free: 1.395 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.371, allocations: 0 / 1.375 GB, free: 1.395 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.371, allocations: 3.984 kB / 1.375 GB, free: 1.391 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.3714, allocations: 316.5 kB / 1.376 GB, free: 1.039 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3714, allocations: 0 / 1.376 GB, free: 1.039 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.794e-05/0.3715, allocations: 27.86 kB / 1.376 GB, free: 1.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3715, allocations: 4 kB / 1.376 GB, free: 1.008 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3715, allocations: 4 kB / 1.376 GB, free: 1.004 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.3715, allocations: 15.97 kB / 1.376 GB, free: 0.9883 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3715, allocations: 0 / 1.376 GB, free: 0.9883 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005324/0.3721, allocations: 395.1 kB / 1.376 GB, free: 0.5859 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.54e-05/0.3722, allocations: 43.73 kB / 1.376 GB, free: 0.543 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.3722, allocations: 0 / 1.376 GB, free: 0.543 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3723, allocations: 11.98 kB / 1.376 GB, free: 0.5312 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.394e-05/0.3724, allocations: 19.92 kB / 1.376 GB, free: 0.5117 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.3724, allocations: 11.98 kB / 1.376 GB, free: 0.5 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004112/0.3728, allocations: 343.1 kB / 1.376 GB, free: 168 kB / 1.061 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3728, allocations: 4 kB / 1.376 GB, free: 164 kB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003469/0.3732, allocations: 67.89 kB / 1.377 GB, free: 96 kB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,u1Equ.y[1],u1Equ.y[2],u1Equ.intTimTab.y[1],u1Equ.intTimTab.y[2],u1Equ.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009914/0.3741, allocations: 0.9536 MB / 1.377 GB, free: 15.11 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004877/0.3746, allocations: 255.8 kB / 1.378 GB, free: 14.86 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3746, allocations: 0 / 1.378 GB, free: 14.86 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.3748, allocations: 135.9 kB / 1.378 GB, free: 14.73 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.3751, allocations: 29.36 kB / 1.378 GB, free: 14.7 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004762/0.3799, allocations: 3.683 MB / 1.381 GB, free: 10.91 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.3801, allocations: 219.8 kB / 1.382 GB, free: 10.67 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002104/0.3804, allocations: 78.25 kB / 1.382 GB, free: 10.59 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.3805, allocations: 103.4 kB / 1.382 GB, free: 10.49 MB / 1.076 GB Notification: Performance of SimCode: time 1.002e-06/0.3805, allocations: 0 / 1.382 GB, free: 10.49 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03834/0.4189, allocations: 9.206 MB / 1.391 GB, free: 1.531 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.76, allocations: 11.17 kB / 1.391 GB, free: 1.527 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_MinimumFlow_Validation_Setpoint_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_MinimumFlow_Validation_Setpoint.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_MinimumFlow_Validation_Setpoint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.57611647527665]