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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007912/0.007912, allocations: 100.8 kB / 15.73 MB, free: 5.605 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.001913/0.001913, allocations: 189.4 kB / 16.67 MB, free: 5.527 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.663/2.663, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 68.69 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2904, allocations: 162.3 MB / 1.242 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.MinimumFlow.Validation.Setpoint): time 0.002253/0.2927, allocations: 1.006 MB / 1.243 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2945, allocations: 1.248 MB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2946, allocations: 4 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.295, allocations: 107.6 kB / 1.244 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.2951, allocations: 67.72 kB / 1.244 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.2957, allocations: 175 kB / 1.244 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000652/0.2963, allocations: 0.55 MB / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.2966, allocations: 183.6 kB / 1.245 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.2969, allocations: 235.5 kB / 1.245 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.2972, allocations: 183.4 kB / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.2973, allocations: 40 kB / 1.246 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.2974, allocations: 67.97 kB / 1.246 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003031/0.2978, allocations: 223.5 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.298, allocations: 211 kB / 1.246 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007102/0.2987, allocations: 0.666 MB / 1.247 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2987, allocations: 0 / 1.247 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2987, allocations: 4 kB / 1.247 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.2988, allocations: 0 / 1.247 GB, free: 3.988 MB / 0.9669 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.001186/0.2999, allocations: 0.7418 MB / 1.247 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3, allocations: 8.031 kB / 1.247 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.362e-05/0.3001, allocations: 54.73 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.3002, allocations: 44.7 kB / 1.247 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.3008, allocations: 444.5 kB / 1.248 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.3008, allocations: 20.81 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.502e-05/0.3009, allocations: 32.38 kB / 1.248 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.3014, allocations: 311.7 kB / 1.248 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3014, allocations: 7.938 kB / 1.248 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.3014, allocations: 8 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3014, allocations: 4 kB / 1.248 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003914/0.3018, allocations: 257.6 kB / 1.249 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.3033, allocations: 0.9392 MB / 1.249 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006177/0.3039, allocations: 382.3 kB / 1.25 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.3041, allocations: 132.8 kB / 1.25 GB, free: 476 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.3042, allocations: 7.984 kB / 1.25 GB, free: 468 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003291/0.3045, allocations: 231.1 kB / 1.25 GB, free: 224 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.3045, allocations: 0 / 1.25 GB, free: 224 kB / 0.9669 GB Notification: Performance of matching and sorting (n=21): time 0.0007907/0.3053, allocations: 479.8 kB / 1.251 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.3054, allocations: 55.41 kB / 1.251 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005363/0.3059, allocations: 477.6 kB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.306, allocations: 41.7 kB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.3061, allocations: 189 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.3062, allocations: 59.58 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.3064, allocations: 109.6 kB / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000168/0.3066, allocations: 350.8 kB / 1.252 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.3067, allocations: 95.94 kB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005304/0.3072, allocations: 427.9 kB / 1.252 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.3076, allocations: 239.5 kB / 1.253 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3076, allocations: 0 / 1.253 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004788/0.3081, allocations: 309.2 kB / 1.253 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.3081, allocations: 8 kB / 1.253 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3081, allocations: 0 / 1.253 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.3081, allocations: 4 kB / 1.253 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.3083, allocations: 27.98 kB / 1.253 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3083, allocations: 3.938 kB / 1.253 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/0.309, allocations: 79.97 kB / 1.253 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.309, allocations: 11.94 kB / 1.253 GB, free: 13.16 MB / 0.9825 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.0002396/0.3093, allocations: 226.2 kB / 1.253 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.804e-05/0.3093, allocations: 35.7 kB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005479/0.3099, allocations: 388.8 kB / 1.254 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3099, allocations: 0 / 1.254 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3099, allocations: 0 / 1.254 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3099, allocations: 0 / 1.254 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003763/0.3103, allocations: 389.2 kB / 1.254 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3103, allocations: 0 / 1.254 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.856e-05/0.3104, allocations: 19.94 kB / 1.254 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3104, allocations: 4 kB / 1.254 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.3104, allocations: 7.984 kB / 1.254 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.3104, allocations: 4 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3104, allocations: 4 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000513/0.311, allocations: 395.5 kB / 1.254 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.3111, allocations: 116.9 kB / 1.255 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.3111, allocations: 3.984 kB / 1.255 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.3112, allocations: 11.98 kB / 1.255 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.3113, allocations: 19.92 kB / 1.255 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3113, allocations: 8 kB / 1.255 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003816/0.3117, allocations: 343.1 kB / 1.255 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3117, allocations: 0 / 1.255 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003219/0.312, allocations: 87.81 kB / 1.255 GB, free: 11.04 MB / 0.9825 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.0009264/0.313, allocations: 0.9467 MB / 1.256 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004367/0.3134, allocations: 269.9 kB / 1.256 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3134, allocations: 4.062 kB / 1.256 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.3137, allocations: 147.9 kB / 1.256 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.3139, allocations: 29.44 kB / 1.256 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/0.3182, allocations: 3.669 MB / 1.26 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.3187, allocations: 0.8263 MB / 1.261 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001812/0.3189, allocations: 82.19 kB / 1.261 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3191, allocations: 107.4 kB / 1.261 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.3191, allocations: 0 / 1.261 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.3483, allocations: 8.242 MB / 1.269 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.663, allocations: 1.25 kB / 1.269 GB, free: 12.77 MB / 0.9981 GB (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 --timeout=400 --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) 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) Reference file matches