Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",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.001632/0.001632, 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.001861/0.00186, allocations: 191.8 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.731/2.731, allocations: 469.4 MB / 0.742 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 66.19 kB / 0.9083 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2823, allocations: 159.1 MB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004326/0.2867, allocations: 2.238 MB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002225/0.2889, allocations: 1.27 MB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.2892, allocations: 7.938 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004804/0.2897, allocations: 175.3 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004351/0.2902, allocations: 171.2 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.2908, allocations: 243.3 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004691/0.2913, allocations: 410.9 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.2915, allocations: 101.3 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.2918, allocations: 171.3 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.292, allocations: 175.3 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.888e-05/0.2921, allocations: 24 kB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.2922, allocations: 79.89 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.2924, allocations: 103.7 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.2926, allocations: 178.9 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.2931, allocations: 482.6 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2931, allocations: 3.984 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2931, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.2931, allocations: 0 / 1.069 GB, free: 8.613 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001177/0.2943, allocations: 0.7079 MB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2943, allocations: 8.031 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.2944, allocations: 50.67 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.749e-05/0.2945, allocations: 48.47 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.2951, allocations: 402.3 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.2951, allocations: 12.12 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.2951, allocations: 16 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.2955, allocations: 177.8 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2955, allocations: 3.984 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.2955, allocations: 8 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2955, allocations: 8 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.2957, allocations: 87.89 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2968, allocations: 0.7854 MB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.2972, allocations: 137.4 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.2973, allocations: 49.7 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.2973, allocations: 4 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002294/0.2976, allocations: 125 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.2976, allocations: 4 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005209/0.2981, allocations: 217.4 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.2982, allocations: 106.8 kB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006641/0.2989, allocations: 0.5759 MB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.2989, allocations: 37.64 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.2991, allocations: 200.4 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.527e-05/0.2991, allocations: 35.61 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.2992, allocations: 69.69 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2994, allocations: 358.7 kB / 1.073 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.2996, allocations: 104.1 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.2998, allocations: 174.9 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.3002, allocations: 192.2 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3002, allocations: 3.938 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005749/0.3007, allocations: 343 kB / 1.074 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3008, allocations: 4 kB / 1.074 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3008, allocations: 4.094 kB / 1.074 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3008, allocations: 4 kB / 1.074 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.301, allocations: 51.91 kB / 1.074 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.301, allocations: 4 kB / 1.074 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.3012, allocations: 35.81 kB / 1.074 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.3013, allocations: 12 kB / 1.074 GB, free: 3.203 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001869/0.3015, allocations: 195.4 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.3016, allocations: 47.52 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.852e-05/0.3016, allocations: 43.31 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3016, allocations: 0 / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3017, allocations: 4 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3017, allocations: 0 / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.302, allocations: 337.3 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.302, allocations: 0 / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.706e-05/0.302, allocations: 8 kB / 1.075 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.302, allocations: 0 / 1.075 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.302, allocations: 3.984 kB / 1.075 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3021, allocations: 8 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3021, allocations: 3.938 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.3024, allocations: 217.2 kB / 1.075 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.3025, allocations: 124.6 kB / 1.075 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.077e-05/0.3026, allocations: 4 kB / 1.075 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.3027, allocations: 23.98 kB / 1.075 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.3028, allocations: 19.97 kB / 1.075 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.3028, allocations: 4 kB / 1.075 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003893/0.3032, allocations: 363.1 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3032, allocations: 0 / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003142/0.3036, allocations: 71.88 kB / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001497/0.3051, allocations: 1.061 MB / 1.077 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004153/0.3055, allocations: 206.3 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3055, allocations: 0 / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.3056, allocations: 55.91 kB / 1.077 GB, free: 484 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.3062, allocations: 108.6 kB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004382/0.3106, allocations: 3.562 MB / 1.081 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3109, allocations: 0.8068 MB / 1.081 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001634/0.3111, allocations: 58.92 kB / 1.081 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3113, allocations: 127.4 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of SimCode: time 4.71e-07/0.3113, allocations: 4 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.3387, allocations: 8.279 MB / 1.09 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.797, allocations: 5.656 kB / 1.09 GB, free: 3.539 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches